diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2020-06-10 18:09:55 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-06-11 02:03:01 +0200 |
commit | a201ab6f47c2d5a7ba4c5f998b0aa231cae82010 (patch) | |
tree | a790e7571b32dd26f194671a182e98885cf214fd /sd | |
parent | f1e4d462c4a5686bccb3e7bfd615865c18c0efa6 (diff) |
sd signature line: inform infobar if a cert is already selected
In case a pdf is opened for signing, the infobar has a button to start
the signing. If a signature line is already inserted and the user picked
a certificate, then let's call the infobar button's action "finish
signing", since the signature list and the certificate chooser won't
appear in this case.
(The actual behavior when you click on the button is still unchanged,
though.)
Change-Id: I50ee2455c91cdee26612a6b8239dbb6772401877
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96060
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/func/fuconrec.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sd/source/ui/func/fuconrec.cxx b/sd/source/ui/func/fuconrec.cxx index 91ed61ad3d63..c79753285642 100644 --- a/sd/source/ui/func/fuconrec.cxx +++ b/sd/source/ui/func/fuconrec.cxx @@ -491,6 +491,14 @@ void FuConstructRectangle::Deactivate() } svx::SignatureLineHelper::setShapeCertificate(mpView, xCertificate); + + // Update infobar to offer "finish signing". + SfxViewFrame* pFrame = mpViewShell->GetViewFrame(); + if (pFrame && pFrame->HasInfoBarWithID("readonly")) + { + pFrame->RemoveInfoBar("readonly"); + pFrame->AppendReadOnlyInfobar(); + } } namespace { |