summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPranam Lashkari <lpranam@collabora.com>2024-04-15 01:22:45 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-04-17 13:32:27 +0200
commit11ae1cf4e4415237ed4fce7fa8d77502ab058ab1 (patch)
treeb86827e56284c773c80e3e218b5d635fa58ac81d /include
parentfb94cc0d1348140d03c2826771c57255ff74a94a (diff)
sw lok: .uno:SetDocumentProperties: add file size parameter
problem: in LOK/online to support async save, files in jails may have different extensions (ie: .upload, .uploading) this caused problem to detect files as original file name may not exist. As result property like file size were always set to 0 Change-Id: I552aef203297470d01032659a266210970129e66 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165769 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> (cherry picked from commit aa4e10efc6e9ac92b0c652f238526aacbe2096c6) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166171 Tested-by: Jenkins
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/dinfdlg.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/sfx2/dinfdlg.hxx b/include/sfx2/dinfdlg.hxx
index 874e127f20b5..d4743ed00ef5 100644
--- a/include/sfx2/dinfdlg.hxx
+++ b/include/sfx2/dinfdlg.hxx
@@ -82,6 +82,7 @@ private:
OUString m_Type;
OUString m_Subject;
OUString m_Title;
+ sal_Int64 m_nFileSize;
bool m_bHasTemplate;
bool m_bDeleteUserData;
bool m_bUseUserData;
@@ -95,7 +96,7 @@ public:
SfxDocumentInfoItem( const OUString &rFileName,
const css::uno::Reference< css::document::XDocumentProperties> & i_xDocProps,
const css::uno::Sequence< css::document::CmisProperty> & i_cmisProps,
- bool bUseUserData, bool bUseThumbnailSave );
+ bool bUseUserData, bool bUseThumbnailSave, sal_Int64 nFileSize );
SfxDocumentInfoItem( const SfxDocumentInfoItem& );
virtual ~SfxDocumentInfoItem() override;
@@ -148,6 +149,8 @@ public:
void setSubject(const OUString& i_val) { m_Subject = i_val; }
const OUString& getTitle() const { return m_Title; }
void setTitle(const OUString& i_val) { m_Title = i_val; }
+ sal_Int64 getFileSize() const { return m_nFileSize; }
+ void setFileSize(sal_Int64 i_val) { m_nFileSize = i_val; }
/// reset user-specific data (author, modified-by, ...)
void resetUserData(const OUString & i_rAuthor);