summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2020-06-10 18:09:55 +0200
committerMiklos Vajna <vmiklos@collabora.com>2020-06-11 02:03:01 +0200
commita201ab6f47c2d5a7ba4c5f998b0aa231cae82010 (patch)
treea790e7571b32dd26f194671a182e98885cf214fd /include
parentf1e4d462c4a5686bccb3e7bfd615865c18c0efa6 (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 'include')
-rw-r--r--include/sfx2/strings.hrc1
-rw-r--r--include/sfx2/viewfrm.hxx1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/sfx2/strings.hrc b/include/sfx2/strings.hrc
index 0c76294bd1f5..e845c514049a 100644
--- a/include/sfx2/strings.hrc
+++ b/include/sfx2/strings.hrc
@@ -282,6 +282,7 @@
#define STR_CHECKOUT NC_("STR_CHECKOUT", "Check Out")
#define STR_READONLY_EDIT NC_("STR_READONLY_EDIT", "Edit Document")
#define STR_READONLY_SIGN NC_("STR_READONLY_SIGN", "Sign Document")
+#define STR_READONLY_FINISH_SIGN NC_("STR_READONLY_FINISH_SIGN", "Finish Signing")
#define STR_SIGNATURE_BROKEN NC_("STR_SIGNATURE_BROKEN", "This document has an invalid signature.")
#define STR_SIGNATURE_INVALID NC_("STR_SIGNATURE_INVALID", "The signature was valid, but the document has been modified")
#define STR_SIGNATURE_NOTVALIDATED NC_("STR_SIGNATURE_NOTVALIDATED", "The signature is OK, but the certificate could not be validated.")
diff --git a/include/sfx2/viewfrm.hxx b/include/sfx2/viewfrm.hxx
index 0a40a4179afc..e3a3ddaffb2e 100644
--- a/include/sfx2/viewfrm.hxx
+++ b/include/sfx2/viewfrm.hxx
@@ -163,6 +163,7 @@ public:
const OUString& sSecondaryMessage,
InfobarType eType);
bool HasInfoBarWithID(const OUString& sId);
+ void AppendReadOnlyInfobar();
SAL_DLLPRIVATE void GetDocNumber_Impl();
SAL_DLLPRIVATE void SetViewShell_Impl( SfxViewShell *pVSh );