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 | |
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>
-rw-r--r-- | include/sfx2/sfx.hrc | 1 | ||||
-rw-r--r-- | sfx2/source/view/view.src | 5 | ||||
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 4 |
3 files changed, 10 insertions, 0 deletions
diff --git a/include/sfx2/sfx.hrc b/include/sfx2/sfx.hrc index abb0606ffd19..139a34f3e2bd 100644 --- a/include/sfx2/sfx.hrc +++ b/include/sfx2/sfx.hrc @@ -124,6 +124,7 @@ #define STR_SIGNATURE_SHOW (RID_SFX_START+140) #define STR_SIGNATURE_NOTVALIDATED (RID_SFX_START+141) #define STR_SIGNATURE_PARTIAL_OK (RID_SFX_START+142) +#define STR_SIGNATURE_OK (RID_SFX_START+143) #define STR_ACCTITLE_PRODUCTIVITYTOOLS (RID_SFX_START+157) #define SFX_THUMBNAIL_TEXT (RID_SFX_START+158) 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; } |