summaryrefslogtreecommitdiff
path: root/include/sfx2
diff options
context:
space:
mode:
authorbureken <berkgureken@gmail.com>2015-10-26 03:39:00 +0300
committerCaolán McNamara <caolanm@redhat.com>2015-11-10 12:24:10 +0000
commitd7ca71d4b1ac085c575fdc24f37940100ab38961 (patch)
treea5cbfd3f2de13ff89da6bf89da26276011c62001 /include/sfx2
parent37968fd404ca04333502921e5560f893c7933888 (diff)
tdf#87995 - settings : missing a checkbox in order to avoid thumbnail saving
Change-Id: I9822c930bb7e133306a3e90fd80f29648877d5f9 Reviewed-on: https://gerrit.libreoffice.org/19596 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/sfx2')
-rw-r--r--include/sfx2/dinfdlg.hxx7
-rw-r--r--include/sfx2/objsh.hxx2
-rw-r--r--include/sfx2/sfx.hrc1
3 files changed, 9 insertions, 1 deletions
diff --git a/include/sfx2/dinfdlg.hxx b/include/sfx2/dinfdlg.hxx
index 1d3ef7a7677a..faf6494bd920 100644
--- a/include/sfx2/dinfdlg.hxx
+++ b/include/sfx2/dinfdlg.hxx
@@ -81,6 +81,7 @@ private:
bool m_bHasTemplate;
bool m_bDeleteUserData;
bool m_bUseUserData;
+ bool m_bUseThumbnailSave;
std::vector< CustomProperty* > m_aCustomProperties;
css::uno::Sequence< css::document::CmisProperty > m_aCmisProperties;
@@ -90,7 +91,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 bUseUserData, bool bUseThumbnailSave );
SfxDocumentInfoItem( const SfxDocumentInfoItem& );
virtual ~SfxDocumentInfoItem();
@@ -153,8 +154,11 @@ public:
bool HasTemplate() const { return m_bHasTemplate; }
void SetDeleteUserData( bool bSet );
void SetUseUserData( bool bSet );
+ void SetUseThumbnailSave( bool bSet );
bool IsDeleteUserData() const { return m_bDeleteUserData;}
bool IsUseUserData() const { return m_bUseUserData;}
+ bool IsUseThumbnailSave() const { return m_bUseThumbnailSave;}
+
std::vector< CustomProperty* > GetCustomProperties() const;
void ClearCustomProperties();
@@ -194,6 +198,7 @@ private:
VclPtr<CheckBox> m_pUseUserDataCB;
VclPtr<PushButton> m_pDeleteBtn;
+ VclPtr<CheckBox> m_pUseThumbnailSaveCB;
VclPtr<FixedText> m_pTemplFt;
VclPtr<SelectableFixedText> m_pTemplValFt;
diff --git a/include/sfx2/objsh.hxx b/include/sfx2/objsh.hxx
index 70da01048542..fed9399ed8a3 100644
--- a/include/sfx2/objsh.hxx
+++ b/include/sfx2/objsh.hxx
@@ -422,10 +422,12 @@ public:
bool IsQueryLoadTemplate() const;
bool IsUseUserData() const;
+ bool IsUseThumbnailSave() const;
bool IsLoadReadonly() const;
bool IsSaveVersionOnClose() const;
void SetQueryLoadTemplate( bool b );
void SetUseUserData( bool bNew );
+ void SetUseThumbnailSave( bool _bNew );
void SetLoadReadonly( bool _bReadonly );
void SetSaveVersionOnClose( bool bSet );
void ResetFromTemplate( const OUString& rTemplateName, const OUString& rFileName );
diff --git a/include/sfx2/sfx.hrc b/include/sfx2/sfx.hrc
index 4f63e5262607..582ad1ebeb44 100644
--- a/include/sfx2/sfx.hrc
+++ b/include/sfx2/sfx.hrc
@@ -228,6 +228,7 @@
#define MID_DOCINFO_DEFAULTTARGET 0x30
#define MID_DOCINFO_USEUSERDATA 0x31
#define MID_DOCINFO_DELETEUSERDATA 0x32
+#define MID_DOCINFO_USETHUMBNAILSAVE 0x33
// only for FastPropertySet
#define MID_TYPE 0x38