summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-01-12 10:34:46 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-01-12 12:36:21 +0100
commitdd615af367a11749e6490a40b4d9bcfaeebe7046 (patch)
treed2b5018583eb19ebf53db3e816b1a571e67345ae /sfx2
parent7a6ce0d408f1cc08f63a05357049082de50a0e31 (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 'sfx2')
-rw-r--r--sfx2/source/doc/objserv.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx
index 4482ca88fbfb..86621d1ce656 100644
--- a/sfx2/source/doc/objserv.cxx
+++ b/sfx2/source/doc/objserv.cxx
@@ -1379,7 +1379,7 @@ void SfxObjectShell::ImplSign( bool bScriptingContent )
if ( GetMedium()
&& GetMedium()->GetFilter()
&& !GetMedium()->GetName().isEmpty()
- && ( !GetMedium()->GetFilter()->IsOwnFormat()
+ && ( (!GetMedium()->GetFilter()->IsOwnFormat() && !GetMedium()->GetFilter()->GetSupportsSigning())
|| !GetMedium()->HasStorage_Impl()
)
)