diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2023-08-31 13:47:27 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2023-09-01 10:12:04 +0200 |
commit | b53a03d1d55de7fd04efc47c4a57baa11d72dd85 (patch) | |
tree | 5f62fbbc8092a3a0967c62876f29dc8b449f0db1 /include/xmloff/xmlexp.hxx | |
parent | 6d8c6e8d60956fd36094035a526c1a29a902204b (diff) |
move theme element export to xmloff to remove code duplication
Both Impress/Draw and Writer export the model::Theme in a similar
way, but the code is duplicated. Remove duplication and move the
code to a common place (on the SwXMLExport class) so it can be
reused at both places.
Change-Id: Id93acfafb0dd4ab0168b3228079f6ce6f64e6b55
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156362
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/xmloff/xmlexp.hxx')
-rw-r--r-- | include/xmloff/xmlexp.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/xmloff/xmlexp.hxx b/include/xmloff/xmlexp.hxx index 8fd763438e81..2db5a90949ef 100644 --- a/include/xmloff/xmlexp.hxx +++ b/include/xmloff/xmlexp.hxx @@ -87,6 +87,8 @@ namespace com::sun::star { } namespace comphelper { class UnoInterfaceToUniqueIdentifierMapper; } +namespace model { class Theme; } + enum class SvXMLExportFlags { NONE = 0, META = 0x0001, @@ -260,6 +262,8 @@ protected: void SetDocHandler( const css::uno::Reference< css::xml::sax::XDocumentHandler > &rHandler ); + void ExportThemeElement(std::shared_ptr<model::Theme> const& pTheme); + bool mbAutoStylesCollected; public: |