summaryrefslogtreecommitdiff
path: root/offapi/com
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2024-09-09 09:11:06 +0200
committerMiklos Vajna <vmiklos@collabora.com>2024-09-09 17:30:28 +0200
commitcaff013bee53216efeb49db4bcda44b55c223b58 (patch)
tree9b93081b8e5f829be7503a72876a922a1da51aad /offapi/com
parent602466268467b0f4b356d4613c6c649449503d1c (diff)
cool#9992 lok doc sign: async DocumentDigitalSignatures::signDocumentContent()
Currently SfxObjectShell::CheckIsReadonly() has a hack for the LOK case to show the signatures dialog read-only, as only that is async. The next step is to make DocumentDigitalSignatures::signDocumentContent() async, but passing an std::function via the UNO API is tricky. Notice how DocumentDigitalSignatures in xmlsecurity/ also implements sfx2::DigitalSignatures, add a new SignDocumentContentAsync() there and adapt all uses of signDocumentContent() to go with that instead. This requires introducing some lambdas for code after signDocumentContent() in general and for ODF/OOXML specific code in particular, to avoid code duplication. Change-Id: If771ced711041364988af45ad9dd0dd1a2a8660d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173060 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'offapi/com')
-rw-r--r--offapi/com/sun/star/security/XDocumentDigitalSignatures.idl2
1 files changed, 2 insertions, 0 deletions
diff --git a/offapi/com/sun/star/security/XDocumentDigitalSignatures.idl b/offapi/com/sun/star/security/XDocumentDigitalSignatures.idl
index d85be941c8d1..cd201d080f82 100644
--- a/offapi/com/sun/star/security/XDocumentDigitalSignatures.idl
+++ b/offapi/com/sun/star/security/XDocumentDigitalSignatures.idl
@@ -32,6 +32,8 @@ interface XDocumentDigitalSignatures : com::sun::star::uno::XInterface
/** signs the content of the document including text and pictures.
<p>Macros will not be signed.</p>
+
+ Deprecated, this synchronous version would block the UI till signing is in progress.
*/
boolean signDocumentContent( [in] ::com::sun::star::embed::XStorage xStorage,
[in] ::com::sun::star::io::XStream xSignStream);