summaryrefslogtreecommitdiff
path: root/include/sfx2
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-05-17 11:10:34 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-05-18 16:23:55 +0200
commit0ca1659353cc9847f436280873e1047d2524395e (patch)
treec141e6a825e5275ac200afa5d6c0623a01ecc7ed /include/sfx2
parentf504273c10a7448aabd619175bc1e041458cb1a7 (diff)
Refactor SfxObjectShell sign methods
for signature line signing Change-Id: Iac4f3a248af53bdbf159e6e8d656e1dcbc3aacbf Reviewed-on: https://gerrit.libreoffice.org/54473 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'include/sfx2')
-rw-r--r--include/sfx2/objsh.hxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/sfx2/objsh.hxx b/include/sfx2/objsh.hxx
index 2f99fa010497..97d570c7876c 100644
--- a/include/sfx2/objsh.hxx
+++ b/include/sfx2/objsh.hxx
@@ -207,6 +207,7 @@ private:
// sal_False := new object
bool bIsInGenerateThumbnail; //optimize thumbnail generate and store procedure to improve odt saving performance, i120030
bool mbAvoidRecentDocs; ///< Avoid adding to the recent documents list, if not necessary.
+ bool m_bAllowModifiedBackAfterSigning;
enum TriState {undefined, yes, no};
TriState mbContinueImportOnFilterExceptions = undefined; // try to import as much as possible
@@ -353,11 +354,14 @@ public:
css::uno::Reference<css::text::XTextRange> const& xInsertPosition);
bool ExportTo( SfxMedium &rMedium );
- // xmlsec05, check with SFX team
+ /** Returns to if preparing was succesful, else false. */
+ bool PrepareForSigning();
+ void AfterSigning(bool bSignSuccess, bool bSignScriptingContent);
+ bool HasValidSignatures();
SignatureState GetDocumentSignatureState();
void SignDocumentContent();
- void SignDocumentContent(css::uno::Reference<css::security::XCertificate> xCert,
- const OUString& aSignatureLineId);
+ void SignSignatureLine(const OUString& aSignatureLineId,
+ const css::uno::Reference<css::security::XCertificate> xCert);
SignatureState GetScriptingSignatureState();
void SignScriptingContent();
DECL_LINK(SignDocumentHandler, Button*, void);
@@ -740,10 +744,6 @@ public:
const css::uno::Reference< css::security::XDocumentDigitalSignatures >& xSigner
= css::uno::Reference< css::security::XDocumentDigitalSignatures >() );
- SAL_DLLPRIVATE void ImplSign(const css::uno::Reference<css::security::XCertificate> xCert
- = css::uno::Reference<css::security::XCertificate>(),
- const OUString& aSignatureLineId = OUString(), bool bScriptingContent = false);
-
SAL_DLLPRIVATE bool QuerySaveSizeExceededModules_Impl( const css::uno::Reference< css::task::XInteractionHandler >& xHandler );
SAL_DLLPRIVATE bool QueryAllowExoticFormat_Impl( const css::uno::Reference< css::task::XInteractionHandler >& xHandler,
const OUString& rURL,