xref: /aoo41x/main/xmloff/dtd/form.mod (revision cabbd591)
1<!--***********************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 ***********************************************************-->
21
22
23
24<!ENTITY % controls	"form:text|form:textarea|form:fixed-text|form:file|
25					 form:password|form:formatted-text|form:button|form:image|
26					 form:checkbox|form:radio|form:listbox|form:combobox|form:frame|
27					 form:hidden|form:image-frame|form:grid|form:value-range|form:generic-control">
28
29<!ENTITY % name "form:name CDATA #IMPLIED">
30<!ENTITY % service-name "form:service-name CDATA #IMPLIED">
31
32<!ENTITY % navigation "(none|current|parent)">
33<!ENTITY % cycles "(records|current|page)">
34<!ENTITY % url "CDATA">
35
36
37<!ENTITY % types "(submit|reset|push|url)">
38<!ENTITY % button-type "form:button-type %types; 'push'">
39<!ENTITY % current-selected "form:current-selected %boolean; 'false'">
40<!ENTITY % current-value "form:current-value CDATA #IMPLIED">
41<!ENTITY % value "form:value CDATA #IMPLIED">
42<!ENTITY % disabled "form:disabled %boolean; 'false'">
43<!ENTITY % dropdown "form:dropdown %boolean; 'false'">
44<!ENTITY % for "form:for CDATA #IMPLIED">
45<!ENTITY % image-data "form:image-data %url; #IMPLIED">
46<!ENTITY % label "form:label CDATA #IMPLIED">
47<!ENTITY % max-length "form:max-length CDATA #IMPLIED">
48<!ENTITY % printable "form:printable %boolean; 'true'">
49<!ENTITY % readonly "form:readonly %boolean; 'false'">
50<!ENTITY % size "form:size CDATA #IMPLIED">
51<!ENTITY % selected "form:selected %boolean; 'false'">
52<!ENTITY % size "form:size CDATA #IMPLIED">
53<!ENTITY % tab-index "form:tab-index CDATA #IMPLIED">
54<!ENTITY % target-frame "office:target-frame CDATA '_blank'">
55<!ENTITY % target-location "xlink:href %url; #IMPLIED">
56<!ENTITY % tab-stop "form:tab-stop %boolean; 'true'">
57<!ENTITY % title "form:title CDATA #IMPLIED">
58<!ENTITY % default-value "form:default-value CDATA #IMPLIED">
59<!ENTITY % bound-column "form:bound-column CDATA #IMPLIED">
60<!ENTITY % convert-empty "form:convert-empty-to-null  %boolean; 'false'">
61<!ENTITY % data-field "form:data-field CDATA #IMPLIED">
62<!ENTITY % linked-cell "form:linked-cell CDATA #IMPLIED">
63<!ENTITY % visual-effect "form:visual-effect (flat|3d) #IMPLIED">
64<!ENTITY % image-position "form:image-position (start|end|top|bottom|center) 'center'">
65<!ENTITY % image-align "form:image-align (start|center|end) 'center'">
66<!ENTITY % list-linkage-type "form:list-linkage-type (selection|selection-indexes) #IMPLIED">
67<!ENTITY % source-cell-range "form:source-cell-range CDATA #IMPLIED">
68<!ENTITY % list-source "form:list-source CDATA #IMPLIED">
69<!ENTITY % list-source-types "(table|query|sql|sql-pass-through|value-list|table-fields)">
70<!ENTITY % list-source-type "form:list-source-type %list-source-types; #IMPLIED">
71<!ENTITY % column-style-name "form:column-style-name %styleName; #IMPLIED">
72<!ENTITY % min-value "form:min-value %float; #IMPLIED">
73<!ENTITY % max-value "form:max-value %float; #IMPLIED">
74<!ENTITY % step-size "form:step-size %positiveInteger; '1'">
75<!ENTITY % page-step-size "form:page-step-size %positiveInteger; #IMPLIED">
76<!ENTITY % delay-for-repeat "form:delay-for-repeat %positiveInteger; #IMPLIED">
77<!ENTITY % orientation "form:orientation (horizontal|vertical) #IMPLIED">
78
79
80
81
82<!ELEMENT form:control (%controls;)+>
83<!ATTLIST form:control %name;
84                       %service-name;
85                       %control-id;>
86
87<!ELEMENT form:form (form:properties?, office:events?, (form:control|form:form)*)>
88<!ATTLIST form:form %name; %service-name;>
89<!ATTLIST form:form xlink:href %url; #IMPLIED>
90<!ATTLIST form:form form:enctype CDATA "application/x-www-form-urlencoded">
91<!ATTLIST form:form form:method CDATA "get">
92<!ATTLIST form:form office:target-frame CDATA "_blank">
93<!ATTLIST form:form form:allow-deletes %boolean; "true">
94<!ATTLIST form:form form:allow-inserts %boolean; "true">
95<!ATTLIST form:form form:allow-updates %boolean; "true">
96<!ATTLIST form:form form:apply-filter %boolean; "false">
97<!ATTLIST form:form form:command CDATA #IMPLIED>
98<!ATTLIST form:form form:command-type (table|query|command) "command">
99<!ATTLIST form:form form:datasource CDATA #IMPLIED>
100<!ATTLIST form:form form:detail-fields CDATA #IMPLIED>
101<!ATTLIST form:form form:escape-processing %boolean; "true">
102<!ATTLIST form:form form:filter CDATA #IMPLIED>
103<!ATTLIST form:form form:ignore-result %boolean; "false">
104<!ATTLIST form:form form:master-fields CDATA #IMPLIED>
105<!ATTLIST form:form form:navigation-mode %navigation; #IMPLIED>
106<!ATTLIST form:form form:order CDATA #IMPLIED>
107<!ATTLIST form:form form:tab-cycle %cycles; #IMPLIED>
108
109<!ELEMENT office:forms (form:form*)>
110<!ATTLIST office:forms form:automatic-focus %boolean; "false">
111<!ATTLIST office:forms form:apply-design-mode %boolean; "true">
112
113<!ELEMENT form:text (form:properties?, office:events?)>
114<!ATTLIST form:text %current-value;
115                    %disabled;
116                    %max-length;
117                    %printable;
118                    %readonly;
119                    %tab-index;
120                    %tab-stop;
121                    %title;
122                    %value;
123                    %convert-empty;
124                    %data-field;
125                    %linked-cell;>
126
127<!ELEMENT form:textarea (form:properties?, office:events?, text:p*)>
128<!ATTLIST form:textarea %current-value;
129                        %disabled;
130                        %max-length;
131                        %printable;
132                        %readonly;
133                        %tab-index;
134                        %tab-stop;
135                        %title;
136                        %value;
137                        %convert-empty;
138                        %data-field;
139                        %linked-cell;>
140
141<!ELEMENT form:password (form:properties?, office:events?)>
142<!ATTLIST form:password %disabled;
143                        %max-length;
144                        %printable;
145                        %tab-index;
146                        %tab-stop;
147                        %title;
148                        %value;
149						%convert-empty;
150                        %linked-cell;>
151
152<!ATTLIST form:password form:echo-char CDATA "*">
153
154<!ELEMENT form:file (form:properties?, office:events?)>
155<!ATTLIST form:file %current-value;
156                    %disabled;
157                    %max-length;
158                    %printable;
159                    %readonly;
160                    %tab-index;
161                    %tab-stop;
162                    %title;
163                    %value;>
164
165<!ELEMENT form:formatted-text (form:properties?, office:events?)>
166<!ATTLIST form:formatted-text %current-value;
167                              %disabled;
168                              %max-length;
169                              %printable;
170                              %readonly;
171                              %tab-index;
172                              %tab-stop;
173                              %title;
174                              %min-value;
175                              %max-value;
176                              %value;
177                              %convert-empty;
178                              %data-field;
179                              %linked-cell;>
180<!ATTLIST form:formatted-text form:validation %boolean; "false">
181
182<!ELEMENT form:fixed-text (form:properties?, office:events?)>
183<!ATTLIST form:fixed-text %for;
184                          %disabled;
185                          %label;
186                          %printable;
187                          %title;>
188<!ATTLIST form:fixed-text form:multi-line %boolean; "false">
189
190<!ELEMENT form:combobox (form:properties?, office:events?, form:item*)>
191<!ATTLIST form:combobox %current-value;
192                        %disabled;
193                        %dropdown;
194                        %max-length;
195                        %printable;
196                        %readonly;
197                        %size;
198                        %tab-index;
199                        %tab-stop;
200                        %title;
201                        %value;
202                        %convert-empty;
203                        %data-field;
204                        %list-source;
205                        %list-source-type;
206                        %linked-cell;
207                        %source-cell-range;>
208
209<!ATTLIST form:combobox form:auto-complete %boolean; #IMPLIED>
210
211<!ELEMENT form:item (#PCDATA)>
212<!ATTLIST form:item %label;>
213
214<!ELEMENT form:listbox (form:properties?, office:events?, form:option*)>
215<!ATTLIST form:listbox %disabled;
216                       %dropdown;
217                       %printable;
218                       %size;
219                       %tab-index;
220                       %tab-stop;
221                       %title;
222                       %bound-column;
223                       %data-field;
224                       %list-source;
225                       %list-source-type;
226                       %linked-cell;
227                       %list-linkage-type;
228                       %source-cell-range;>
229
230<!ATTLIST form:listbox form:multiple %boolean; "false">
231
232<!ELEMENT form:option (#PCDATA)>
233<!ATTLIST form:option %current-selected;
234                      %selected;
235                      %label;
236                      %value;>
237
238<!ELEMENT form:button (form:properties?, office:events?)>
239<!ATTLIST form:button %button-type;
240                      %disabled;
241                      %label;
242                      %image-data;
243                      %printable;
244                      %tab-index;
245                      %tab-stop;
246                      %target-frame;
247                      %target-location;
248                      %title;
249                      %value;
250                      %image-position;
251                      %image-align;>
252
253<!ATTLIST form:button form:default-button %boolean; "false"
254                      form:toggle %boolean; "false"
255                      form:focus-on-click %boolean; "true">
256
257<!ELEMENT form:image (form:properties?, office:events?)>
258<!ATTLIST form:image %button-type;
259                     %disabled;
260                     %image-data;
261                     %printable;
262                     %tab-index;
263                     %tab-stop;
264                     %target-frame;
265                     %target-location;
266                     %title;
267                     %value;>
268
269<!ELEMENT form:checkbox (form:properties?, office:events?)>
270<!ATTLIST form:checkbox %disabled;
271                        %label;
272                        %printable;
273                        %tab-index;
274                        %tab-stop;
275                        %title;
276                        %value;
277                        %data-field;
278                        %linked-cell;
279                        %visual-effect;
280                        %image-position;
281                        %image-align;>
282
283<!ENTITY % states "(unchecked|checked|unknown)">
284<!ATTLIST form:checkbox form:current-state %states; #IMPLIED>
285<!ATTLIST form:checkbox form:is-tristate %boolean; "false">
286<!ATTLIST form:checkbox form:state %states; "unchecked">
287
288<!ELEMENT form:radio (form:properties?, office:events?)>
289<!ATTLIST form:radio %current-selected;
290                     %disabled;
291                     %label;
292                     %printable;
293                     %selected;
294                     %tab-index;
295                     %tab-stop;
296                     %title;
297                     %value;
298                     %data-field;
299                     %linked-cell;
300                     %visual-effect;
301                     %image-position;
302                     %image-align;>
303
304<!ELEMENT form:frame (form:properties?, office:events?)>
305<!ATTLIST form:frame %disabled;
306                     %for;
307                     %label;
308                     %printable;
309                     %title;>
310
311<!ELEMENT form:image-frame (form:properties?, office:events?)>
312<!ATTLIST form:image-frame %disabled;
313                           %image-data;
314                           %printable;
315                           %readonly;
316                           %title;
317                           %data-field;>
318
319<!ELEMENT form:hidden (form:properties?, office:events?)>
320<!ATTLIST form:hidden %name;
321                      %service-name;
322                      %value;>
323
324<!ELEMENT form:grid (form:properties?, office:events?, form:column*)>
325<!ATTLIST form:grid %disabled;
326                    %printable;
327                    %tab-index;
328                    %tab-stop;
329                    %title;>
330
331<!ENTITY % column-type "form:text| form:textarea| form:formatted-text|form:checkbox| form:listbox| form:combobox">
332<!ELEMENT form:column (%column-type;)+>
333<!ATTLIST form:column %name;
334                      %service-name;
335                      %label;
336					  %column-style-name;>
337
338<!ELEMENT form:generic-control (form:properties?, office:events?)>
339
340<!ELEMENT form:value-range (form:properties?, office:events?)>
341<!ATTLIST form:value-range %disabled;
342                           %printable;
343                           %tab-index;
344                           %tab-stop;
345                           %title;
346                           %min-value;
347                           %max-value;
348                           %current-value;
349                           %value;
350                           %linked-cell;
351                           %step-size;
352                           %page-step-size;
353                           %delay-for-repeat;
354                           %orientation;>
355
356<!ELEMENT form:properties (form:property+)>
357<!ELEMENT form:property (form:property-value*)>
358<!ATTLIST form:property form:property-is-list %boolean; #IMPLIED>
359<!ATTLIST form:property form:property-name CDATA #REQUIRED>
360<!ATTLIST form:property form:property-type (boolean|short|int|long|double|string)  #REQUIRED>
361<!ELEMENT form:property-value (#PCDATA)>
362<!ATTLIST form:property-value form:property-is-void %boolean; #IMPLIED>
363