diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2023-08-26 15:35:40 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2023-08-27 12:15:14 +0200 |
commit | d150b7a60d7be4b09a838ae4c038e78509f75126 (patch) | |
tree | 61aaf42cd7f8698415beed1bf51a71c0b6f5865d /svx/source/form | |
parent | 8496f805da8ea9f2585b7485b448dda52557db9a (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>
Diffstat (limited to 'svx/source/form')
-rw-r--r-- | svx/source/form/fmmodel.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/svx/source/form/fmmodel.cxx b/svx/source/form/fmmodel.cxx index e518319aab1e..58155f874c77 100644 --- a/svx/source/form/fmmodel.cxx +++ b/svx/source/form/fmmodel.cxx @@ -48,12 +48,8 @@ struct FmFormModelImplData } }; -FmFormModel::FmFormModel( - SfxItemPool* pPool, - SfxObjectShell* pPers) -: SdrModel( - pPool, - pPers) +FmFormModel::FmFormModel(SfxItemPool* pPool, SfxObjectShell* pPers) + : SdrModel(pPool, pPers) , m_pObjShell(nullptr) , m_bOpenInDesignMode(false) , m_bAutoControlFocus(false) |