summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls/SvxColorValueSet.cxx
diff options
context:
space:
mode:
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)