summaryrefslogtreecommitdiff
path: root/schema
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2023-01-26 18:09:06 +0900
committerTomaž Vajngerl <quikee@gmail.com>2023-01-27 01:40:59 +0000
commit6d1413da02602992b42b62bda9a26ffeb774b603 (patch)
tree81d1a17c4844e1749738a8356f76c8a7c75ea137 /schema
parent14c0efccba84a002050d081c961bb0b6e90b009f (diff)
xmloff: export Theme for ODT (Writer) documents
Exports the Theme set on the one and only SdrPage for ODT (Writer) documents. The theme is exported as a sub-element of "style". This differs to ODP (Impress) documents, which export the Theme as part of the master-page element. Currently the code is duplicated, because the theme can't yet be accessed inside xmloff in a non-conflicting way (creating conflicts between modules), which will be fixed in the future. Change-Id: I0e440d14724b49e7d86e9deabc6615a91e8cd31a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146172 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'schema')
-rw-r--r--schema/libreoffice/OpenDocument-v1.3+libreoffice-schema.rng8
1 files changed, 8 insertions, 0 deletions
diff --git a/schema/libreoffice/OpenDocument-v1.3+libreoffice-schema.rng b/schema/libreoffice/OpenDocument-v1.3+libreoffice-schema.rng
index 4606e1cc282c..98e6015ad23f 100644
--- a/schema/libreoffice/OpenDocument-v1.3+libreoffice-schema.rng
+++ b/schema/libreoffice/OpenDocument-v1.3+libreoffice-schema.rng
@@ -3285,6 +3285,14 @@ xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.
</rng:optional>
</rng:element>
</rng:define>
+
+ <!-- TODO no proposal -->
+ <rng:define name="style-style" combine="interleave">
+ <rng:optional>
+ <rng:ref name="loext-theme"/>
+ </rng:optional>
+ </rng:define>
+
<rng:define name="style-master-page" combine="choice">
<rng:element name="style:master-page">
<rng:ref name="style-master-page-attlist"/>