diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2021-12-07 08:32:30 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-12-07 09:37:18 +0100 |
commit | c95288aec4eb4d92a5ccfb9d8fc02a0185d8e8d0 (patch) | |
tree | a0fb42d00dad076a103ae8ec2d0df141e2a58fde /schema | |
parent | 68c15984ea17354c03e5ddf03e0c0b4214999659 (diff) |
ODP export: write the theme of a master page
Which requires describing the schema, which is really just a new
<loext:theme> element, the rest reuses the color-table markup, which
wasn't used in ODF so far (but was used in our .soc files).
Also make sure that we only do this in ODF extended mode (which is the
default).
Change-Id: I90eaad30f63946c441fe0c53caf6a47caf1714d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126466
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'schema')
-rw-r--r-- | schema/libreoffice/OpenDocument-v1.3+libreoffice-schema.rng | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/schema/libreoffice/OpenDocument-v1.3+libreoffice-schema.rng b/schema/libreoffice/OpenDocument-v1.3+libreoffice-schema.rng index 3919ba47f04f..6e0a301b047f 100644 --- a/schema/libreoffice/OpenDocument-v1.3+libreoffice-schema.rng +++ b/schema/libreoffice/OpenDocument-v1.3+libreoffice-schema.rng @@ -2743,4 +2743,100 @@ xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1. </rng:optional> </rng:define> + <rng:define name="loext-color-attlist"> + <rng:interleave> + <rng:optional> + <rng:attribute name="loext:name"> + <rng:ref name="string"/> + </rng:attribute> + </rng:optional> + <rng:optional> + <rng:attribute name="loext:color"> + <rng:ref name="color"/> + </rng:attribute> + </rng:optional> + </rng:interleave> + </rng:define> + <rng:define name="loext-color"> + <rng:element name="loext:color"> + <rng:ref name="loext-color-attlist"/> + <rng:empty/> + </rng:element> + </rng:define> + <rng:define name="loext-color-table-attlist"> + <rng:interleave> + <rng:optional> + <rng:attribute name="loext:name"> + <rng:ref name="string"/> + </rng:attribute> + </rng:optional> + </rng:interleave> + </rng:define> + <rng:define name="loext-color-table"> + <rng:element name="loext:color-table"> + <rng:ref name="loext-color-table-attlist"/> + <rng:zeroOrMore> + <rng:ref name="loext-color"/> + </rng:zeroOrMore> + </rng:element> + </rng:define> + <rng:define name="loext-theme-attlist"> + <rng:interleave> + <rng:optional> + <rng:attribute name="loext:name"> + <rng:ref name="string"/> + </rng:attribute> + </rng:optional> + </rng:interleave> + </rng:define> + <rng:define name="loext-theme"> + <rng:element name="loext:theme"> + <rng:ref name="loext-theme-attlist"/> + <rng:optional> + <rng:ref name="loext-color-table"/> + </rng:optional> + </rng:element> + </rng:define> + <rng:define name="style-master-page" combine="choice"> + <rng:element name="style:master-page"> + <rng:ref name="style-master-page-attlist"/> + <rng:optional> + <rng:ref name="style-header"/> + <rng:optional> + <rng:ref name="style-header-left"/> + </rng:optional> + <rng:optional> + <rng:ref name="style-header-first"/> + </rng:optional> + </rng:optional> + <rng:optional> + <rng:ref name="style-footer"/> + <rng:optional> + <rng:ref name="style-footer-left"/> + </rng:optional> + <rng:optional> + <rng:ref name="style-footer-first"/> + </rng:optional> + </rng:optional> + <rng:optional> + <rng:ref name="draw-layer-set"/> + </rng:optional> + <rng:optional> + <rng:ref name="office-forms"/> + </rng:optional> + <rng:optional> + <!-- TODO no proposal --> + <rng:ref name="loext-theme"/> + </rng:optional> + <rng:zeroOrMore> + <rng:ref name="shape"/> + </rng:zeroOrMore> + <rng:optional> + <rng:ref name="animation-element"/> + </rng:optional> + <rng:optional> + <rng:ref name="presentation-notes"/> + </rng:optional> + </rng:element> + </rng:define> </rng:grammar> |