diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2017-08-17 17:56:45 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2017-08-30 17:56:41 +0200 |
commit | dce78f9caae194da13fa5399298d57701abc8744 (patch) | |
tree | ca9f7a0fea6139370c02a17262d7dfc0cba1d3f0 /include | |
parent | d5189db4df292501cf18ad84e406d6401d14a5ce (diff) |
gpg4libre: Add flag for filters that support GPG encryption
Change-Id: I48518f26a3ccbe430d36fb6657bdeff0943492d3
Reviewed-on: https://gerrit.libreoffice.org/41263
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/comphelper/documentconstants.hxx | 4 | ||||
-rw-r--r-- | include/sfx2/docfilt.hxx | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/comphelper/documentconstants.hxx b/include/comphelper/documentconstants.hxx index 75418535c80f..9447a7b17fc6 100644 --- a/include/comphelper/documentconstants.hxx +++ b/include/comphelper/documentconstants.hxx @@ -110,13 +110,15 @@ enum class SfxFilterFlags ENCRYPTION = 0x01000000L, PASSWORDTOMODIFY = 0x02000000L, + GPGENCRYPTION = 0x04000000L, PREFERED = 0x10000000L, STARTPRESENTATION = 0x20000000L, SUPPORTSSIGNING = 0x40000000L, }; + namespace o3tl { - template<> struct typed_flags<SfxFilterFlags> : is_typed_flags<SfxFilterFlags, 0x739f157fL> {}; + template<> struct typed_flags<SfxFilterFlags> : is_typed_flags<SfxFilterFlags, 0x779f157fL> {}; } #define SFX_FILTER_NOTINSTALLED (SfxFilterFlags::MUSTINSTALL | SfxFilterFlags::CONSULTSERVICE) diff --git a/include/sfx2/docfilt.hxx b/include/sfx2/docfilt.hxx index 47454f90e742..75b889f451d3 100644 --- a/include/sfx2/docfilt.hxx +++ b/include/sfx2/docfilt.hxx @@ -78,6 +78,7 @@ public: bool IsOwnFormat() const { return bool(nFormatType & SfxFilterFlags::OWN); } /// If the filter supports digital signatures. bool GetSupportsSigning() const { return bool(nFormatType & SfxFilterFlags::SUPPORTSSIGNING); } + bool GetGpgEncryption() const { return bool(nFormatType & SfxFilterFlags::GPGENCRYPTION); } bool IsOwnTemplateFormat() const { return bool(nFormatType & SfxFilterFlags::TEMPLATEPATH); } bool IsAlienFormat() const { return bool(nFormatType & SfxFilterFlags::ALIEN); } bool CanImport() const { return bool(nFormatType & SfxFilterFlags::IMPORT); } |