summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-02-17 09:15:50 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-02-17 10:04:54 +0100
commit291a10ec557a765a4d3090330964fd1cb7a82f6b (patch)
treef83bcea471a19848c906a65e1926e34b0e7d77e9
parent823e8d658759ba5ea3c63b20dbe9ffd79f2f5c23 (diff)
sfx2 classification infobar: improve message
Change-Id: If8fe5b145014055639a9a2eadd8fded7ebf7c2b3
-rw-r--r--include/sfx2/sfx.hrc1
-rw-r--r--sfx2/source/view/view.src5
-rw-r--r--sfx2/source/view/viewfrm.cxx6
3 files changed, 11 insertions, 1 deletions
diff --git a/include/sfx2/sfx.hrc b/include/sfx2/sfx.hrc
index 582ad1ebeb44..a0d1ae3c3324 100644
--- a/include/sfx2/sfx.hrc
+++ b/include/sfx2/sfx.hrc
@@ -153,6 +153,7 @@
#define STR_READONLY_DOCUMENT (RID_SFX_START+128)
#define STR_PASSWD_MIN_LEN1 (RID_SFX_START+129)
#define STR_MODULENOTINSTALLED (RID_SFX_START+130)
+#define STR_CLASSIFIED_DOCUMENT (RID_SFX_START+131)
#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 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;