summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKrisztian Pinter <pin.terminator@gmail.com>2014-07-01 23:56:25 +0200
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2014-09-17 10:19:34 +0200
commit24933a3c920af29add1a19f19dbb8a8f129659cf (patch)
tree3dcf3d47531424d13f25125cab8fa43247bcd4c8 /include
parentAdd loading document colors to Calc (diff)
downloadcore-24933a3c920af29add1a19f19dbb8a8f129659cf.tar.gz
core-24933a3c920af29add1a19f19dbb8a8f129659cf.zip
Add GIMP palette loading code
Change-Id: Ie0d0787342bc806a1848cb904114f0ca16c9df69
Diffstat (limited to 'include')
-rw-r--r--include/svx/SvxColorValueSet.hxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/svx/SvxColorValueSet.hxx b/include/svx/SvxColorValueSet.hxx
index 7502d93f6104..77ad9b294ff6 100644
--- a/include/svx/SvxColorValueSet.hxx
+++ b/include/svx/SvxColorValueSet.hxx
@@ -24,6 +24,16 @@
class XColorList;
+struct Palette
+{
+ typedef std::pair<Color, OString> NamedColor;
+ typedef std::vector< NamedColor > ColorList;
+ Palette(){};
+ Palette(const OUString &rFname);
+ OString maName;
+ ColorList maColors;
+};
+
class SVX_DLLPUBLIC SvxColorValueSet : public ValueSet
{
private:
@@ -39,7 +49,8 @@ public:
sal_uInt32 getColumnCount() const;
void addEntriesForXColorList(const XColorList& rXColorList, sal_uInt32 nStartIndex = 1);
- void addEntriesForColorVector(const std::vector<Color>& rColorVector, sal_uInt32 nStartIndex = 1);
+ void loadColorVector(const std::vector<Color>& rColorVector, const OUString& rNamePrefix, sal_uInt32 nStartIndex = 1);
+ void loadPalette(const Palette& rPalette);
Size layoutAllVisible(sal_uInt32 nEntryCount);
Size layoutToGivenHeight(sal_uInt32 nHeight, sal_uInt32 nEntryCount);
};