update dev300-m58
[ooovba.git] / xmloff / dtd / form.mod
blobe8d832d7eb4821c1621e6e8d3ef67a1860be4950
1 <!--
3 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 Copyright 2008 by Sun Microsystems, Inc.
7 OpenOffice.org - a multi-platform office productivity suite
9 $RCSfile: form.mod,v $
11 $Revision: 1.23 $
13 This file is part of OpenOffice.org.
15 OpenOffice.org is free software: you can redistribute it and/or modify
16 it under the terms of the GNU Lesser General Public License version 3
17 only, as published by the Free Software Foundation.
19 OpenOffice.org is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 GNU Lesser General Public License version 3 for more details
23 (a copy is included in the LICENSE file that accompanied this code).
25 You should have received a copy of the GNU Lesser General Public License
26 version 3 along with OpenOffice.org. If not, see
27 <http://www.openoffice.org/license.html>
28 for a copy of the LGPLv3 License.
30 -->
32 <!ENTITY % controls "form:text|form:textarea|form:fixed-text|form:file|
33 form:password|form:formatted-text|form:button|form:image|
34 form:checkbox|form:radio|form:listbox|form:combobox|form:frame|
35 form:hidden|form:image-frame|form:grid|form:value-range|form:generic-control">
37 <!ENTITY % name "form:name CDATA #IMPLIED">
38 <!ENTITY % service-name "form:service-name CDATA #IMPLIED">
40 <!ENTITY % navigation "(none|current|parent)">
41 <!ENTITY % cycles "(records|current|page)">
42 <!ENTITY % url "CDATA">
45 <!ENTITY % types "(submit|reset|push|url)">
46 <!ENTITY % button-type "form:button-type %types; 'push'">
47 <!ENTITY % current-selected "form:current-selected %boolean; 'false'">
48 <!ENTITY % current-value "form:current-value CDATA #IMPLIED">
49 <!ENTITY % value "form:value CDATA #IMPLIED">
50 <!ENTITY % disabled "form:disabled %boolean; 'false'">
51 <!ENTITY % dropdown "form:dropdown %boolean; 'false'">
52 <!ENTITY % for "form:for CDATA #IMPLIED">
53 <!ENTITY % image-data "form:image-data %url; #IMPLIED">
54 <!ENTITY % label "form:label CDATA #IMPLIED">
55 <!ENTITY % max-length "form:max-length CDATA #IMPLIED">
56 <!ENTITY % printable "form:printable %boolean; 'true'">
57 <!ENTITY % readonly "form:readonly %boolean; 'false'">
58 <!ENTITY % size "form:size CDATA #IMPLIED">
59 <!ENTITY % selected "form:selected %boolean; 'false'">
60 <!ENTITY % size "form:size CDATA #IMPLIED">
61 <!ENTITY % tab-index "form:tab-index CDATA #IMPLIED">
62 <!ENTITY % target-frame "office:target-frame CDATA '_blank'">
63 <!ENTITY % target-location "xlink:href %url; #IMPLIED">
64 <!ENTITY % tab-stop "form:tab-stop %boolean; 'true'">
65 <!ENTITY % title "form:title CDATA #IMPLIED">
66 <!ENTITY % default-value "form:default-value CDATA #IMPLIED">
67 <!ENTITY % bound-column "form:bound-column CDATA #IMPLIED">
68 <!ENTITY % convert-empty "form:convert-empty-to-null %boolean; 'false'">
69 <!ENTITY % data-field "form:data-field CDATA #IMPLIED">
70 <!ENTITY % linked-cell "form:linked-cell CDATA #IMPLIED">
71 <!ENTITY % visual-effect "form:visual-effect (flat|3d) #IMPLIED">
72 <!ENTITY % image-position "form:image-position (start|end|top|bottom|center) 'center'">
73 <!ENTITY % image-align "form:image-align (start|center|end) 'center'">
74 <!ENTITY % list-linkage-type "form:list-linkage-type (selection|selection-indexes) #IMPLIED">
75 <!ENTITY % source-cell-range "form:source-cell-range CDATA #IMPLIED">
76 <!ENTITY % list-source "form:list-source CDATA #IMPLIED">
77 <!ENTITY % list-source-types "(table|query|sql|sql-pass-through|value-list|table-fields)">
78 <!ENTITY % list-source-type "form:list-source-type %list-source-types; #IMPLIED">
79 <!ENTITY % column-style-name "form:column-style-name %styleName; #IMPLIED">
80 <!ENTITY % min-value "form:min-value %float; #IMPLIED">
81 <!ENTITY % max-value "form:max-value %float; #IMPLIED">
82 <!ENTITY % step-size "form:step-size %positiveInteger; '1'">
83 <!ENTITY % page-step-size "form:page-step-size %positiveInteger; #IMPLIED">
84 <!ENTITY % delay-for-repeat "form:delay-for-repeat %positiveInteger; #IMPLIED">
85 <!ENTITY % orientation "form:orientation (horizontal|vertical) #IMPLIED">
90 <!ELEMENT form:control (%controls;)+>
91 <!ATTLIST form:control %name;
92 %service-name;
93 %control-id;>
95 <!ELEMENT form:form (form:properties?, office:events?, (form:control|form:form)*)>
96 <!ATTLIST form:form %name; %service-name;>
97 <!ATTLIST form:form xlink:href %url; #IMPLIED>
98 <!ATTLIST form:form form:enctype CDATA "application/x-www-form-urlencoded">
99 <!ATTLIST form:form form:method CDATA "get">
100 <!ATTLIST form:form office:target-frame CDATA "_blank">
101 <!ATTLIST form:form form:allow-deletes %boolean; "true">
102 <!ATTLIST form:form form:allow-inserts %boolean; "true">
103 <!ATTLIST form:form form:allow-updates %boolean; "true">
104 <!ATTLIST form:form form:apply-filter %boolean; "false">
105 <!ATTLIST form:form form:command CDATA #IMPLIED>
106 <!ATTLIST form:form form:command-type (table|query|command) "command">
107 <!ATTLIST form:form form:datasource CDATA #IMPLIED>
108 <!ATTLIST form:form form:detail-fields CDATA #IMPLIED>
109 <!ATTLIST form:form form:escape-processing %boolean; "true">
110 <!ATTLIST form:form form:filter CDATA #IMPLIED>
111 <!ATTLIST form:form form:ignore-result %boolean; "false">
112 <!ATTLIST form:form form:master-fields CDATA #IMPLIED>
113 <!ATTLIST form:form form:navigation-mode %navigation; #IMPLIED>
114 <!ATTLIST form:form form:order CDATA #IMPLIED>
115 <!ATTLIST form:form form:tab-cycle %cycles; #IMPLIED>
117 <!ELEMENT office:forms (form:form*)>
118 <!ATTLIST office:forms form:automatic-focus %boolean; "false">
119 <!ATTLIST office:forms form:apply-design-mode %boolean; "true">
121 <!ELEMENT form:text (form:properties?, office:events?)>
122 <!ATTLIST form:text %current-value;
123 %disabled;
124 %max-length;
125 %printable;
126 %readonly;
127 %tab-index;
128 %tab-stop;
129 %title;
130 %value;
131 %convert-empty;
132 %data-field;
133 %linked-cell;>
135 <!ELEMENT form:textarea (form:properties?, office:events?, text:p*)>
136 <!ATTLIST form:textarea %current-value;
137 %disabled;
138 %max-length;
139 %printable;
140 %readonly;
141 %tab-index;
142 %tab-stop;
143 %title;
144 %value;
145 %convert-empty;
146 %data-field;
147 %linked-cell;>
149 <!ELEMENT form:password (form:properties?, office:events?)>
150 <!ATTLIST form:password %disabled;
151 %max-length;
152 %printable;
153 %tab-index;
154 %tab-stop;
155 %title;
156 %value;
157 %convert-empty;
158 %linked-cell;>
160 <!ATTLIST form:password form:echo-char CDATA "*">
162 <!ELEMENT form:file (form:properties?, office:events?)>
163 <!ATTLIST form:file %current-value;
164 %disabled;
165 %max-length;
166 %printable;
167 %readonly;
168 %tab-index;
169 %tab-stop;
170 %title;
171 %value;>
173 <!ELEMENT form:formatted-text (form:properties?, office:events?)>
174 <!ATTLIST form:formatted-text %current-value;
175 %disabled;
176 %max-length;
177 %printable;
178 %readonly;
179 %tab-index;
180 %tab-stop;
181 %title;
182 %min-value;
183 %max-value;
184 %value;
185 %convert-empty;
186 %data-field;
187 %linked-cell;>
188 <!ATTLIST form:formatted-text form:validation %boolean; "false">
190 <!ELEMENT form:fixed-text (form:properties?, office:events?)>
191 <!ATTLIST form:fixed-text %for;
192 %disabled;
193 %label;
194 %printable;
195 %title;>
196 <!ATTLIST form:fixed-text form:multi-line %boolean; "false">
198 <!ELEMENT form:combobox (form:properties?, office:events?, form:item*)>
199 <!ATTLIST form:combobox %current-value;
200 %disabled;
201 %dropdown;
202 %max-length;
203 %printable;
204 %readonly;
205 %size;
206 %tab-index;
207 %tab-stop;
208 %title;
209 %value;
210 %convert-empty;
211 %data-field;
212 %list-source;
213 %list-source-type;
214 %linked-cell;
215 %source-cell-range;>
217 <!ATTLIST form:combobox form:auto-complete %boolean; #IMPLIED>
219 <!ELEMENT form:item (#PCDATA)>
220 <!ATTLIST form:item %label;>
222 <!ELEMENT form:listbox (form:properties?, office:events?, form:option*)>
223 <!ATTLIST form:listbox %disabled;
224 %dropdown;
225 %printable;
226 %size;
227 %tab-index;
228 %tab-stop;
229 %title;
230 %bound-column;
231 %data-field;
232 %list-source;
233 %list-source-type;
234 %linked-cell;
235 %list-linkage-type;
236 %source-cell-range;>
238 <!ATTLIST form:listbox form:multiple %boolean; "false">
240 <!ELEMENT form:option (#PCDATA)>
241 <!ATTLIST form:option %current-selected;
242 %selected;
243 %label;
244 %value;>
246 <!ELEMENT form:button (form:properties?, office:events?)>
247 <!ATTLIST form:button %button-type;
248 %disabled;
249 %label;
250 %image-data;
251 %printable;
252 %tab-index;
253 %tab-stop;
254 %target-frame;
255 %target-location;
256 %title;
257 %value;
258 %image-position;
259 %image-align;>
261 <!ATTLIST form:button form:default-button %boolean; "false"
262 form:toggle %boolean; "false"
263 form:focus-on-click %boolean; "true">
265 <!ELEMENT form:image (form:properties?, office:events?)>
266 <!ATTLIST form:image %button-type;
267 %disabled;
268 %image-data;
269 %printable;
270 %tab-index;
271 %tab-stop;
272 %target-frame;
273 %target-location;
274 %title;
275 %value;>
277 <!ELEMENT form:checkbox (form:properties?, office:events?)>
278 <!ATTLIST form:checkbox %disabled;
279 %label;
280 %printable;
281 %tab-index;
282 %tab-stop;
283 %title;
284 %value;
285 %data-field;
286 %linked-cell;
287 %visual-effect;
288 %image-position;
289 %image-align;>
291 <!ENTITY % states "(unchecked|checked|unknown)">
292 <!ATTLIST form:checkbox form:current-state %states; #IMPLIED>
293 <!ATTLIST form:checkbox form:is-tristate %boolean; "false">
294 <!ATTLIST form:checkbox form:state %states; "unchecked">
296 <!ELEMENT form:radio (form:properties?, office:events?)>
297 <!ATTLIST form:radio %current-selected;
298 %disabled;
299 %label;
300 %printable;
301 %selected;
302 %tab-index;
303 %tab-stop;
304 %title;
305 %value;
306 %data-field;
307 %linked-cell;
308 %visual-effect;
309 %image-position;
310 %image-align;>
312 <!ELEMENT form:frame (form:properties?, office:events?)>
313 <!ATTLIST form:frame %disabled;
314 %for;
315 %label;
316 %printable;
317 %title;>
319 <!ELEMENT form:image-frame (form:properties?, office:events?)>
320 <!ATTLIST form:image-frame %disabled;
321 %image-data;
322 %printable;
323 %readonly;
324 %title;
325 %data-field;>
327 <!ELEMENT form:hidden (form:properties?, office:events?)>
328 <!ATTLIST form:hidden %name;
329 %service-name;
330 %value;>
332 <!ELEMENT form:grid (form:properties?, office:events?, form:column*)>
333 <!ATTLIST form:grid %disabled;
334 %printable;
335 %tab-index;
336 %tab-stop;
337 %title;>
339 <!ENTITY % column-type "form:text| form:textarea| form:formatted-text|form:checkbox| form:listbox| form:combobox">
340 <!ELEMENT form:column (%column-type;)+>
341 <!ATTLIST form:column %name;
342 %service-name;
343 %label;
344 %column-style-name;>
346 <!ELEMENT form:generic-control (form:properties?, office:events?)>
348 <!ELEMENT form:value-range (form:properties?, office:events?)>
349 <!ATTLIST form:value-range %disabled;
350 %printable;
351 %tab-index;
352 %tab-stop;
353 %title;
354 %min-value;
355 %max-value;
356 %current-value;
357 %value;
358 %linked-cell;
359 %step-size;
360 %page-step-size;
361 %delay-for-repeat;
362 %orientation;>
364 <!ELEMENT form:properties (form:property+)>
365 <!ELEMENT form:property (form:property-value*)>
366 <!ATTLIST form:property form:property-is-list %boolean; #IMPLIED>
367 <!ATTLIST form:property form:property-name CDATA #REQUIRED>
368 <!ATTLIST form:property form:property-type (boolean|short|int|long|double|string) #REQUIRED>
369 <!ELEMENT form:property-value (#PCDATA)>
370 <!ATTLIST form:property-value form:property-is-void %boolean; #IMPLIED>