include/sfx2/sfx.hrc | 1 + sfx2/source/view/view.src | 5 +++++ sfx2/source/view/viewfrm.cxx | 4 ++++ 3 files changed, 10 insertions(+)
New commits: commit 2a2b9b5cc98179b699a13f76323365431d862cd3 Author: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> Date: Thu Mar 16 18:26:56 2017 +0100 gpg4libre: Also show Infobar when signature is valid Change-Id: I5eb639d5cc298b595ccee71f00c1f2fc54867186 Reviewed-on: https://gerrit.libreoffice.org/35287 Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> Tested-by: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> 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; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits