diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2022-03-17 20:37:39 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2022-03-18 08:07:02 +0100 |
commit | 1868dea877b0c956ee34e92afad59920e66cad3f (patch) | |
tree | 1de6e3485125f09e6d3436c6a2d6b9f1e1bc0b06 /schema | |
parent | 778bbcede813dd51e11ee61583247db1199eda63 (diff) |
sd theme: add ODP import/export for shape fill color
Refer to the 12 pre-defined colors by name + don't write the attribute
for the case when there is no theme.
Change-Id: I37c984b3371ec878a0d733977f5c937dce27c440
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131717
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'schema')
-rw-r--r-- | schema/libreoffice/OpenDocument-v1.3+libreoffice-schema.rng | 53 |
1 files changed, 31 insertions, 22 deletions
diff --git a/schema/libreoffice/OpenDocument-v1.3+libreoffice-schema.rng b/schema/libreoffice/OpenDocument-v1.3+libreoffice-schema.rng index 7b3eff94de1c..63832dbb887f 100644 --- a/schema/libreoffice/OpenDocument-v1.3+libreoffice-schema.rng +++ b/schema/libreoffice/OpenDocument-v1.3+libreoffice-schema.rng @@ -1597,6 +1597,12 @@ xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1. <rng:ref name="color"/> </rng:attribute> </rng:optional> + <!-- TODO no proposal for theme color of shape fill --> + <rng:optional> + <rng:attribute name="loext:fill-theme-color"> + <rng:ref name="theme-color"/> + </rng:attribute> + </rng:optional> <rng:optional> <rng:attribute name="draw:secondary-fill-color"> <rng:ref name="color"/> @@ -2093,29 +2099,10 @@ xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1. <rng:ref name="zeroToHundredPercent"/> </rng:attribute> </rng:optional> - <!-- TODO no proposal --> + <!-- TODO no proposal for theme color of shape text --> <rng:optional> <rng:attribute name="loext:theme-color"> - <rng:choice> - <!-- Background 1 --> - <rng:value>dk1</rng:value> - <!-- Text 1 --> - <rng:value>lt1</rng:value> - <!-- Background 2 --> - <rng:value>dk2</rng:value> - <!-- Text 2 --> - <rng:value>lt2</rng:value> - <rng:value>accent1</rng:value> - <rng:value>accent2</rng:value> - <rng:value>accent3</rng:value> - <rng:value>accent4</rng:value> - <rng:value>accent5</rng:value> - <rng:value>accent6</rng:value> - <!-- Hyperlink --> - <rng:value>hlink</rng:value> - <!-- Followed hyperlink --> - <rng:value>folHlink</rng:value> - </rng:choice> + <rng:ref name="theme-color"/> </rng:attribute> </rng:optional> <rng:optional> @@ -2895,7 +2882,7 @@ xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1. <rng:ref name="office-forms"/> </rng:optional> <rng:optional> - <!-- TODO no proposal --> + <!-- TODO no proposal for defining a theme --> <rng:ref name="loext-theme"/> </rng:optional> <rng:zeroOrMore> @@ -2909,4 +2896,26 @@ xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1. </rng:optional> </rng:element> </rng:define> + <rng:define name="theme-color"> + <rng:choice> + <!-- Background 1 --> + <rng:value>dk1</rng:value> + <!-- Text 1 --> + <rng:value>lt1</rng:value> + <!-- Background 2 --> + <rng:value>dk2</rng:value> + <!-- Text 2 --> + <rng:value>lt2</rng:value> + <rng:value>accent1</rng:value> + <rng:value>accent2</rng:value> + <rng:value>accent3</rng:value> + <rng:value>accent4</rng:value> + <rng:value>accent5</rng:value> + <rng:value>accent6</rng:value> + <!-- Hyperlink --> + <rng:value>hlink</rng:value> + <!-- Followed hyperlink --> + <rng:value>folHlink</rng:value> + </rng:choice> + </rng:define> </rng:grammar> |