summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls/SvxColorValueSet.cxx
diff options
context:
space:
mode:
authorKrisztian Pinter <pin.terminator@gmail.com>2014-06-19 16:04:00 +0200
committerKrisztian Pinter <pin.terminator@gmail.com>2014-07-25 17:14:09 +0200
commit8b41daa9100d9468cf7ba7783d01ea6eca7ba3ec (patch)
tree50410a92cb99df79207d2021d58046bdd62ff5d0 /svx/source/tbxctrls/SvxColorValueSet.cxx
parent8fead2728c00c2f1019286676eda0b5a7d5161cd (diff)
Add ability to switch between default and document colors
Change-Id: Ice8d58028a531b37d2c03fdc3e55eea850c53d44
Diffstat (limited to 'svx/source/tbxctrls/SvxColorValueSet.cxx')
-rw-r--r--svx/source/tbxctrls/SvxColorValueSet.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/svx/source/tbxctrls/SvxColorValueSet.cxx b/svx/source/tbxctrls/SvxColorValueSet.cxx
index 4f145fcf573b..1ee94f1cc208 100644
--- a/svx/source/tbxctrls/SvxColorValueSet.cxx
+++ b/svx/source/tbxctrls/SvxColorValueSet.cxx
@@ -88,6 +88,19 @@ void SvxColorValueSet::addEntriesForXColorList(const XColorList& rXColorList, sa
}
}
+void SvxColorValueSet::addEntriesForColorVector(const std::vector<Color>& rColorVector, sal_uInt32 nStartIndex)
+{
+ const sal_uInt32 nColorCount(rColorVector.size());
+
+ //for(sal_uInt32 nIndex(0); nIndex < nColorCount; nIndex++, nStartIndex++)
+ for(std::vector<Color>::const_iterator it = rColorVector.begin();
+ it != rColorVector.end(); it++, nStartIndex++)
+ {
+ const Color& rEntry = *it;
+ InsertItem(nStartIndex, rEntry, "");
+ }
+}
+
Size SvxColorValueSet::layoutAllVisible(sal_uInt32 nEntryCount)
{
if(!nEntryCount)