summaryrefslogtreecommitdiff
path: root/xmloff/dtd/style.mod
blob: fef8f73630ef28cc57ac6e775c7b31cd3cf877cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
<!--

  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  
  Copyright 2000, 2010 Oracle and/or its affiliates.
 
  OpenOffice.org - a multi-platform office productivity suite
 
  This file is part of OpenOffice.org.
 
  OpenOffice.org is free software: you can redistribute it and/or modify
  it under the terms of the GNU Lesser General Public License version 3
  only, as published by the Free Software Foundation.
 
  OpenOffice.org is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU Lesser General Public License version 3 for more details
  (a copy is included in the LICENSE file that accompanied this code).
 
  You should have received a copy of the GNU Lesser General Public License
  version 3 along with OpenOffice.org.  If not, see
  <http://www.openoffice.org/license.html>
  for a copy of the LGPLv3 License.

-->

<!ELEMENT style:font-decl EMPTY>
<!ATTLIST style:font-decl style:name %string; #REQUIRED>
<!ATTLIST style:font-decl fo:font-family %string; #REQUIRED>
<!ATTLIST style:font-decl style:font-style-name %string; #IMPLIED>
<!ENTITY % fontFamilyGeneric "(roman|swiss|modern|decorative|script|system)">
<!ATTLIST style:font-decl style:font-family-generic %fontFamilyGeneric;
						   #IMPLIED>
<!ENTITY % fontPitch "(fixed|variable)">
<!ATTLIST style:font-decl style:font-pitch %fontPitch; #IMPLIED>
<!ATTLIST style:font-decl style:font-charset %textEncoding; #IMPLIED>

<!ELEMENT style:style ( style:properties?,office:events?,style:map*)>

<!ATTLIST style:style style:name %styleName; #REQUIRED>

<!ENTITY % styleFamily "(paragraph|text|section|
						 table|table-column|table-row|table-cell|table-page|chart|graphics|default|drawing-page|presentation|control|ruby)">
<!ATTLIST style:style style:family %styleFamily; #REQUIRED>

<!ATTLIST style:style style:parent-style-name %styleName; #IMPLIED>
<!ATTLIST style:style style:master-page-name %styleName; #IMPLIED>
<!ATTLIST style:style style:next-style-name %styleName; #IMPLIED>
<!ATTLIST style:style style:list-style-name %styleName; #IMPLIED>
<!ATTLIST style:style style:data-style-name %styleName; #IMPLIED>

<!ATTLIST style:style style:auto-update %boolean; "false">

<!ATTLIST style:style style:class %string; #IMPLIED>

<!ELEMENT style:default-style (style:properties?)>
<!ATTLIST style:default-style style:family %styleFamily; #REQUIRED>

<!ELEMENT style:map EMPTY>

<!ATTLIST style:map style:condition %string; #REQUIRED>
<!ATTLIST style:map style:apply-style-name %styleName; #REQUIRED>
<!ATTLIST style:map style:base-cell-address %cell-address; #IMPLIED>

<!ELEMENT style:properties ANY>

<!-- number format properties -->
<!ATTLIST style:properties style:num-prefix %string; #IMPLIED>
<!ATTLIST style:properties style:num-suffix %string; #IMPLIED>
<!ATTLIST style:properties style:num-format %string; #IMPLIED>
<!ATTLIST style:properties style:num-letter-sync %boolean; #IMPLIED>

<!-- frame properties -->
<!ATTLIST style:properties fo:width %positiveLength; #IMPLIED>
<!ATTLIST style:properties fo:height %positiveLength; #IMPLIED>
<!ATTLIST style:properties style:vertical-pos (top|middle|bottom|from-top|below) #IMPLIED>
<!ATTLIST style:properties style:vertical-rel (page|page-content|
											   frame|frame-content|
											   paragraph|paragraph-content|char|
											   line|baseline|text) #IMPLIED>
<!ATTLIST style:properties style:horizontal-pos (left|center|right|from-left|inside|outside|from-inside) #IMPLIED>
<!ATTLIST style:properties style:horizontal-rel (page|page-content|
								 page-start-margin|page-end-margin|
								 frame|frame-content|
								 frame-start-margin|frame-end-margin|
								 paragraph|paragraph-content|
								 paragraph-start-margin|paragraph-end-margin|
								 char) #IMPLIED>
<!ATTLIST style:properties svg:width %lengthOrPercentage; #IMPLIED>
<!ATTLIST style:properties svg:height %lengthOrPercentage; #IMPLIED>
<!ATTLIST style:properties fo:min-height %lengthOrPercentage; #IMPLIED>
<!ATTLIST style:properties fo:min-width %lengthOrPercentage; #IMPLIED>
<!ATTLIST style:properties fo:max-height %lengthOrPercentage; #IMPLIED>
<!ATTLIST style:properties fo:max-width %lengthOrPercentage; #IMPLIED>
<!ATTLIST style:properties text:anchor-type %anchorType; #IMPLIED>
<!ATTLIST style:properties text:anchor-page-number %positiveInteger; #IMPLIED>
<!ATTLIST style:properties svg:x %coordinate; #IMPLIED>
<!ATTLIST style:properties svg:y %coordinate; #IMPLIED>
<!ATTLIST style:properties style:print-content %boolean; #IMPLIED>
<!ATTLIST style:properties style:protect %boolean; #IMPLIED>
<!ATTLIST style:properties style:wrap (none|left|right|parallel|dynamic|run-through) #IMPLIED>
<!ENTITY % noLimitOrPositiveInteger "CDATA">
<!ATTLIST style:properties style:number-wrapped-paragraphs %noLimitOrPositiveInteger; #IMPLIED>
<!ATTLIST style:properties style:wrap-contour %boolean; #IMPLIED>
<!ATTLIST style:properties style:wrap-contour-mode (full|outside) #IMPLIED>
<!ATTLIST style:properties style:run-through (foreground|background) #IMPLIED>
<!ATTLIST style:properties style:editable %boolean; #IMPLIED>
<!ATTLIST style:properties style:mirror CDATA #IMPLIED>
<!ATTLIST style:properties fo:clip CDATA #IMPLIED>
<!ATTLIST style:properties text:animation (none|scroll|alternate|slide) #IMPLIED>
<!ATTLIST style:properties text:animation-direction (left|right|up|down) #IMPLIED>
<!ATTLIST style:properties text:animation-start-inside %boolean; #IMPLIED>
<!ATTLIST style:properties text:animation-stop-inside %boolean; #IMPLIED>
<!ATTLIST style:properties text:animation-repeat %integer; #IMPLIED>
<!ATTLIST style:properties text:animation-delay %timeDuration; #IMPLIED>
<!ATTLIST style:properties text:animation-steps %length; #IMPLIED>

<!-- text properties -->
<!ATTLIST style:properties fo:font-variant (normal|small-caps) #IMPLIED>
<!ATTLIST style:properties fo:text-transform (none|lowercase|
											  uppercase|capitalize) #IMPLIED>
<!ATTLIST style:properties fo:color %color; #IMPLIED>
<!ATTLIST style:properties style:use-window-font-color %boolean; #IMPLIED>
<!ATTLIST style:properties style:text-outline %boolean; #IMPLIED>
<!ATTLIST style:properties style:text-crossing-out
						   (none|single-line|double-line|thick-line|slash|X)
						   #IMPLIED>
<!ATTLIST style:properties style:text-position CDATA #IMPLIED>
<!ATTLIST style:properties style:text-align (left|right|start|center|end|justify|justified) #IMPLIED>

<!ATTLIST style:properties style:font-name %string; #IMPLIED>
<!ATTLIST style:properties fo:font-family %string; #IMPLIED>
<!ATTLIST style:properties style:font-family-generic %fontFamilyGeneric;
						   #IMPLIED>
<!ATTLIST style:properties style:font-style-name %string; #IMPLIED>
<!ATTLIST style:properties style:font-pitch %fontPitch; #IMPLIED>
<!ATTLIST style:properties style:font-charset %textEncoding; #IMPLIED>
<!ATTLIST style:properties style:font-name-asian %string; #IMPLIED>
<!ATTLIST style:properties style:font-family-asian %string; #IMPLIED>
<!ATTLIST style:properties style:font-family-generic-asian %fontFamilyGeneric;
						   #IMPLIED>
<!ATTLIST style:properties style:font-style-name-asian %string; #IMPLIED>
<!ATTLIST style:properties style:font-pitch-asian %fontPitch; #IMPLIED>
<!ATTLIST style:properties style:font-charset-asian %textEncoding; #IMPLIED>
<!ATTLIST style:properties style:font-name-complex %string; #IMPLIED>
<!ATTLIST style:properties style:font-family-complex %string; #IMPLIED>
<!ATTLIST style:properties style:font-family-generic-complex %fontFamilyGeneric;
						   #IMPLIED>
<!ATTLIST style:properties style:font-style-name-complex %string; #IMPLIED>
<!ATTLIST style:properties style:font-pitch-complex %fontPitch; #IMPLIED>
<!ATTLIST style:properties style:font-charset-complex %textEncoding; #IMPLIED>

<!ATTLIST style:properties fo:font-size %positiveLengthOrPercentage; #IMPLIED>
<!ATTLIST style:properties style:font-size-rel %length; #IMPLIED>
<!ATTLIST style:properties style:font-size-asian %positiveLengthOrPercentage; #IMPLIED>
<!ATTLIST style:properties style:font-size-rel-asian %length; #IMPLIED>
<!ATTLIST style:properties style:font-size-complex %positiveLengthOrPercentage; #IMPLIED>
<!ATTLIST style:properties style:font-size-rel-complex %length; #IMPLIED>
<!ENTITY % normalOrLength "CDATA">
<!ATTLIST style:properties fo:letter-spacing %normalOrLength; #IMPLIED>
<!ATTLIST style:properties fo:language %languageOnly; #IMPLIED>
<!ATTLIST style:properties style:language-asian %languageOnly; #IMPLIED>
<!ATTLIST style:properties style:language-complex %languageOnly; #IMPLIED>
<!ATTLIST style:properties fo:country %country; #IMPLIED>
<!ATTLIST style:properties style:country-asian %country; #IMPLIED>
<!ATTLIST style:properties style:country-complex %country; #IMPLIED>
<!ENTITY % fontStyle "(normal|italic|oblique)">
<!ATTLIST style:properties fo:font-style %fontStyle; #IMPLIED>
<!ATTLIST style:properties style:font-style-asian %fontStyle; #IMPLIED>
<!ATTLIST style:properties style:font-style-complex %fontStyle; #IMPLIED>
<!ENTITY % fontRelief "(none|embossed|engraved)">
<!ATTLIST style:properties style:font-relief %fontRelief; #IMPLIED>
<!ATTLIST style:properties fo:text-shadow CDATA #IMPLIED>
<!ATTLIST style:properties style:text-underline
						   (none|single|double|dotted|dash|long-dash|dot-dash|
							dot-dot-dash|wave|bold|bold-dotted|bold-dash|
							bold-long-dash|bold-dot-dash|bold-dot-dot-dash|
							bold-wave|double-wave|small-wave) #IMPLIED>
<!ATTLIST style:properties style:text-autospace (none | ideograph-alpha) #IMPLIED>
<!ATTLIST style:properties style:punctuation-wrap (simple | hanging) #IMPLIED>
<!ATTLIST style:properties style:line-break (normal | strict) #IMPLIED>
<!ENTITY % fontColorOrColor "CDATA">
<!ATTLIST style:properties style:text-underline-color %fontColorOrColor;
						   #IMPLIED>
<!ATTLIST style:properties fo:font-weight CDATA #IMPLIED>
<!ATTLIST style:properties style:font-weight-asian CDATA #IMPLIED>
<!ATTLIST style:properties style:font-weight-complex CDATA #IMPLIED>
<!ATTLIST style:properties fo:score-spaces %boolean; #IMPLIED>
<!ATTLIST style:properties style:letter-kerning %boolean; #IMPLIED>
<!ATTLIST style:properties style:text-blinking %boolean; #IMPLIED>
<!ATTLIST style:properties style:text-background-color %transparentOrColor;
						   #IMPLIED>

<!ATTLIST style:properties style:text-combine (none|letters|lines) #IMPLIED>
<!ATTLIST style:properties style:text-combine-start-char %character; #IMPLIED>
<!ATTLIST style:properties style:text-combine-end-char %character; #IMPLIED>
<!ATTLIST style:properties style:text-emphasize CDATA #IMPLIED>
<!ATTLIST style:properties style:text-scale %percentage; #IMPLIED>
<!ATTLIST style:properties style:text-rotation-angle %integer; #IMPLIED>
<!ATTLIST style:properties style:text-rotation-scale (fixed|line-height) #IMPLIED>
<!ATTLIST style:properties text:display (none|true) #IMPLIED>

<!-- paragraph properties -->
<!ENTITY % nonNegativeLengthOrPercentageOrNormal "CDATA">
<!ATTLIST style:properties fo:line-height
						   %nonNegativeLengthOrPercentageOrNormal; #IMPLIED>
<!ATTLIST style:properties style:line-height-at-least %nonNegativeLength;
						   #IMPLIED>
<!ATTLIST style:properties style:line-spacing %length; #IMPLIED>
<!ATTLIST style:properties fo:text-align (start|end|center|justify) #IMPLIED>
<!ATTLIST style:properties fo:text-align-last (start|center|justify) #IMPLIED>
<!ATTLIST style:properties style:text-align-source (fix|value-type) #IMPLIED>
<!ATTLIST style:properties style:justify-single-word %boolean; #IMPLIED>
<!-- fo:keep-together is new in OOo 2.0 -->
<!ATTLIST style:properties fo:keep-together (auto|always) #IMPLIED>
<!ATTLIST style:properties style:break-inside (auto|avoid) #IMPLIED>
<!ATTLIST style:properties fo:widows %nonNegativeInteger; #IMPLIED>
<!ATTLIST style:properties fo:orphans %nonNegativeInteger; #IMPLIED>

<!ATTLIST style:properties fo:hyphenate %boolean; #IMPLIED>
<!ATTLIST style:properties fo:hyphenate-keep (none|page) #IMPLIED>
<!ATTLIST style:properties fo:hyphenation-remain-char-count %positiveInteger;
						   #IMPLIED>
<!ATTLIST style:properties fo:hyphenation-push-char-count %positiveInteger;
						   #IMPLIED>
<!ATTLIST style:properties fo:hyphenation-ladder-count
						   %noLimitOrPositiveInteger;  #IMPLIED>
<!ATTLIST style:properties style:page-number %positiveInteger; #IMPLIED>

<!ELEMENT style:tab-stops (style:tab-stop)*>
<!ELEMENT style:tab-stop EMPTY>
<!ATTLIST style:tab-stop style:position %nonNegativeLength; #REQUIRED>
<!ATTLIST style:tab-stop style:type (left|center|right|char|default) "left">
<!ATTLIST style:tab-stop style:char %character; #IMPLIED>
<!ATTLIST style:tab-stop style:leader-char %character; " ">

<!ELEMENT style:drop-cap EMPTY>
<!ENTITY % wordOrPositiveInteger "CDATA">
<!ATTLIST style:drop-cap style:length %wordOrPositiveInteger; "1">
<!ATTLIST style:drop-cap style:lines %positiveInteger; "1">
<!ATTLIST style:drop-cap style:distance %length; "0cm">
<!ATTLIST style:drop-cap style:style-name %styleName; #IMPLIED>

<!ATTLIST style:properties style:register-true %boolean; #IMPLIED>
<!ATTLIST style:properties style:register-truth-ref-style-name %styleName; #IMPLIED>
<!ATTLIST style:properties fo:margin-left %positiveLengthOrPercentage; #IMPLIED>
<!ATTLIST style:properties fo:margin-right %positiveLengthOrPercentage;
						   #IMPLIED>
<!ATTLIST style:properties fo:text-indent %lengthOrPercentage; #IMPLIED>
<!ATTLIST style:properties style:auto-text-indent %boolean; #IMPLIED>
<!ATTLIST style:properties fo:margin-top %positiveLengthOrPercentage; #IMPLIED>
<!ATTLIST style:properties fo:margin-bottom %positiveLengthOrPercentage; #IMPLIED>
<!ATTLIST style:properties fo:break-before (auto|column|page) #IMPLIED>
<!ATTLIST style:properties fo:break-after (auto|column|page) #IMPLIED>
<!ATTLIST style:properties fo:background-color %transparentOrColor; #IMPLIED>
<!ATTLIST style:properties style:background-transparency %percentage; #IMPLIED>
<!ATTLIST style:properties style:dynamic-spacing %boolean; #IMPLIED>

<!ELEMENT style:background-image (office:binary-data?)>
<!ATTLIST style:background-image xlink:type (simple) #IMPLIED>
<!ATTLIST style:background-image xlink:href %uriReference; #IMPLIED>
<!ATTLIST style:background-image xlink:show (embed) #IMPLIED>
<!ATTLIST style:background-image xlink:actuate (onLoad) #IMPLIED>
<!ATTLIST style:background-image style:repeat (no-repeat|repeat|stretch)
								 "repeat">
<!ATTLIST style:background-image style:position CDATA "center">
<!ATTLIST style:background-image style:filter-name %string; #IMPLIED>
<!ATTLIST style:background-image draw:transparency %percentage; #IMPLIED>

<!ELEMENT style:symbol-image (office:binary-data?)>
<!ATTLIST style:symbol-image xlink:type (simple) #IMPLIED>
<!ATTLIST style:symbol-image xlink:href %uriReference; #IMPLIED>
<!ATTLIST style:symbol-image xlink:show (embed) #IMPLIED>
<!ATTLIST style:symbol-image xlink:actuate (onLoad) #IMPLIED>

<!ATTLIST style:properties fo:border CDATA #IMPLIED>
<!ATTLIST style:properties fo:border-top CDATA #IMPLIED>
<!ATTLIST style:properties fo:border-bottom CDATA #IMPLIED>
<!ATTLIST style:properties fo:border-left CDATA #IMPLIED>
<!ATTLIST style:properties fo:border-right CDATA #IMPLIED>
<!ATTLIST style:properties style:border-line-width CDATA #IMPLIED>
<!ATTLIST style:properties style:border-line-width-top CDATA #IMPLIED>
<!ATTLIST style:properties style:border-line-width-bottom CDATA #IMPLIED>
<!ATTLIST style:properties style:border-line-width-left CDATA #IMPLIED>
<!ATTLIST style:properties style:border-line-width-right CDATA #IMPLIED>
<!ATTLIST style:properties fo:padding %nonNegativeLength; #IMPLIED>
<!ATTLIST style:properties fo:padding-top %nonNegativeLength; #IMPLIED>
<!ATTLIST style:properties fo:padding-bottom %nonNegativeLength; #IMPLIED>
<!ATTLIST style:properties fo:padding-left %nonNegativeLength; #IMPLIED>
<!ATTLIST style:properties fo:padding-right %nonNegativeLength; #IMPLIED>
<!ATTLIST style:properties style:shadow CDATA #IMPLIED>
<!ATTLIST style:properties fo:keep-with-next %boolean; #IMPLIED>
<!ATTLIST style:properties style:join-border %boolean; #IMPLIED>

<!ATTLIST style:properties text:number-lines %boolean; "false">
<!ATTLIST style:properties text:line-number %nonNegativeInteger; #IMPLIED>

<!ATTLIST style:properties style:decimal-places %nonNegativeInteger; #IMPLIED>
<!ATTLIST style:properties style:tab-stop-distance %nonNegativeLength; #IMPLIED>

<!-- section properties -->
<!ATTLIST style:properties text:dont-balance-text-columns %boolean; #IMPLIED>

<!-- ruby properties -->
<!ATTLIST style:properties style:ruby-align (left|center|right|distribute-letter|distribute-space) #IMPLIED>
<!ATTLIST style:properties style:ruby-position (above|below) #IMPLIED>


<!-- table properties -->
<!ATTLIST style:properties style:width %positiveLength; #IMPLIED>
<!ATTLIST style:properties style:rel-width %percentage; #IMPLIED>
<!ATTLIST style:properties style:may-break-between-rows %boolean; #IMPLIED>
<!ATTLIST style:properties table:page-style-name %styleName; #IMPLIED>
<!ATTLIST style:properties table:display %boolean; #IMPLIED>

<!-- table column properties -->
<!ATTLIST style:properties style:column-width %positiveLength; #IMPLIED>
<!ENTITY % relWidth "CDATA">
<!ATTLIST style:properties style:rel-column-width %relWidth; #IMPLIED>
<!ATTLIST style:properties style:use-optimal-column-width %boolean; #IMPLIED>

<!-- table row properties -->
<!ATTLIST style:properties style:row-height %positiveLength; #IMPLIED>
<!ATTLIST style:properties style:min-row-height %nonNegativeLength; #IMPLIED>
<!ATTLIST style:properties style:use-optimal-row-height %boolean; #IMPLIED>

<!-- table cell properties -->
<!ATTLIST style:properties
	table:align (left | center | right | margins) #IMPLIED
	table:border-model (collapsing | separating) #IMPLIED
	fo:vertical-align (top | middle | bottom | automatic) #IMPLIED
	fo:direction (ltr | ttb) #IMPLIED
	style:glyph-orientation-vertical (auto | 0) #IMPLIED
	style:rotation-angle %nonNegativeInteger; #IMPLIED
	style:rotation-align (none | bottom | top | center) #IMPLIED
	style:cell-protect CDATA #IMPLIED
	fo:wrap-option (no-wrap | wrap) #IMPLIED
>
<!ELEMENT style:columns (style:column-sep?,style:column*)>
<!ATTLIST style:columns fo:column-count %nonNegativeInteger; #IMPLIED>
<!ATTLIST style:columns fo:column-gap %positiveLength; #IMPLIED>

<!ELEMENT style:column EMPTY>
<!ATTLIST style:column style:rel-width CDATA #IMPLIED>
<!ATTLIST style:column fo:margin-left %positiveLength; #IMPLIED>
<!ATTLIST style:column fo:margin-right %positiveLength; #IMPLIED>

<!ELEMENT style:column-sep EMPTY>
<!ATTLIST style:column-sep style:style (none|solid|dotted|dashed|dot-dashed)
																	"solid">
<!ATTLIST style:column-sep style:width %length; #REQUIRED>
<!ATTLIST style:column-sep style:height %percentage; "100&#37;">
<!ATTLIST style:column-sep style:vertical-align (top|middle|bottom) "top">
<!ATTLIST style:column-sep style:color %color; "#000000">

<!-- page master properties -->
<!ELEMENT style:page-master (style:properties?, style:header-style?, style:footer-style?)>
<!ATTLIST style:page-master style:name %styleName; #REQUIRED>
<!ATTLIST style:page-master style:page-usage (all|left|right|mirrored) "all">

<!ELEMENT style:header-style (style:properties?)>
<!ELEMENT style:footer-style (style:properties?)>

<!ATTLIST style:properties fo:page-width %length; #IMPLIED>
<!ATTLIST style:properties fo:page-height %length; #IMPLIED>
<!ATTLIST style:properties style:paper-tray-name %string; #IMPLIED>
<!ATTLIST style:properties style:print-orientation (portrait|landscape) #IMPLIED>
<!ATTLIST style:properties style:print CDATA #IMPLIED>
<!ATTLIST style:properties style:print-page-order (ttb|ltr) #IMPLIED>
<!ATTLIST style:properties style:first-page-number %positiveInteger; #IMPLIED>
<!ATTLIST style:properties style:scale-to %percentage; #IMPLIED>
<!ATTLIST style:properties style:scale-to-pages %positiveInteger; #IMPLIED>
<!ATTLIST style:properties style:table-centering (horizontal | vertical | both | none) #IMPLIED>

<!ATTLIST style:properties style:footnote-max-height %lengthOrNoLimit; #IMPLIED>
<!ATTLIST style:properties style:vertical-align (top|bottom|middle|basline|auto) #IMPLIED>
<!ATTLIST style:properties style:writing-mode (lr-tb|rl-tb|tb-rl|tb-lr|lr|rl|tb|page) "lr-tb">
<!ATTLIST style:properties style:layout-grid-mode (none|line|both) #IMPLIED>
<!ATTLIST style:properties style:layout-grid-base-height %length; #IMPLIED>
<!ATTLIST style:properties style:layout-grid-ruby-height %length; #IMPLIED>
<!ATTLIST style:properties style:layout-grid-lines %positiveInteger; #IMPLIED>
<!ATTLIST style:properties style:layout-grid-color %color; #IMPLIED>
<!ATTLIST style:properties style:layout-grid-ruby-below %boolean; #IMPLIED>
<!ATTLIST style:properties style:layout-grid-print %boolean; #IMPLIED>
<!ATTLIST style:properties style:layout-grid-display %boolean; #IMPLIED>
<!ATTLIST style:properties style:snap-to-layout-grid %boolean; #IMPLIED>

<!ELEMENT style:footnote-sep EMPTY>
<!ATTLIST style:footnote-sep style:width %length; #IMPLIED>
<!ATTLIST style:footnote-sep style:rel-width %percentage; #IMPLIED>
<!ATTLIST style:footnote-sep style:color %color; #IMPLIED>
<!ATTLIST style:footnote-sep style:adjustment (left|center|right) "left">
<!ATTLIST style:footnote-sep style:distance-before-sep %length; #IMPLIED>
<!ATTLIST style:footnote-sep style:distance-after-sep %length; #IMPLIED>

<!-- master page -->
<!ELEMENT style:master-page ( (style:header, style:header-left?)?, (style:footer, style:footer-left?)?,
								office:forms?,style:style*, (%shapes;)*, presentation:notes? )>
<!ATTLIST style:master-page style:name %styleName; #REQUIRED>
<!ATTLIST style:master-page style:page-master-name %styleName; #REQUIRED>
<!ATTLIST style:master-page style:next-style-name %styleName; #IMPLIED>
<!ATTLIST style:master-page draw:style-name %styleName; #IMPLIED>

<!-- handout master -->
<!ELEMENT style:handout-master (%shapes;)*>
<!ATTLIST style:handout-master presentation:presentation-page-layout-name %styleName; #IMPLIED>
<!ATTLIST style:handout-master style:page-master-name %styleName; #IMPLIED>
<!ATTLIST style:handout-master draw:style-name %styleName; #IMPLIED>

<!ENTITY % hd-ft-content "( %headerText; | (style:region-left?, style:region-center?, style:region-right?) )">
<!ELEMENT style:header %hd-ft-content;>
<!ATTLIST style:header style:display %boolean; "true">
<!ELEMENT style:footer %hd-ft-content;>
<!ATTLIST style:footer style:display %boolean; "true">
<!ELEMENT style:header-left %hd-ft-content;>
<!ATTLIST style:header-left style:display %boolean; "true">
<!ELEMENT style:footer-left %hd-ft-content;>
<!ATTLIST style:footer-left style:display %boolean; "true">

<!ENTITY % region-content "(text:p*)">
<!ELEMENT style:region-left %region-content;>
<!ELEMENT style:region-center %region-content;>
<!ELEMENT style:region-right %region-content;>

<!-- control shape properties -->
<!ATTLIST style:properties draw:symbol-color %color; #IMPLIED>