From 23a2312344ac961ead9ee14140c0b3e879bb7a41 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Mon, 15 Oct 2018 10:09:15 +0200 Subject: lokit: add funct. to insert, sign and verify signature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A lot of signing code paths trigger a GUI dialog (to select the certificate for example) which aren't acceptable when triggering through the LOKit. This code paths needed to be duplicated and reworked to not trigger any GUI action. Change-Id: I2f0d6038fb1bcd00adcdf86e432f9df8858cc21c Reviewed-on: https://gerrit.libreoffice.org/61780 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- include/sfx2/objsh.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/sfx2/objsh.hxx') diff --git a/include/sfx2/objsh.hxx b/include/sfx2/objsh.hxx index 54d97faf3162..4e0ba7ae2a84 100644 --- a/include/sfx2/objsh.hxx +++ b/include/sfx2/objsh.hxx @@ -361,6 +361,9 @@ public: bool HasValidSignatures(); SignatureState GetDocumentSignatureState(); void SignDocumentContent(weld::Window* pDialogParent); + + bool SignDocumentContentUsingCertificate(const css::uno::Reference& xCertificate); + void SignSignatureLine(weld::Window* pDialogParent, const OUString& aSignatureLineId, const css::uno::Reference& xCert, const css::uno::Reference& xValidGraphic, -- cgit