From 32400a791522d90c3b9b731b73c751b7967f660c Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Thu, 17 Aug 2023 22:35:26 +0200 Subject: svx: refactor text color theme changing and add undo support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- include/svx/theme/ThemeColorChangerCommon.hxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/svx') 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 #include #include +#include +#include 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 -- cgit