2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License
, v.
2.0. If a copy of the MPL was not distributed with this
6 * file
, You can obtain one at http
://mozilla.org
/MPL
/2.0/.
8 * This file incorporates work covered by the following license notice
:
10 * Licensed to the Apache Software
Foundation (ASF
) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License
, Version
2.0 (the
"License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http
://www.apache.org
/licenses
/LICENSE
-2.0 .
19 <!ENTITY
% chart
-class
"(line|area|circle|ring|scatter|radar|bar|stock|add-in)">
20 <!ENTITY
% chart
-solid
-type
"(cuboid|cylinder|cone|pyramid)">
22 <!-- Chart element
-->
23 <!ELEMENT chart
:chart ( chart
:title?
, chart
:subtitle?
, chart
:legend?
,
27 chart
:class
%chart
-class
; #REQUIRED
28 chart
:add
-in
-name
%string
; #IMPLIED
29 chart
:table
-number
-list
%string
; #IMPLIED
30 draw
:name
%string
; #IMPLIED
34 chart
:column
-mapping
%string
; #IMPLIED
35 chart
:row
-mapping
%string
; #IMPLIED
36 chart
:style
-name
%styleName
; #IMPLIED
>
38 <!ATTLIST chart
:chart
%presentation
-class
; >
39 <!ATTLIST chart
:chart
%zindex
;>
40 <!ATTLIST chart
:chart
%draw
-end
-position
; >
41 <!ATTLIST chart
:chart draw
:id
%draw
-shape
-id
; >
42 <!ATTLIST chart
:chart draw
:layer
%layerName
; #IMPLIED
>
44 <!ATTLIST style
:properties
45 chart
:scale
-text
%boolean
; "true"
46 chart
:stock
-updown
-bars
%boolean
; "false"
47 chart
:stock
-with
-volume
%boolean
; "false"
48 chart
:three
-dimensional
%boolean
; "false"
49 chart
:deep
%boolean
; "false"
50 chart
:lines
%boolean
; "false"
51 chart
:percentage
%boolean
; "false"
52 chart
:solid
-type
%chart
-solid
-type
; "cuboid"
53 chart
:splines
%nonNegativeInteger
; "0"
54 chart
:stacked
%boolean
; "false"
55 chart
:symbol
%integer
; "-1"
56 chart
:vertical
%boolean
; "false"
57 chart
:lines
-used
%nonNegativeInteger
; "0"
58 chart
:connect
-bars
%boolean
; "false"
59 chart
:spline
-order
%nonNegativeInteger
; "2"
60 chart
:spline
-resolution
%nonNegativeInteger
; "20"
61 chart
:pie
-offset
%nonNegativeInteger
; "0">
63 <!-- Main
/Sub Title
-->
64 <!-- the cell
-address attribute is currently not supported for titles
-->
65 <!ELEMENT chart
:title (text
:p
)?
>
67 table
:cell
-range
%cell
-address
; #IMPLIED
68 svg
:x
%coordinate
; #IMPLIED
69 svg
:y
%coordinate
; #IMPLIED
70 chart
:style
-name
%styleName
; #IMPLIED
>
72 <!ELEMENT chart
:subtitle (text
:p
)?
>
73 <!ATTLIST chart
:subtitle
74 table
:cell
-range
%cell
-address
; #IMPLIED
75 svg
:x
%coordinate
; #IMPLIED
76 svg
:y
%coordinate
; #IMPLIED
77 chart
:style
-name
%styleName
; #IMPLIED
>
79 <!-- you must specify either a legend
-position or both
, x and y coordinates
-->
80 <!ELEMENT chart
:legend EMPTY
>
81 <!ATTLIST chart
:legend
82 chart
:legend
-position (top|left|bottom|right
) "right"
83 svg
:x
%coordinate
; #IMPLIED
84 svg
:y
%coordinate
; #IMPLIED
85 chart
:style
-name
%styleName
; #IMPLIED
>
87 <!-- Plot
-Area specification
-->
89 <!ELEMENT chart
:plot
-area (dr3d
:light
*,
93 chart
:stock
-gain
-marker?
,
94 chart
:stock
-loss
-marker?
,
95 chart
:stock
-range
-line?
,
99 <!ATTLIST chart
:plot
-area
100 svg
:x
%coordinate
; #IMPLIED
101 svg
:y
%coordinate
; #IMPLIED
102 svg
:width
%length
; #IMPLIED
103 svg
:height
%length
; #IMPLIED
104 chart
:style
-name
%styleName
; #IMPLIED
105 table
:cell
-range
-address
%cell
-range
-address
; #IMPLIED
106 chart
:table
-number
-list
%string
; #IMPLIED
107 chart
:data
-source
-has
-labels (none|row|column|both
) "none" >
109 <!-- 3d scene attributes on plot
-area
-->
110 <!ATTLIST chart
:plot
-area
111 dr3d
:vrp
%vector3D
; #IMPLIED
112 dr3d
:vpn
%vector3D
; #IMPLIED
113 dr3d
:vup
%vector3D
; #IMPLIED
114 dr3d
:projection (parallel|perspective
) #IMPLIED
115 dr3d
:transform CDATA #IMPLIED
116 dr3d
:distance
%length
; #IMPLIED
117 dr3d
:focal
-length
%length
; #IMPLIED
118 dr3d
:shadow
-slant
%nonNegativeInteger
; #IMPLIED
119 dr3d
:shade
-mode (flat|phong|gouraud|draft
) #IMPLIED
120 dr3d
:ambient
-color
%color
; #IMPLIED
121 dr3d
:lighting
-mode
%boolean
; #IMPLIED
>
123 <!ATTLIST style
:properties
124 chart
:series
-source (columns|rows
) "columns" >
126 <!ELEMENT chart
:wall EMPTY
>
128 svg
:width
%length
; #IMPLIED
129 chart
:style
-name
%styleName
; #IMPLIED
>
131 <!ELEMENT chart
:floor EMPTY
>
132 <!ATTLIST chart
:floor
133 svg
:width
%length
; #IMPLIED
134 chart
:style
-name
%styleName
; #IMPLIED
>
136 <!-- Stock chart elements
-->
138 <!ELEMENT chart
:stock
-gain
-marker EMPTY
>
139 <!ATTLIST chart
:stock
-gain
-marker
140 chart
:style
-name
%styleName
; #IMPLIED
>
142 <!ELEMENT chart
:stock
-loss
-marker EMPTY
>
143 <!ATTLIST chart
:stock
-loss
-marker
144 chart
:style
-name
%styleName
; #IMPLIED
>
146 <!ELEMENT chart
:stock
-range
-line EMPTY
>
147 <!ATTLIST chart
:stock
-range
-line
148 chart
:style
-name
%styleName
; #IMPLIED
>
152 <!ELEMENT chart
:axis (chart
:title?
, chart
:grid*)
>
154 chart
:class (category|value|series|domain
) #REQUIRED
155 chart
:name
%string
; #IMPLIED
156 chart
:style
-name
%styleName
; #IMPLIED
>
158 <!ATTLIST style
:properties
159 chart
:tick
-marks
-major
-inner
%boolean
; "false"
160 chart
:tick
-marks
-major
-outer
%boolean
; "true"
161 chart
:tick
-marks
-minor
-inner
%boolean
; "false"
162 chart
:tick
-marks
-minor
-outer
%boolean
; "false"
163 chart
:logarithmic
%boolean
; "false"
164 chart
:maximum
%float
; #IMPLIED
165 chart
:minimum
%float
; #IMPLIED
166 chart
:origin
%float
; #IMPLIED
167 chart
:interval
-major
%float
; #IMPLIED
168 chart
:interval
-minor
%float
; #IMPLIED
169 chart
:gap
-width
%integer
; #IMPLIED
170 chart
:overlap
%integer
; #IMPLIED
171 text
:line
-break
%boolean
; "true"
172 chart
:display
-label
%boolean
; "true"
173 chart
:label
-arrangement (side
-by
-side|stagger
-even|stagger
-odd
) "side-by-side"
174 chart
:text
-overlap
%boolean
; "false"
175 chart
:visible
%boolean
; "true"
176 chart
:link
-data
-style
-to
-source
%boolean
; "true" >
178 <!ELEMENT chart
:grid EMPTY
>
180 chart
:class (major|minor
) "major"
181 chart
:style
-name
%styleName
; #IMPLIED
>
184 <!ELEMENT chart
:categories EMPTY
>
185 <!ATTLIST chart
:categories
186 table
:cell
-range
-address
%cell
-range
-address
; #IMPLIED
>
189 each series element must have an cell
-range
-address element that points
190 to the underlying table data.
191 Impl. Note
: Internally all href elements are merged to one table range
192 that represents the data for the whole chart
194 <!ELEMENT chart
:series ( chart
:domain
*,
196 chart
:regression
-curve?
,
197 chart
:error
-indicator?
,
199 <!ATTLIST chart
:series
200 chart
:values
-cell
-range
-address
%cell
-range
-address
; #IMPLIED
201 chart
:label
-cell
-address
%cell
-address
; #IMPLIED
202 chart
:class
%chart
-class
; #IMPLIED
203 chart
:attached
-axis
%string
; #IMPLIED
204 chart
:style
-name
%styleName
; #IMPLIED
>
206 <!ELEMENT chart
:domain EMPTY
>
207 <!ATTLIST chart
:domain
208 table
:cell
-range
-address
%cell
-range
-address
; #IMPLIED
>
210 <!ELEMENT chart
:data
-point EMPTY
>
211 <!ATTLIST chart
:data
-point
212 chart
:repeated
%nonNegativeInteger
; #IMPLIED
213 chart
:style
-name
%styleName
; #IMPLIED
>
215 <!-- statistical properties
-->
217 <!ELEMENT chart
:mean
-value EMPTY
>
218 <!ELEMENT chart
:regression
-curve EMPTY
>
219 <!ELEMENT chart
:error
-indicator EMPTY
>
220 <!ATTLIST chart
:mean
-value chart
:style
-name
%styleName
; #IMPLIED
>
221 <!ATTLIST chart
:regression
-curve chart
:style
-name
%styleName
; #IMPLIED
>
222 <!ATTLIST chart
:error
-indicator chart
:style
-name
%styleName
; #IMPLIED
>
224 <!ATTLIST style
:properties
225 chart
:mean
-value
%boolean
; #IMPLIED
226 chart
:error
-category (none|variance|standard
-deviation|percentage|error
-margin|constant
) "none"
227 chart
:error
-percentage
%float
; #IMPLIED
228 chart
:error
-margin
%float
; #IMPLIED
229 chart
:error
-lower
-limit
%float
; #IMPLIED
230 chart
:error
-upper
-limit
%float
; #IMPLIED
231 chart
:error
-upper
-indicator
%boolean
; #IMPLIED
232 chart
:error
-lower
-indicator
%boolean
; #IMPLIED
233 chart
:regression
-type (none|linear|logarithmic|exponential|power
) "none" >
235 <!-- data label properties
-->
237 <!ATTLIST style
:properties
238 chart
:data
-label
-number (none|value|percentage
) "none"
239 chart
:data
-label
-text
%boolean
; "false"
240 chart
:data
-label
-symbol
%boolean
; "false" >
242 <!-- general text properties
-->
244 <!ATTLIST style
:properties
245 text
:rotation
-angle
%integer
; "0" >
247 <!-- symbol properties
-->
249 <!ATTLIST style
:properties
250 chart
:symbol
-width
%nonNegativeLength
; #IMPLIED
251 chart
:symbol
-height
%nonNegativeLength
; #IMPLIED
252 chart
:symbol
-image
-name
%string
; #IMPLIED
>