diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2025-01-03 13:44:59 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2025-01-06 13:02:15 +0100 |
commit | 0cc0896b212b0d1fded8d999b980f18f0379e6e0 (patch) | |
tree | 028ab1eb46a588b271d84f25b63f0591a8f0c35e /svx/sdi/svx.sdi | |
parent | 7112bc2a98b06217302fb18e52fcbd03f8744f79 (diff) |
cool#10630 lok doc sign: fix Impress sign line when picking a certificate
Once .uno:InsertSignatureLine gets dispatched, a visual signature
placeholder gets inserted, then a certificate picker shows up, but no
certificates are visible in the list.
The first problem is that .uno:InsertSignatureLine needs to take sign
key/cert parameters in DrawViewShell::FuPermanent() (similar to
.uno:Signature), so it can learn what certificate to use for signing.
The second problem is that once that sign cert is attached to the view,
the cert chooser for signature lines were not taking the sign cert from
the view in DocumentDigitalSignatures::chooseCertificatesImpl() -- this
needs routing the info about the current view from sd/ (where we still
have that info) to xmlsecurity/.
With this, a LOK client dispatching .uno:InsertSignatureLine with the 2
new parameters set can insert a signature line, it'll show up, but the
subsequent .uno:Signature dispatch still needs fixing up. (Currently it
wants to "save" the modified PDF, while it should just sign.)
Change-Id: Ie536842152ef097aa6959c67916f2beb6d356e4a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179819
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'svx/sdi/svx.sdi')
-rw-r--r-- | svx/sdi/svx.sdi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/sdi/svx.sdi b/svx/sdi/svx.sdi index 70dc6c4423fa..449cd55d36d9 100644 --- a/svx/sdi/svx.sdi +++ b/svx/sdi/svx.sdi @@ -12416,7 +12416,7 @@ SfxVoidItem AnchorMenu SID_ANCHOR_MENU ] SfxVoidItem InsertSignatureLine SID_INSERT_SIGNATURELINE -() +(SfxStringItem SignatureCert FN_PARAM_1, SfxStringItem SignatureKey FN_PARAM_2) [ AutoUpdate = FALSE, FastCall = FALSE, |