Kaydet (Commit) a48145a8 authored tarafından Maxim Monastirsky's avatar Maxim Monastirsky

Rename loadColorVector to addEntriesForColorVector

So it will be similar to addEntriesForXColorList

Change-Id: Ie352e0cf05fa6875ed76e69478131a57293b39a1
üst 9b1dda18
...@@ -39,7 +39,7 @@ public: ...@@ -39,7 +39,7 @@ public:
sal_uInt32 getColumnCount() const; sal_uInt32 getColumnCount() const;
void addEntriesForXColorList(const XColorList& rXColorList, sal_uInt32 nStartIndex = 1); void addEntriesForXColorList(const XColorList& rXColorList, sal_uInt32 nStartIndex = 1);
void loadColorVector(const std::vector<Color>& rColorVector, const OUString& rNamePrefix, sal_uInt32 nStartIndex = 1); void addEntriesForColorVector(const std::vector<Color>& rColorVector, const OUString& rNamePrefix, sal_uInt32 nStartIndex = 1);
Size layoutAllVisible(sal_uInt32 nEntryCount); Size layoutAllVisible(sal_uInt32 nEntryCount);
Size layoutToGivenHeight(sal_uInt32 nHeight, sal_uInt32 nEntryCount); Size layoutToGivenHeight(sal_uInt32 nHeight, sal_uInt32 nEntryCount);
}; };
......
...@@ -108,7 +108,7 @@ void PaletteManager::ReloadColorSet(SvxColorValueSet &rColorSet) ...@@ -108,7 +108,7 @@ void PaletteManager::ReloadColorSet(SvxColorValueSet &rColorSet)
std::vector<Color> aColors = pDocSh->GetDocColors(); std::vector<Color> aColors = pDocSh->GetDocColors();
mnColorCount = aColors.size(); mnColorCount = aColors.size();
rColorSet.Clear(); rColorSet.Clear();
rColorSet.loadColorVector(aColors, STR_DOC_COLOR_PREFIX ); rColorSet.addEntriesForColorVector(aColors, STR_DOC_COLOR_PREFIX );
} }
else else
{ {
......
...@@ -86,7 +86,7 @@ void SvxColorValueSet::addEntriesForXColorList(const XColorList& rXColorList, sa ...@@ -86,7 +86,7 @@ void SvxColorValueSet::addEntriesForXColorList(const XColorList& rXColorList, sa
} }
} }
void SvxColorValueSet::loadColorVector(const std::vector<Color>& rColorVector, const OUString& rNamePrefix, sal_uInt32 nStartIndex) void SvxColorValueSet::addEntriesForColorVector(const std::vector<Color>& rColorVector, const OUString& rNamePrefix, sal_uInt32 nStartIndex)
{ {
if(rNamePrefix.getLength() != 0) if(rNamePrefix.getLength() != 0)
{ {
......
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