Kaydet (Commit) 291a10ec authored tarafından Miklos Vajna's avatar Miklos Vajna

sfx2 classification infobar: improve message

Change-Id: If8fe5b145014055639a9a2eadd8fded7ebf7c2b3
üst 823e8d65
......@@ -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)
......
......@@ -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 );
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment