From b36f7769dd07a6b6f55cdf4ce76e2f39ed186e89 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Thu, 31 Aug 2023 22:29:46 +0200 Subject: sc: add ODF import/export of the Theme + tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- xmloff/inc/XMLThemeContext.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xmloff/inc') 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 #include -#include +#include #include #include @@ -24,13 +24,13 @@ class Theme; /// Imports the theme class XMLThemeContext : public SvXMLImportContext { - css::uno::Reference m_xPage; + css::uno::Reference m_xObject; std::shared_ptr mpTheme; public: XMLThemeContext(SvXMLImport& rImport, css::uno::Reference const& xAttrList, - css::uno::Reference const& xPage); + css::uno::Reference const& xObject); ~XMLThemeContext(); css::uno::Reference SAL_CALL createFastChildContext( -- cgit