diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2017-03-16 18:26:56 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2017-03-17 08:15:27 +0000 |
commit | 2a2b9b5cc98179b699a13f76323365431d862cd3 (patch) | |
tree | c2df3f0b050557dcb633331b97dacfa946b5b209 /sfx2/source/view | |
parent | 807edd77e2df32d89703d5e550893b62d5973bc7 (diff) |
gpg4libre: Also show Infobar when signature is valid
Change-Id: I5eb639d5cc298b595ccee71f00c1f2fc54867186
Reviewed-on: https://gerrit.libreoffice.org/35287
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sfx2/source/view')
-rw-r--r-- | sfx2/source/view/view.src | 5 | ||||
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/sfx2/source/view/view.src b/sfx2/source/view/view.src index 5d95e92d69a2..ad83dfe5719b 100644 --- a/sfx2/source/view/view.src +++ b/sfx2/source/view/view.src @@ -155,6 +155,11 @@ String STR_SIGNATURE_PARTIAL_OK Text[ en-US ] = "The signature is OK, but the document is only partially signed."; }; +String STR_SIGNATURE_OK +{ + Text[ en-US ] = "This document is digitally signed and the signature is valid."; +}; + String STR_SIGNATURE_SHOW { Text[ en-US ] = "Show Signatures"; diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index 008cd1043ddf..1e9ec49cebf4 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -1195,6 +1195,10 @@ void SfxViewFrame::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint ) sMessage = SfxResId(STR_SIGNATURE_PARTIAL_OK); aInfoBarType = InfoBarType::Warning; break; + case SignatureState::OK: + sMessage = SfxResId(STR_SIGNATURE_OK); + aInfoBarType = InfoBarType::Info; + break; default: break; } |