fix Skia copyArea() not coping with coordinates outside (tdf#145811)
[LibreOffice.git] / xmloff / dtd / table.mod
blob8e33b0c4c0b24cf4037ed19547e01d3834f3bd6e
1 <!--
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 .
17 -->
19 <!ELEMENT table:calculation-settings (table:null-date?, table:iteration?)>
20 <!ATTLIST table:calculation-settings
21 table:case-sensitive %boolean; "true"
22 table:precision-as-shown %boolean; "false"
23 table:search-criteria-must-apply-to-whole-cell %boolean; "true"
24 table:automatic-find-labels %boolean; "true"
25 table:use-regular-expressions %boolean; "true"
26 table:null-year %positiveInteger; "1930"
28 <!ELEMENT table:null-date EMPTY>
29 <!ATTLIST table:null-date
30 table:value-type %valueType; #FIXED "date"
31 table:date-value %date; "1899-12-30"
33 <!ELEMENT table:iteration EMPTY>
34 <!ATTLIST table:iteration
35 table:status (enable | disable) "disable"
36 table:steps %positiveInteger; "100"
37 table:maximum-difference %float; "0.001"
40 <!ELEMENT table:tracked-changes (table:cell-content-change | table:insertion | table:deletion | table:movement | table:rejection)*>
41 <!ATTLIST table:tracked-changes table:track-changes %boolean; "true"
42 table:protected %boolean; "false"
43 table:protection-key CDATA #IMPLIED
46 <!ELEMENT table:dependences (table:dependence)+>
47 <!ELEMENT table:dependence EMPTY>
48 <!ATTLIST table:dependence
49 table:id CDATA #REQUIRED
51 <!ELEMENT table:deletions (table:cell-content-deletion | table:change-deletion)+>
52 <!ELEMENT table:cell-content-deletion (table:cell-address?, table:change-track-table-cell?)>
53 <!ATTLIST table:cell-content-deletion
54 table:id CDATA #IMPLIED
56 <!ELEMENT table:change-deletion EMPTY>
57 <!ATTLIST table:change-deletion
58 table:id CDATA #IMPLIED
60 <!ELEMENT table:insertion (office:change-info, table:dependences?, table:deletions?)>
61 <!ATTLIST table:insertion
62 table:id CDATA #REQUIRED
63 table:acceptance-state (accepted | rejected | pending) "pending"
64 table:rejecting-change-id %positiveInteger; #IMPLIED
65 table:type (row | column | table) #REQUIRED
66 table:position %integer; #REQUIRED
67 table:count %positiveInteger; "1"
68 table:table %integer; #IMPLIED
70 <!ELEMENT table:deletion (office:change-info, table:dependences?, table:deletions?, table:cut-offs?)>
71 <!ATTLIST table:deletion
72 table:id CDATA #REQUIRED
73 table:acceptance-state (accepted | rejected | pending) "pending"
74 table:rejecting-change-id %positiveInteger; #IMPLIED
75 table:type (row | column | table) #REQUIRED
76 table:position %integer; #REQUIRED
77 table:count %positiveInteger; "1"
78 table:table %integer; #IMPLIED
79 table:multi-deletion-spanned %integer; #IMPLIED
81 <!ELEMENT table:cut-offs (table:movement-cut-off+ | (table:insertion-cut-off, table:movement-cut-off*))>
82 <!ELEMENT table:insertion-cut-off EMPTY>
83 <!ATTLIST table:insertion-cut-off
84 table:id CDATA #REQUIRED
85 table:position %integer; #REQUIRED
87 <!ELEMENT table:movement-cut-off EMPTY>
88 <!ATTLIST table:movement-cut-off
89 table:id CDATA #REQUIRED
90 table:start-position %integer; #IMPLIED
91 table:end-position %integer; #IMPLIED
92 table:position %integer; #IMPLIED
94 <!ELEMENT table:movement (table:source-range-address, table:target-range-address, office:change-info, table:dependences?, table:deletions?)>
95 <!ATTLIST table:movement
96 table:id CDATA #REQUIRED
97 table:acceptance-state (accepted | rejected | pending) "pending"
98 table:rejecting-change-id %positiveInteger; #IMPLIED
100 <!ELEMENT table:target-range-address EMPTY>
101 <!ATTLIST table:target-range-address
102 table:column %integer; #IMPLIED
103 table:row %integer; #IMPLIED
104 table:table %integer; #IMPLIED
105 table:start-column %integer; #IMPLIED
106 table:start-row %integer; #IMPLIED
107 table:start-table %integer; #IMPLIED
108 table:end-column %integer; #IMPLIED
109 table:end-row %integer; #IMPLIED
110 table:end-table %integer; #IMPLIED
112 <!ELEMENT table:source-range-address EMPTY>
113 <!ATTLIST table:source-range-address
114 table:column %integer; #IMPLIED
115 table:row %integer; #IMPLIED
116 table:table %integer; #IMPLIED
117 table:start-column %integer; #IMPLIED
118 table:start-row %integer; #IMPLIED
119 table:start-table %integer; #IMPLIED
120 table:end-column %integer; #IMPLIED
121 table:end-row %integer; #IMPLIED
122 table:end-table %integer; #IMPLIED
124 <!ELEMENT table:change-track-table-cell (text:p*)>
125 <!ATTLIST table:change-track-table-cell
126 table:cell-address %cell-address; #IMPLIED
127 table:matrix-covered (true | false) "false"
128 table:formula %string; #IMPLIED
129 table:number-matrix-rows-spanned %positiveInteger; #IMPLIED
130 table:number-matrix-columns-spanned %positiveInteger; #IMPLIED
131 table:value-type %valueType; "string"
132 table:value %float; #IMPLIED
133 table:date-value %date; #IMPLIED
134 table:time-value %timeInstance; #IMPLIED
135 table:string-value %string; #IMPLIED
137 <!ELEMENT table:cell-content-change (table:cell-address, office:change-info, table:dependences?, table:deletions?, table:previous)>
138 <!ATTLIST table:cell-content-change
139 table:id CDATA #REQUIRED
140 table:acceptance-state (accepted | rejected | pending) "pending"
141 table:rejecting-change-id %positiveInteger; #IMPLIED
143 <!ELEMENT table:cell-address EMPTY>
144 <!ATTLIST table:cell-address
145 table:column %integer; #IMPLIED
146 table:row %integer; #IMPLIED
147 table:table %integer; #IMPLIED
149 <!ELEMENT table:previous (table:change-track-table-cell)>
150 <!ATTLIST table:previous
151 table:id CDATA #IMPLIED
153 <!ELEMENT table:rejection (office:change-info, table:dependences?, table:deletions?)>
154 <!ATTLIST table:rejection
155 table:id CDATA #REQUIRED
156 table:acceptance-state (accepted | rejected | pending) "pending"
157 table:rejecting-change-id %positiveInteger; #IMPLIED
160 <!ENTITY % table-columns "table:table-columns | ( table:table-column | table:table-column-group )+">
161 <!ENTITY % table-header-columns "table:table-header-columns">
162 <!ENTITY % table-rows "table:table-rows | ( table:table-row | table:table-row-group )+">
163 <!ENTITY % table-header-rows "table:table-header-rows">
164 <!ENTITY % table-column-groups "((%table-columns;),(%table-header-columns;,(%table-columns;)?)?) | (%table-header-columns;,(%table-columns;)?)">
165 <!ENTITY % table-row-groups "((%table-rows;),(%table-header-rows;,(%table-rows;)?)?) | (%table-header-rows;,(%table-rows;)?)">
166 <!ELEMENT table:table (table:table-source?, table:scenario?, office:forms?, table:shapes?, (%table-column-groups;), (%table-row-groups;))>
167 <!ATTLIST table:table
168 table:name %string; #IMPLIED
169 table:style-name %styleName; #IMPLIED
170 table:protected %boolean; "false"
171 table:protection-key CDATA #IMPLIED
172 table:print-ranges %cell-range-address-list; #IMPLIED
173 table:automatic-print-range %boolean; #IMPLIED
175 <!ELEMENT table:table-source EMPTY>
176 <!ATTLIST table:table-source
177 table:mode (copy-all | copy-results-only) "copy-all"
178 xlink:type (simple) #FIXED "simple"
179 xlink:actuate (onRequest) "onRequest"
180 xlink:href %uriReference; #REQUIRED
181 table:filter-name CDATA #IMPLIED
182 table:table-name CDATA #IMPLIED
183 table:filter-options CDATA #IMPLIED
184 table:refresh-delay %timeDuration; #IMPLIED
186 <!ELEMENT table:scenario EMPTY>
187 <!ATTLIST table:scenario
188 table:display-border %boolean; "true"
189 table:border-color %color; #IMPLIED
190 table:copy-back %boolean; "true"
191 table:copy-styles %boolean; "true"
192 table:copy-formulas %boolean; "true"
193 table:is-active %boolean; #REQUIRED
194 table:scenario-ranges %cell-range-address-list; #REQUIRED
195 table:comment CDATA #IMPLIED
197 <!ELEMENT table:shapes %shapes;>
198 <!ELEMENT table:table-column-group (table:table-header-columns | table:table-column | table:table-column-group)+>
199 <!ATTLIST table:table-column-group
200 table:display %boolean; "true"
202 <!ELEMENT table:table-header-columns (table:table-column | table:table-column-group)+>
203 <!ELEMENT table:table-columns (table:table-column | table:table-column-group)+>
204 <!ELEMENT table:table-column EMPTY>
205 <!ATTLIST table:table-column
206 table:number-columns-repeated %positiveInteger; "1"
207 table:style-name %styleName; #IMPLIED
208 table:visibility (visible | collapse | filter) "visible"
209 table:default-cell-style-name %styleName; #IMPLIED
211 <!ELEMENT table:table-row-group (table:table-header-rows | table:table-row | table:table-row-group)+>
212 <!ATTLIST table:table-row-group
213 table:display %boolean; "true"
215 <!ELEMENT table:table-header-rows (table:table-row | table:table-row-group)+>
216 <!ELEMENT table:table-rows (table:table-row | table:table-row-group)+>
217 <!ENTITY % table-cells "(table:table-cell|table:covered-table-cell)+">
218 <!ELEMENT table:table-row %table-cells;>
219 <!ATTLIST table:table-row
220 table:number-rows-repeated %positiveInteger; "1"
221 table:style-name %styleName; #IMPLIED
222 table:visibility (visible | collapse | filter) "visible"
223 table:default-cell-style-name %styleName; #IMPLIED
226 <!ENTITY % text-wo-table "(text:h|text:p|text:ordered-list|text:unordered-list|%shapes;)*">
227 <!ENTITY % cell-content "(table:cell-range-source?,office:annotation?,table:detective?,(table:sub-table|%text-wo-table;))">
228 <!ELEMENT table:table-cell %cell-content;>
229 <!ELEMENT table:covered-table-cell %cell-content;>
230 <!ATTLIST table:table-cell
231 table:number-columns-repeated %positiveInteger; "1"
232 table:number-rows-spanned %positiveInteger; "1"
233 table:number-columns-spanned %positiveInteger; "1"
234 table:style-name %styleName; #IMPLIED
235 table:validation-name CDATA #IMPLIED
236 table:formula %string; #IMPLIED
237 table:number-matrix-rows-spanned %positiveInteger; #IMPLIED
238 table:number-matrix-columns-spanned %positiveInteger; #IMPLIED
239 table:value-type %valueType; "string"
240 table:value %float; #IMPLIED
241 table:date-value %date; #IMPLIED
242 table:time-value %timeInstance; #IMPLIED
243 table:boolean-value %boolean; #IMPLIED
244 table:string-value %string; #IMPLIED
245 table:currency %string; #IMPLIED
247 <!ATTLIST table:covered-table-cell
248 table:number-columns-repeated %positiveInteger; "1"
249 table:style-name %styleName; #IMPLIED
250 table:validation-name CDATA #IMPLIED
251 table:formula %string; #IMPLIED
252 table:number-matrix-rows-spanned %positiveInteger; #IMPLIED
253 table:number-matrix-columns-spanned %positiveInteger; #IMPLIED
254 table:value-type %valueType; "string"
255 table:value %float; #IMPLIED
256 table:date-value %date; #IMPLIED
257 table:time-value %timeInstance; #IMPLIED
258 table:boolean-value %boolean; #IMPLIED
259 table:string-value %string; #IMPLIED
260 table:currency %string; #IMPLIED
262 <!-- cell protection in writer: cell attribute; calc uses format -->
263 <!ATTLIST table:table-cell table:protected %boolean; "false">
265 <!ELEMENT table:cell-range-source EMPTY>
266 <!ATTLIST table:cell-range-source
267 table:name %string; #REQUIRED
268 xlink:type (simple) #FIXED "simple"
269 xlink:actuate (onRequest) #FIXED "onRequest"
270 xlink:href %uriReference; #REQUIRED
271 table:filter-name %string; #REQUIRED
272 table:filter-options %string; #IMPLIED
273 table:last-column-spanned %positiveInteger; #REQUIRED
274 table:last-row-spanned %positiveInteger; #REQUIRED
275 table:refresh-delay %timeDuration; #IMPLIED
278 <!ELEMENT table:detective (table:highlighted-range*, table:operation*)>
279 <!ELEMENT table:highlighted-range EMPTY>
280 <!ATTLIST table:highlighted-range
281 table:cell-range-address %cell-range-address; #IMPLIED
282 table:direction (from-another-table | to-another-table | from-same-table | to-same-table) #IMPLIED
283 table:contains-error %boolean; #IMPLIED
284 table:marked-invalid %boolean; #IMPLIED
286 <!ELEMENT table:operation EMPTY>
287 <!ATTLIST table:operation
288 table:name (trace-dependents | remove-dependents | trace-precedents | remove-precedents | trace-errors) #REQUIRED
289 table:index %nonNegativeInteger; #REQUIRED
292 <!ELEMENT table:content-validations (table:content-validation)+>
293 <!ELEMENT table:content-validation (table:help-message?, (table:error-message | (table:error-macro, office:events?))?)>
294 <!ATTLIST table:content-validation
295 table:name CDATA #REQUIRED
296 table:condition CDATA #IMPLIED
297 table:base-cell-address %cell-address; #IMPLIED
298 table:allow-empty-cell %boolean; #IMPLIED
299 table:show-list (no | unsorted | sorted-ascending) #IMPLIED
301 <!ELEMENT table:help-message (text:p*)>
302 <!ATTLIST table:help-message
303 table:title CDATA #IMPLIED
304 table:display %boolean; #IMPLIED
306 <!ELEMENT table:error-message (text:p*)>
307 <!ATTLIST table:error-message
308 table:title CDATA #IMPLIED
309 table:message-type (stop | warning | information) #IMPLIED
310 table:display %boolean; #IMPLIED
312 <!ELEMENT table:error-macro EMPTY>
313 <!ATTLIST table:error-macro
314 table:name CDATA #IMPLIED
315 table:execute %boolean; #IMPLIED
318 <!ELEMENT table:sub-table ((%table-column-groups;) , (%table-row-groups;))>
320 <!ELEMENT table:label-ranges (table:label-range)*>
321 <!ELEMENT table:label-range EMPTY>
322 <!ATTLIST table:label-range
323 table:label-cell-range-address %cell-range-address; #REQUIRED
324 table:data-cell-range-address %cell-range-address; #REQUIRED
325 table:orientation (column | row) #REQUIRED
328 <!ELEMENT table:named-expressions (table:named-range | table:named-expression)*>
329 <!ELEMENT table:named-range EMPTY>
330 <!ATTLIST table:named-range
331 table:name CDATA #REQUIRED
332 table:cell-range-address %cell-range-address; #REQUIRED
333 table:base-cell-address %cell-address; #IMPLIED
334 table:range-usable-as CDATA "none"
336 <!ELEMENT table:named-expression EMPTY>
337 <!ATTLIST table:named-expression
338 table:name CDATA #REQUIRED
339 table:expression CDATA #REQUIRED
340 table:base-cell-address %cell-address; #IMPLIED
343 <!ELEMENT table:filter (table:filter-condition | table:filter-and | table:filter-or)>
344 <!ATTLIST table:filter
345 table:target-range-address %cell-range-address; #IMPLIED
346 table:condition-source-range-address %cell-range-address; #IMPLIED
347 table:condition-source (self | cell-range) "self"
348 table:display-duplicates %boolean; "true"
350 <!ELEMENT table:filter-and (table:filter-or | table:filter-condition)+>
351 <!ELEMENT table:filter-or (table:filter-and | table:filter-condition)+>
352 <!ELEMENT table:filter-condition EMPTY>
353 <!ATTLIST table:filter-condition
354 table:field-number %nonNegativeInteger; #REQUIRED
355 table:case-sensitive %boolean; "false"
356 table:data-type (text | number) "text"
357 table:value CDATA #REQUIRED
358 table:operator CDATA #REQUIRED
361 <!ELEMENT table:database-ranges (table:database-range)*>
362 <!ELEMENT table:database-range ((table:database-source-sql | table:database-source-table | table:database-source-query)?, table:filter?, table:sort?, table:subtotal-rules?)>
363 <!ATTLIST table:database-range
364 table:name CDATA #IMPLIED
365 table:is-selection %boolean; "false"
366 table:on-update-keep-styles %boolean; "false"
367 table:on-update-keep-size %boolean; "true"
368 table:has-persistent-data %boolean; "true"
369 table:orientation (row | column) "row"
370 table:contains-header %boolean; "true"
371 table:display-filter-buttons %boolean; "false"
372 table:target-range-address %cell-range-address; #REQUIRED
373 table:refresh-delay %timeDuration; #IMPLIED
375 <!ELEMENT table:database-source-sql EMPTY>
376 <!ATTLIST table:database-source-sql
377 table:database-name CDATA #REQUIRED
378 table:sql-statement CDATA #REQUIRED
379 table:parse-sql-statements %boolean; "false"
381 <!ELEMENT table:database-source-table EMPTY>
382 <!ATTLIST table:database-source-table
383 table:database-name CDATA #REQUIRED
384 table:table-name CDATA #REQUIRED
386 <!ELEMENT table:database-source-query EMPTY>
387 <!ATTLIST table:database-source-query
388 table:database-name CDATA #REQUIRED
389 table:query-name CDATA #REQUIRED
392 <!ELEMENT table:sort (table:sort-by)+>
393 <!ATTLIST table:sort
394 table:bind-styles-to-content %boolean; "true"
395 table:target-range-address %cell-range-address; #IMPLIED
396 table:case-sensitive %boolean; "false"
397 table:language CDATA #IMPLIED
398 table:country CDATA #IMPLIED
399 table:algorithm CDATA #IMPLIED
401 <!ELEMENT table:sort-by EMPTY>
402 <!ATTLIST table:sort-by
403 table:field-number %nonNegativeInteger; #REQUIRED
404 table:data-type CDATA "automatic"
405 table:order (ascending | descending) "ascending"
408 <!ELEMENT table:subtotal-rules (table:sort-groups? | table:subtotal-rule*)?>
409 <!ATTLIST table:subtotal-rules
410 table:bind-styles-to-content %boolean; "true"
411 table:case-sensitive %boolean; "false"
412 table:page-breaks-on-group-change %boolean; "false"
414 <!ELEMENT table:sort-groups EMPTY>
415 <!ATTLIST table:sort-groups
416 table:data-type CDATA "automatic"
417 table:order (ascending | descending) "ascending"
419 <!ELEMENT table:subtotal-rule (table:subtotal-field)*>
420 <!ATTLIST table:subtotal-rule
421 table:group-by-field-number %nonNegativeInteger; #REQUIRED
423 <!ELEMENT table:subtotal-field EMPTY>
424 <!ATTLIST table:subtotal-field
425 table:field-number %nonNegativeInteger; #REQUIRED
426 table:function CDATA #REQUIRED
429 <!ELEMENT table:data-pilot-tables (table:data-pilot-table)*>
430 <!ELEMENT table:data-pilot-table ((table:database-source-sql | table:database-source-table | table:database-source-query | table:source-service | table:source-cell-range)?, table:data-pilot-field+)>
431 <!ATTLIST table:data-pilot-table
432 table:name CDATA #REQUIRED
433 table:application-data CDATA #IMPLIED
434 table:grand-total (none | row | column | both) "both"
435 table:ignore-empty-rows %boolean; "false"
436 table:identify-categories %boolean; "false"
437 table:target-range-address %cell-range-address; #REQUIRED
438 table:buttons %cell-range-address-list; #REQUIRED
440 <!ELEMENT table:source-service EMPTY>
441 <!ATTLIST table:source-service
442 table:name CDATA #REQUIRED
443 table:source-name CDATA #REQUIRED
444 table:object-name CDATA #REQUIRED
445 table:username CDATA #IMPLIED
446 table:password CDATA #IMPLIED
448 <!ELEMENT table:source-cell-range (table:filter)?>
449 <!ATTLIST table:source-cell-range
450 table:cell-range-address %cell-range-address; #REQUIRED
452 <!ELEMENT table:data-pilot-field (table:data-pilot-level)?>
453 <!ATTLIST table:data-pilot-field
454 table:source-field-name CDATA #REQUIRED
455 table:is-data-layout-field %boolean; "false"
456 table:function CDATA #REQUIRED
457 table:orientation (row | column | data | page | hidden) #REQUIRED
458 table:used-hierarchy %positiveInteger; "1"
460 <!ELEMENT table:data-pilot-level (table:data-pilot-subtotals?, table:data-pilot-members?)>
461 <!ATTLIST table:data-pilot-level
462 table:display-empty %boolean; #IMPLIED
464 <!ELEMENT table:data-pilot-subtotals (table:data-pilot-subtotal)*>
465 <!ELEMENT table:data-pilot-subtotal EMPTY>
466 <!ATTLIST table:data-pilot-subtotal
467 table:function CDATA #REQUIRED
469 <!ELEMENT table:data-pilot-members (table:data-pilot-member)*>
470 <!ELEMENT table:data-pilot-member EMPTY>
471 <!ATTLIST table:data-pilot-member
472 table:name CDATA #REQUIRED
473 table:display %boolean; #IMPLIED
474 table:display-details %boolean; #IMPLIED
477 <!ELEMENT table:consolidation EMPTY>
478 <!ATTLIST table:consolidation
479 table:function CDATA #REQUIRED
480 table:source-cell-range-addresses %cell-range-address-list; #REQUIRED
481 table:target-cell-address %cell-address; #REQUIRED
482 table:use-label (none | column | row | both) "none"
483 table:link-to-source-data %boolean; "false"
486 <!ELEMENT table:dde-links (table:dde-link)+>
487 <!ELEMENT table:dde-link (office:dde-source, table:table)>