summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls/PaletteManager.cxx
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2014-11-22 19:49:14 +0100
committerAndras Timar <andras.timar@collabora.com>2014-11-22 19:57:57 +0100
commit08d876b6b0b52d882350aa64eda784da56856166 (patch)
tree87ca52e41d91a87909b5b052af763873bc30ca88 /svx/source/tbxctrls/PaletteManager.cxx
parentf0b28806eebb1477066d44de49b5d1d61a8e84cf (diff)
fdo#86517 make predefined palette names localizable
Change-Id: I3930757c02f9f976fb52cd75c9edab7cf75078c6
Diffstat (limited to 'svx/source/tbxctrls/PaletteManager.cxx')
-rw-r--r--svx/source/tbxctrls/PaletteManager.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/svx/source/tbxctrls/PaletteManager.cxx b/svx/source/tbxctrls/PaletteManager.cxx
index b6d3cb7a3f8a..33f346e24840 100644
--- a/svx/source/tbxctrls/PaletteManager.cxx
+++ b/svx/source/tbxctrls/PaletteManager.cxx
@@ -23,14 +23,11 @@
#include <sfx2/objsh.hxx>
#include <svx/drawitem.hxx>
#include <svx/dialogs.hrc>
+#include <svx/dialmgr.hxx>
#include <svtools/colrdlg.hxx>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
-#define STR_DEFAULT_PAL "Default palette"
-#define STR_DOC_COLORS "Document colors"
-#define STR_DOC_COLOR_PREFIX "Document Color "
-
PaletteManager::PaletteManager() :
mnMaxRecentColors(Application::GetSettings().GetStyleSettings().GetColorValueSetColumnCount()),
mnNumOfPalettes(2),
@@ -110,7 +107,7 @@ void PaletteManager::ReloadColorSet(SvxColorValueSet &rColorSet)
std::vector<Color> aColors = pDocSh->GetDocColors();
mnColorCount = aColors.size();
rColorSet.Clear();
- rColorSet.addEntriesForColorVector(aColors, STR_DOC_COLOR_PREFIX );
+ rColorSet.addEntriesForColorVector(aColors, SVX_RESSTR( RID_SVXSTR_DOC_COLOR_PREFIX ) + " " );
}
else
{
@@ -135,7 +132,7 @@ std::vector<OUString> PaletteManager::GetPaletteList()
{
std::vector<OUString> aPaletteNames;
- aPaletteNames.push_back( STR_DEFAULT_PAL );
+ aPaletteNames.push_back( SVX_RESSTR( RID_SVXSTR_DEFAULT_PAL ) );
for( boost::ptr_vector<Palette>::iterator it = maPalettes.begin();
it != maPalettes.end();
@@ -144,7 +141,7 @@ std::vector<OUString> PaletteManager::GetPaletteList()
aPaletteNames.push_back( (*it).GetName() );
}
- aPaletteNames.push_back( STR_DOC_COLORS );
+ aPaletteNames.push_back( SVX_RESSTR ( RID_SVXSTR_DOC_COLORS ) );
return aPaletteNames;
}