diff options
Diffstat (limited to 'include/editeng/colritem.hxx')
-rw-r--r-- | include/editeng/colritem.hxx | 54 |
1 files changed, 4 insertions, 50 deletions
diff --git a/include/editeng/colritem.hxx b/include/editeng/colritem.hxx index 05a7183c8582..d4090eb9e7eb 100644 --- a/include/editeng/colritem.hxx +++ b/include/editeng/colritem.hxx @@ -22,63 +22,17 @@ #include <svl/poolitem.hxx> #include <tools/color.hxx> #include <editeng/editengdllapi.h> +#include <docmodel/theme/ThemeColor.hxx> #define VERSION_USEAUTOCOLOR 1 -/// Represents theme metadata for a (tools) Color. -class EDITENG_DLLPUBLIC SvxThemeColor -{ - sal_Int16 maThemeIndex; - /// Luminance Modulation: 100th percentage, defaults to 100%. - sal_Int16 mnLumMod; - /// Luminance Offset: 100th percentage, defaults to 0%. - sal_Int16 mnLumOff; - - sal_Int16 mnTintOrShade; - -public: - explicit SvxThemeColor(); - bool operator==(const SvxThemeColor& rThemeColor) const; - - sal_Int16 GetThemeIndex() const - { - return maThemeIndex; - } - - void SetThemeIndex(sal_Int16 nIndex) - { - maThemeIndex = nIndex; - - } - void SetLumMod(sal_Int16 nLumMod) { mnLumMod = nLumMod; } - - sal_Int16 GetLumMod() const { return mnLumMod; } - - void SetLumOff(sal_Int16 nLumOff) { mnLumOff = nLumOff; } - - sal_Int16 GetLumOff() const { return mnLumOff; } - - sal_Int16 GetTintOrShade() const - { - return mnTintOrShade; - } - - void SetTintOrShade(sal_Int16 nTintOrShade) - { - mnTintOrShade = nTintOrShade; - } - - void dumpAsXml(xmlTextWriterPtr pWriter) const; -}; - /** SvxColorItem item describes a color. */ class EDITENG_DLLPUBLIC SvxColorItem final : public SfxPoolItem { private: Color mColor; - SvxThemeColor maThemeColor; - + model::ThemeColor maThemeColor; public: static SfxPoolItem* CreateDefault(); @@ -105,9 +59,9 @@ public: } void SetValue(const Color& rNewColor); - SvxThemeColor& GetThemeColor() { return maThemeColor; } + model::ThemeColor& GetThemeColor() { return maThemeColor; } - const SvxThemeColor& GetThemeColor() const { return maThemeColor; } + const model::ThemeColor& GetThemeColor() const { return maThemeColor; } void dumpAsXml(xmlTextWriterPtr pWriter) const override; }; |