getProps: centralize 2 (#10837)

Centralize and optimize handling document properties.
This commit is contained in:
hius07
2023-08-30 07:53:59 +03:00
committed by GitHub
parent 38d468f36c
commit 1ef7821b66
23 changed files with 189 additions and 239 deletions

View File

@@ -213,6 +213,10 @@ function CreDocument:getDocumentFormat()
return self._document:getDocumentFormat()
end
function CreDocument:getDocumentProps()
return self._document:getDocumentProps()
end
function CreDocument:setupDefaultView()
if self.loaded then
-- Don't apply defaults if the document has already been loaded