diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2023-02-25 23:07:20 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2023-04-08 07:56:27 +0200 |
commit | dad60bd52a25c1997d3724361ea81c0fe99b1872 (patch) | |
tree | 19e1e2067f00754789b347569a48be4aa7ab8af5 /include/oox | |
parent | 4f347ebabad6355014889f0a81b107dc774590fe (diff) |
oox: add model::Theme to oox::Theme and remove createSvxTheme
This is the start of the change where oox::Theme is only a holder
of model::Theme and not a oox structure. This is probably the
easiest way how to refactor that. In this commit only prepare that
and make the code work the same as it did before.
Change-Id: I926a35fd0db383ddb182dc83b36411b2d40b8530
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147692
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/oox')
-rw-r--r-- | include/oox/drawingml/theme.hxx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/oox/drawingml/theme.hxx b/include/oox/drawingml/theme.hxx index c2408ec1c015..84b75ea1e7a1 100644 --- a/include/oox/drawingml/theme.hxx +++ b/include/oox/drawingml/theme.hxx @@ -30,6 +30,7 @@ #include <oox/helper/refvector.hxx> #include <rtl/ustring.hxx> #include <sal/types.h> +#include <docmodel/theme/Theme.hxx> namespace com::sun::star { namespace drawing { class XDrawPage; } @@ -107,9 +108,17 @@ public: const css::uno::Reference<css::xml::dom::XDocument>& getFragment() const { return mxFragment; } void setFragment( const css::uno::Reference< css::xml::dom::XDocument>& xRef ) { mxFragment=xRef; } - std::shared_ptr<model::Theme> createSvxTheme() const; void addTheme(const css::uno::Reference<css::drawing::XDrawPage>& xDrawPage) const; + void setTheme(std::shared_ptr<model::Theme> const& pTheme) + { + mpTheme = pTheme; + } + + std::shared_ptr<model::Theme> const& getTheme() const + { + return mpTheme; + } private: OUString maThemeName; OUString maFontSchemeName; @@ -125,6 +134,8 @@ private: Shape maLnDef; Shape maTxDef; css::uno::Reference< css::xml::dom::XDocument> mxFragment; + + std::shared_ptr<model::Theme> mpTheme; }; |