diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2023-08-31 22:29:46 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2023-09-01 10:12:11 +0200 |
commit | b36f7769dd07a6b6f55cdf4ce76e2f39ed186e89 (patch) | |
tree | a26f63a64df6fe34e306ae7f0b5e4f5767ca4a42 /xmloff/inc | |
parent | b53a03d1d55de7fd04efc47c4a57baa11d72dd85 (diff) |
sc: add ODF import/export of the Theme + tests
One missing thing is the support in calc to save the Theme into
the ODS document and read that back. The theme element is added as
a child element to the office:styles - the same as it already is
added in Writer.
Also adds "Theme" property as a top level document property
so it is possible to get and set the theme in xmloff.
Also tests have been added to cover this usecases.
Change-Id: Ic214ff5e945b77d50e6c881def9d49509560a0e0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156363
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'xmloff/inc')
-rw-r--r-- | xmloff/inc/XMLThemeContext.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/inc/XMLThemeContext.hxx b/xmloff/inc/XMLThemeContext.hxx index ce6f5ec9bbb6..f8ee08d5d4e8 100644 --- a/xmloff/inc/XMLThemeContext.hxx +++ b/xmloff/inc/XMLThemeContext.hxx @@ -10,7 +10,7 @@ #include <utility> #include <xmloff/xmlprcon.hxx> -#include <com/sun/star/drawing/XDrawPage.hpp> +#include <com/sun/star/uno/XInterface.hpp> #include <com/sun/star/util/Color.hpp> #include <com/sun/star/container/XNameContainer.hpp> @@ -24,13 +24,13 @@ class Theme; /// Imports the theme class XMLThemeContext : public SvXMLImportContext { - css::uno::Reference<css::drawing::XDrawPage> m_xPage; + css::uno::Reference<css::uno::XInterface> m_xObject; std::shared_ptr<model::Theme> mpTheme; public: XMLThemeContext(SvXMLImport& rImport, css::uno::Reference<css::xml::sax::XFastAttributeList> const& xAttrList, - css::uno::Reference<css::drawing::XDrawPage> const& xPage); + css::uno::Reference<css::uno::XInterface> const& xObject); ~XMLThemeContext(); css::uno::Reference<css::xml::sax::XFastContextHandler> SAL_CALL createFastChildContext( |