diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-02-17 09:15:50 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-02-17 10:04:54 +0100 |
commit | 291a10ec557a765a4d3090330964fd1cb7a82f6b (patch) | |
tree | f83bcea471a19848c906a65e1926e34b0e7d77e9 /sfx2 | |
parent | 823e8d658759ba5ea3c63b20dbe9ffd79f2f5c23 (diff) |
sfx2 classification infobar: improve message
Change-Id: If8fe5b145014055639a9a2eadd8fded7ebf7c2b3
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/view.src | 5 | ||||
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/sfx2/source/view/view.src b/sfx2/source/view/view.src index 1cb6c13a7944..26dbbbdad3ff 100644 --- a/sfx2/source/view/view.src +++ b/sfx2/source/view/view.src @@ -91,6 +91,11 @@ String STR_READONLY_DOCUMENT Text [ en-US ] = "This document is open in read-only mode." ; }; +String STR_CLASSIFIED_DOCUMENT +{ + Text [ en-US ] = "The classification label of this document is %1." ; +}; + PushButton BT_CHECKOUT { Pos = MAP_APPFONT( 0 , 0 ); diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index 55b525d0b8e3..05850854d60a 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -1351,7 +1351,11 @@ void SfxViewFrame::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint ) OUString aBACName = aHelper.GetBACName(); OUString aImpactLevel = aHelper.GetImpactLevel(); if (!aBACName.isEmpty() && !aImpactLevel.isEmpty()) - AppendInfoBar("classification", aBACName); + { + OUString aMessage = SfxResId(STR_CLASSIFIED_DOCUMENT); + aMessage = aMessage.replaceFirst("%1", aBACName); + AppendInfoBar("classification", aMessage); + } } break; |