summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2023-08-26 15:35:40 +0200
committerTomaž Vajngerl <quikee@gmail.com>2023-08-28 18:10:37 +0200
commitb04ab5b24a431d51d9941545ac1b81a165fd287e (patch)
tree788daf4924f653503e99de40a00ad15647217c66 /oox
parenta66c077ed90bb1a80fdc678641da64ce58045f98 (diff)
Change theme location to SdrModel and SdrPage (master page only)
In Writer and Calc we only have one theme per document, so the theme can be stored inside the SdrModel. For Imporess/Draw the theme is defined per master page, so it needs to be stored on the master page. This changes the implementation to reflect that. In addition refactor all the usages in writer and calc to get and set the theme to SdrModel, when needed and rename the methods on the SdrPageProperties from {Get,Set}Theme to {get,set}Theme. Change-Id: I0cc3b332c029c28d15f8cda748c578c2a54a5c61 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156128 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> (cherry picked from commit d150b7a60d7be4b09a838ae4c038e78509f75126) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156175 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Ashod Nakashian <ash@collabora.com>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/theme.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/drawingml/theme.cxx b/oox/source/drawingml/theme.cxx
index e8511a32eb5d..32ae9b4349da 100644
--- a/oox/source/drawingml/theme.cxx
+++ b/oox/source/drawingml/theme.cxx
@@ -120,7 +120,7 @@ void Theme::addTheme(const css::uno::Reference<css::drawing::XDrawPage>& xDrawPa
if (!pPage)
return;
- pPage->getSdrPageProperties().SetTheme(getTheme());
+ pPage->getSdrPageProperties().setTheme(getTheme());
}
} // namespace oox::drawingml