summaryrefslogtreecommitdiff
path: root/include/svx/Palette.hxx
diff options
context:
space:
mode:
authorChris Laplante <mostthingsweb@gmail.com>2015-02-26 00:27:02 -0500
committerTomaž Vajngerl <quikee@gmail.com>2015-03-01 04:00:41 +0000
commit797c48f0f74501def9f47444538c0e110fcfcca1 (patch)
tree91f8450d397d5b6096195b36f9dbe9f22465f2cf /include/svx/Palette.hxx
parente3e95f97638ff4d2c230cbc1f560a148863fb7a5 (diff)
tdf#84002 Add support for .ase color palettes
CMYK, RGB, and gray color models are supported. LAB colors are replaced by just black since the conversion to RGB is very complicated. Change-Id: I689e6ce972cd7b7f03725f99be4761dea4a81743 Reviewed-on: https://gerrit.libreoffice.org/14661 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/svx/Palette.hxx')
-rw-r--r--include/svx/Palette.hxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/svx/Palette.hxx b/include/svx/Palette.hxx
index 32088a834e4c..32e00f131716 100644
--- a/include/svx/Palette.hxx
+++ b/include/svx/Palette.hxx
@@ -40,6 +40,25 @@ public:
virtual bool IsValid() = 0;
};
+class PaletteASE : public Palette
+{
+ bool mbValidPalette;
+ OUString maFName;
+ OUString maFPath;
+ OUString maName;
+ ColorList maColors;
+
+ void LoadPalette();
+public:
+ PaletteASE( const OUString &rFPath, const OUString &rFName );
+ virtual ~PaletteASE();
+
+ virtual const OUString& GetName() SAL_OVERRIDE;
+ virtual void LoadColorSet( SvxColorValueSet& rColorSet ) SAL_OVERRIDE;
+
+ virtual bool IsValid() SAL_OVERRIDE;
+};
+
class PaletteGPL : public Palette
{
bool mbLoadedPalette;