summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2016-12-28 15:51:17 +0200
committerMaxim Monastirsky <momonasmon@gmail.com>2017-01-05 00:11:28 +0200
commita487e548a0e8c40320cd44b2c7779787e9c0f860 (patch)
treeb2cc7340ad9a39aee08cda4136a0cd63e68fedfa /svx
parent23a13694a5a70098b5ecd58b99d99618111f3ea5 (diff)
Use command labels for the color popup title
Change-Id: I2f61e25ef4451775320f8fa1761a951ab94af7d5
Diffstat (limited to 'svx')
-rw-r--r--svx/source/tbxctrls/extrusioncontrols.src5
-rw-r--r--svx/source/tbxctrls/tbcontrl.cxx35
-rw-r--r--svx/source/tbxctrls/tbcontrl.src30
3 files changed, 2 insertions, 68 deletions
diff --git a/svx/source/tbxctrls/extrusioncontrols.src b/svx/source/tbxctrls/extrusioncontrols.src
index 7dfc57d99bda..8760914079e7 100644
--- a/svx/source/tbxctrls/extrusioncontrols.src
+++ b/svx/source/tbxctrls/extrusioncontrols.src
@@ -355,11 +355,6 @@ Image RID_SVXIMG_DEPTH_INFINITY
ImageBitmap = Bitmap { File = "extrusioninfinity_16.bmp"; };
};
-String RID_SVXSTR_EXTRUSION_COLOR
-{
- Text [ en-US ] = "Extrusion Color";
-};
-
String RID_SVXSTR_DEPTH_0
{
Text [ en-US ] = "~0 cm";
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index fcbbd75ebdb2..bacad8901fd7 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -25,6 +25,7 @@
#include <svl/poolitem.hxx>
#include <svl/eitem.hxx>
#include <svl/itemset.hxx>
+#include <vcl/commandinfoprovider.hxx>
#include <vcl/toolbox.hxx>
#include <vcl/bitmapaccess.hxx>
#include <vcl/menubtn.hxx>
@@ -1309,39 +1310,7 @@ SvxColorWindow::SvxColorWindow(const OUString& rCommand,
}
}
- OUString aWindowTitle;
- switch ( theSlotId )
- {
- case SID_ATTR_CHAR_COLOR:
- case SID_ATTR_CHAR_COLOR2:
- aWindowTitle = SVX_RESSTR( RID_SVXSTR_TEXTCOLOR );
- break;
-
- case SID_ATTR_CHAR_COLOR_BACKGROUND:
- case SID_ATTR_CHAR_BACK_COLOR:
- aWindowTitle = SVX_RESSTR( RID_SVXSTR_EXTRAS_CHARBACKGROUND );
- break;
-
- case SID_BACKGROUND_COLOR:
- aWindowTitle = SVX_RESSTR( RID_SVXSTR_BACKGROUND );
- break;
-
- case SID_FRAME_LINECOLOR:
- aWindowTitle = SVX_RESSTR( RID_SVXSTR_FRAME_COLOR );
- break;
-
- case SID_EXTRUSION_3D_COLOR:
- aWindowTitle = SVX_RESSTR( RID_SVXSTR_EXTRUSION_COLOR );
- break;
-
- case SID_ATTR_LINE_COLOR:
- aWindowTitle = SVX_RESSTR( RID_SVXSTR_LINECOLOR );
- break;
-
- case SID_ATTR_FILL_COLOR:
- aWindowTitle = SVX_RESSTR( RID_SVXSTR_FILLCOLOR );
- break;
- }
+ OUString aWindowTitle = vcl::CommandInfoProvider::Instance().GetLabelForCommand( rCommand, rFrame );
SetText( aWindowTitle );
mpColorSet->SetAccessibleName( aWindowTitle );
diff --git a/svx/source/tbxctrls/tbcontrl.src b/svx/source/tbxctrls/tbcontrl.src
index c8447b2562a0..f0c92ff10a46 100644
--- a/svx/source/tbxctrls/tbcontrl.src
+++ b/svx/source/tbxctrls/tbcontrl.src
@@ -119,21 +119,6 @@ String RID_SVXSTR_FRAME_STYLE
Text [ en-US ] = "Border Style" ;
};
-String RID_SVXSTR_FRAME_COLOR
-{
- Text [ en-US ] = "Border Color" ;
-};
-
-String RID_SVXSTR_LINECOLOR
-{
- Text [ en-US ] = "Line Color" ;
-};
-
-String RID_SVXSTR_FILLCOLOR
-{
- Text [ en-US ] = "Fill Color" ;
-};
-
String RID_SVXSTR_MORENUMBERING
{
Text [ en-US ] = "More Numbering..." ;
@@ -178,16 +163,6 @@ Menu RID_SVX_PRESET_MENU
};
};
-String RID_SVXSTR_EXTRAS_CHARBACKGROUND
-{
- Text [ en-US ] = "Highlight Color" ;
-};
-
-String RID_SVXSTR_BACKGROUND
-{
- Text [ en-US ] = "Background";
-};
-
String RID_SVXSTR_AUTOMATIC
{
Text [ en-US ] = "Automatic";
@@ -247,11 +222,6 @@ String RID_SVXSTR_MORE
Text [ en-US ] = "More Options...";
};
-String RID_SVXSTR_TEXTCOLOR
-{
- Text [ en-US ] = "Font color";
-};
-
// This is duplicated in GenericCommands.xcu in officecfg.
String RID_SVXSTR_CHARFONTNAME
{