diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-05-18 08:08:16 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-05-22 09:43:10 +0200 |
commit | 6499ea2ff45fa42094d41c5c417f66a3ae5a22ae (patch) | |
tree | 3536b7bdc40b5e3f0f3b475ec34fc56f14601d90 /include/sfx2/docfile.hxx | |
parent | b6dda60b3e888f67d76402f29d7b5576814786dd (diff) |
tdf#83877 Add valid/invalid images to signatures
Change-Id: I958c1bad2f32383ebaaeb7d42c761f0d1dfefc35
Reviewed-on: https://gerrit.libreoffice.org/54513
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'include/sfx2/docfile.hxx')
-rw-r--r-- | include/sfx2/docfile.hxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/sfx2/docfile.hxx b/include/sfx2/docfile.hxx index 6bf4d740e079..5ef0426c36c1 100644 --- a/include/sfx2/docfile.hxx +++ b/include/sfx2/docfile.hxx @@ -27,6 +27,7 @@ #include <sfx2/signaturestate.hxx> #include <svl/lockfilecommon.hxx> #include <sal/types.h> +#include <com/sun/star/graphic/XGraphic.hpp> #include <com/sun/star/util/RevisionTag.hpp> #include <com/sun/star/util/DateTime.hpp> #include <com/sun/star/io/XOutputStream.hpp> @@ -264,9 +265,14 @@ public: const css::uno::Reference< css::ucb::XCommandEnvironment >& xComEnv ); SAL_DLLPRIVATE bool - SignContents_Impl(const css::uno::Reference<css::security::XCertificate> xCert, - const OUString& aSignatureLineId, - bool bSignScriptingContent, bool bHasValidDocumentSignature); + SignContents_Impl(bool bSignScriptingContent, bool bHasValidDocumentSignature, + const OUString& aSignatureLineId = OUString(), + const css::uno::Reference<css::security::XCertificate> xCert + = css::uno::Reference<css::security::XCertificate>(), + const css::uno::Reference<css::graphic::XGraphic> xValidGraphic + = css::uno::Reference<css::graphic::XGraphic>(), + const css::uno::Reference<css::graphic::XGraphic> xInvalidGraphic + = css::uno::Reference<css::graphic::XGraphic>()); // the following two methods must be used and make sense only during saving currently // TODO/LATER: in future the signature state should be controlled by the medium not by the document |