diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2023-01-27 08:41:16 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2023-01-27 03:22:22 +0000 |
commit | c9fb441c55d03f55877ed3bb2f5c39310d1ec44b (patch) | |
tree | fb40c02e666cabb8cb218a0b39dba8d4a3a19106 /svx/source/svdraw/svdmodel.cxx | |
parent | 69c6f7bccec838b7288a25a29a83b7f782ba7586 (diff) |
move Theme class to own file inside docmodel
Also move Theme from svx to model namespace so it is consistent
with other classes in docmodel.
Theme header also includes ThemeSupplementalFont, ThemeFont,
FontScheme classes that are used by the Theme and were also moved
to docmodel. These may be moved to its own file in the future when
they are used in more places.
Change-Id: Ic409bea8e5298adc2b039b529c4f7b01cf64f03e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146221
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svx/source/svdraw/svdmodel.cxx')
-rw-r--r-- | svx/source/svdraw/svdmodel.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx index bc86671c9437..28ec1e556f23 100644 --- a/svx/source/svdraw/svdmodel.cxx +++ b/svx/source/svdraw/svdmodel.cxx @@ -71,7 +71,7 @@ #include <o3tl/enumrange.hxx> #include <comphelper/diagnose_ex.hxx> #include <tools/UnitConversion.hxx> -#include <svx/ColorSets.hxx> +#include <docmodel/theme/Theme.hxx> #include <svx/svditer.hxx> #include <svx/svdoashp.hxx> @@ -84,7 +84,7 @@ struct SdrModelImpl SdrUndoFactory* mpUndoFactory; bool mbAnchoredTextOverflowLegacy; // tdf#99729 compatibility flag bool mbLegacySingleLineFontwork; // tdf#148000 compatibility flag - std::unique_ptr<svx::Theme> mpTheme; + std::unique_ptr<model::Theme> mpTheme; SdrModelImpl() : mpUndoManager(nullptr) @@ -1570,9 +1570,9 @@ void SdrModel::SetStarDrawPreviewMode(bool bPreview) } } -void SdrModel::SetTheme(std::unique_ptr<svx::Theme> pTheme) { mpImpl->mpTheme = std::move(pTheme); } +void SdrModel::SetTheme(std::unique_ptr<model::Theme> pTheme) { mpImpl->mpTheme = std::move(pTheme); } -svx::Theme* SdrModel::GetTheme() { return mpImpl->mpTheme.get(); } +model::Theme* SdrModel::GetTheme() { return mpImpl->mpTheme.get(); } uno::Reference< uno::XInterface > const & SdrModel::getUnoModel() { |