From 312f83bcf52d2f681eb9fa1bbdbb98bfd063a3b4 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Fri, 27 Jan 2023 12:13:29 +0900 Subject: introduce XTheme and UnoTheme implementation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Needed to transprt model::Theme around using throught UNO API as xmloff can't access SdrPage directly. Change-Id: I5931e42352186d62e7f09b112d8e8c9e4fb79440 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146224 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- docmodel/source/theme/Theme.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docmodel/source/theme') diff --git a/docmodel/source/theme/Theme.cxx b/docmodel/source/theme/Theme.cxx index 0f8ff8002870..5f755b0774a3 100644 --- a/docmodel/source/theme/Theme.cxx +++ b/docmodel/source/theme/Theme.cxx @@ -29,6 +29,13 @@ Theme::Theme(OUString const& rName) { } +Theme::Theme(Theme const& rTheme) + : maName(rTheme.maName) + , mpColorSet(new ColorSet(*rTheme.GetColorSet())) + , maFontScheme(rTheme.maFontScheme) +{ +} + void Theme::SetColorSet(std::unique_ptr pColorSet) { mpColorSet = std::move(pColorSet); -- cgit