diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-01-12 10:34:46 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-01-12 12:36:21 +0100 |
commit | dd615af367a11749e6490a40b4d9bcfaeebe7046 (patch) | |
tree | d2b5018583eb19ebf53db3e816b1a571e67345ae /include | |
parent | 7a6ce0d408f1cc08f63a05357049082de50a0e31 (diff) |
comphelper: initial SfxFilterFlags::SUPPORTSSIGNING
Currently digital signatures can be made only on OWN formats. Add a new
flag that can be used to mark filters (only DOCX as a start) which could
also support signing and fix the first place that assumes that only OWN
formats support signing.
Change-Id: If9fbf956b765d75838986762e4d4063a9e8c0b5e
Diffstat (limited to 'include')
-rw-r--r-- | include/comphelper/documentconstants.hxx | 3 | ||||
-rw-r--r-- | include/sfx2/docfilt.hxx | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/comphelper/documentconstants.hxx b/include/comphelper/documentconstants.hxx index 6e5fb1e26f84..75418535c80f 100644 --- a/include/comphelper/documentconstants.hxx +++ b/include/comphelper/documentconstants.hxx @@ -112,10 +112,11 @@ enum class SfxFilterFlags PASSWORDTOMODIFY = 0x02000000L, PREFERED = 0x10000000L, STARTPRESENTATION = 0x20000000L, + SUPPORTSSIGNING = 0x40000000L, }; namespace o3tl { - template<> struct typed_flags<SfxFilterFlags> : is_typed_flags<SfxFilterFlags, 0x339f157fL> {}; + template<> struct typed_flags<SfxFilterFlags> : is_typed_flags<SfxFilterFlags, 0x739f157fL> {}; } #define SFX_FILTER_NOTINSTALLED (SfxFilterFlags::MUSTINSTALL | SfxFilterFlags::CONSULTSERVICE) diff --git a/include/sfx2/docfilt.hxx b/include/sfx2/docfilt.hxx index 4a6babb6b7bd..6f45c9780b16 100644 --- a/include/sfx2/docfilt.hxx +++ b/include/sfx2/docfilt.hxx @@ -76,6 +76,8 @@ public: bool IsAllowedAsTemplate() const { return bool(nFormatType & SfxFilterFlags::TEMPLATE); } bool IsOwnFormat() const { return bool(nFormatType & SfxFilterFlags::OWN); } + /// If the filter supports digital signatures. + bool GetSupportsSigning() const { return bool(nFormatType & SfxFilterFlags::SUPPORTSSIGNING); } bool IsOwnTemplateFormat() const { return bool(nFormatType & SfxFilterFlags::TEMPLATEPATH); } bool IsAlienFormat() const { return bool(nFormatType & SfxFilterFlags::ALIEN); } bool CanImport() const { return bool(nFormatType & SfxFilterFlags::IMPORT); } |