diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2023-08-17 22:35:26 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2023-08-25 18:48:48 +0200 |
commit | 32400a791522d90c3b9b731b73c751b7967f660c (patch) | |
tree | edd0051040e0cee83dcf85f3df2e96a570c66b0a /include/svx | |
parent | b44581d9cbb103390f99f73167ec37960895f95f (diff) |
svx: refactor text color theme changing and add undo support
This refactors text theme color changing to use editeng directly
and also makes it possible to add undo support.
Some refactoring changes were also needed in Writer and Calc
ThemeColorChanger implementations.
Change-Id: I5cc21205aa3866f65f5b2132ecaa760292401263
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155819
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/theme/ThemeColorChangerCommon.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/svx/theme/ThemeColorChangerCommon.hxx b/include/svx/theme/ThemeColorChangerCommon.hxx index 235648df2cab..d60d9c1ba7fb 100644 --- a/include/svx/theme/ThemeColorChangerCommon.hxx +++ b/include/svx/theme/ThemeColorChangerCommon.hxx @@ -14,12 +14,15 @@ #include <docmodel/theme/ColorSet.hxx> #include <svx/svdpage.hxx> #include <svx/svdobj.hxx> +#include <svx/svdview.hxx> +#include <svl/undo.hxx> namespace svx { namespace theme { -SVXCORE_DLLPUBLIC void updateSdrObject(model::ColorSet const& rColorSet, SdrObject* pObject); +SVXCORE_DLLPUBLIC void updateSdrObject(model::ColorSet const& rColorSet, SdrObject* pObject, + SdrView* pView, SfxUndoManager* pUndoManager = nullptr); } } // end svx namespace |