diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2023-02-11 11:24:05 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2023-03-01 12:57:21 +0000 |
commit | 855f7c08d1feab7669670bfbc4ed2b3b3225db16 (patch) | |
tree | 0d8f8cd014bb74cfd88aea2283e1d30ad7b2b547 /include/editeng | |
parent | 79434c321597790de6cb8db18f4b9fb6dc8c60bb (diff) |
send theme info when changing color (in the picker) via UNO command
Change-Id: I288f8fb3375e152b5ee746fab2c05d08150d6c99
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146817
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/editeng')
-rw-r--r-- | include/editeng/colritem.hxx | 6 | ||||
-rw-r--r-- | include/editeng/memberids.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/editeng/colritem.hxx b/include/editeng/colritem.hxx index d4090eb9e7eb..fc55b6e04553 100644 --- a/include/editeng/colritem.hxx +++ b/include/editeng/colritem.hxx @@ -39,6 +39,7 @@ public: explicit SvxColorItem(const sal_uInt16 nId); SvxColorItem(const Color& aColor, const sal_uInt16 nId); + SvxColorItem(const Color& aColor, model::ThemeColor const& rThemeColor, const sal_uInt16 nId); virtual ~SvxColorItem() override; // "pure virtual Methods" from SfxPoolItem @@ -63,6 +64,11 @@ public: const model::ThemeColor& GetThemeColor() const { return maThemeColor; } + void setThemeColor(model::ThemeColor const& rThemeColor) + { + maThemeColor = rThemeColor; + } + void dumpAsXml(xmlTextWriterPtr pWriter) const override; }; diff --git a/include/editeng/memberids.h b/include/editeng/memberids.h index 0b110cb52c5d..6003ce394ba0 100644 --- a/include/editeng/memberids.h +++ b/include/editeng/memberids.h @@ -189,6 +189,7 @@ #define MID_COLOR_LUM_MOD 6 #define MID_COLOR_LUM_OFF 7 #define MID_COLOR_THEME_REFERENCE 8 +#define MID_COLOR_THEME_REFERENCE_JSON 9 #endif |