diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2020-06-10 18:09:55 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-06-26 08:55:15 +0200 |
commit | 745c27088f90eff8bf17dd959a2731fcda5da0e3 (patch) | |
tree | 9d3c25a6ed25cbd91fbc377d860207021e99aa92 /sd/source | |
parent | 13e6fa10d31147cc6b483d6ae132de33ff8d905a (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.)
(cherry picked from commit a201ab6f47c2d5a7ba4c5f998b0aa231cae82010)
Conflicts:
sfx2/source/view/viewfrm.cxx
Change-Id: I50ee2455c91cdee26612a6b8239dbb6772401877
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97180
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sd/source')
-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 { |