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: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 % list-source "form:list-source CDATA #IMPLIED">
63<!ENTITY % list-source-types "(table|query|sql|sql-pass-through|value-list|table-fields)">
64<!ENTITY % list-source-type "form:list-source-type %list-source-types; #IMPLIED">
65
66<!ELEMENT form:control (%controls;)+>
67<!ATTLIST form:control %name;
68                       %service-name;
69                       %control-id;>
70
71<!ELEMENT form:form (form:properties?, office:events?, (form:control|form:form)*)>
72<!ATTLIST form:form %name; %service-name;>
73<!ATTLIST form:form xlink:href %url; #IMPLIED>
74<!ATTLIST form:form form:enctype CDATA "application/x-www-form-urlencoded">
75<!ATTLIST form:form form:method CDATA "get">
76<!ATTLIST form:form office:target-frame CDATA "_blank">
77<!ATTLIST form:form form:allow-deletes %boolean; "true">
78<!ATTLIST form:form form:allow-inserts %boolean; "true">
79<!ATTLIST form:form form:allow-updates %boolean; "true">
80<!ATTLIST form:form form:apply-filter %boolean; "false">
81<!ATTLIST form:form form:command CDATA #IMPLIED>
82<!ATTLIST form:form form:command-type (table|query|command) "command">
83<!ATTLIST form:form form:datasource CDATA #IMPLIED>
84<!ATTLIST form:form form:detail-fields CDATA #IMPLIED>
85<!ATTLIST form:form form:escape-processing %boolean; "true">
86<!ATTLIST form:form form:filter CDATA #IMPLIED>
87<!ATTLIST form:form form:ignore-result %boolean; "false">
88<!ATTLIST form:form form:master-fields CDATA #IMPLIED>
89<!ATTLIST form:form form:navigation-mode %navigation; #IMPLIED>
90<!ATTLIST form:form form:order CDATA #IMPLIED>
91<!ATTLIST form:form form:tab-cycle %cycles; #IMPLIED>
92
93<!ELEMENT office:forms (form:form*)>
94<!ATTLIST office:forms form:automatic-focus %boolean; "false">
95<!ATTLIST office:forms form:apply-design-mode %boolean; "true">
96
97<!ELEMENT form:text (form:properties?, office:events?)>
98<!ATTLIST form:text %current-value;
99                    %disabled;
100                    %max-length;
101                    %printable;
102                    %readonly;
103                    %tab-index;
104                    %tab-stop;
105                    %title;
106                    %value;
107                    %convert-empty;
108                    %data-field;>
109
110<!ELEMENT form:textarea (form:properties?, office:events?)>
111<!ATTLIST form:textarea %current-value;
112                        %disabled;
113                        %max-length;
114                        %printable;
115                        %readonly;
116                        %tab-index;
117                        %tab-stop;
118                        %title;
119                        %value;
120                        %convert-empty;
121                        %data-field;>
122
123<!ELEMENT form:password (form:properties?, office:events?)>
124<!ATTLIST form:password %disabled;
125                        %max-length;
126                        %printable;
127                        %tab-index;
128                        %tab-stop;
129                        %title;
130                        %value;
131						%convert-empty;>
132
133<!ATTLIST form:password form:echo-char CDATA "*">
134
135<!ELEMENT form:file (form:properties?, office:events?)>
136<!ATTLIST form:file %current-value;
137                    %disabled;
138                    %max-length;
139                    %printable;
140                    %readonly;
141                    %tab-index;
142                    %tab-stop;
143                    %title;
144                    %value;>
145
146<!ELEMENT form:formatted-text (form:properties?, office:events?)>
147<!ATTLIST form:formatted-text %current-value;
148                              %disabled;
149                              %max-length;
150                              %printable;
151                              %readonly;
152                              %tab-index;
153                              %tab-stop;
154                              %title;
155                              %value;
156                              %convert-empty;
157                              %data-field;>
158<!ATTLIST form:formatted-text form:max-value CDATA #IMPLIED>
159<!ATTLIST form:formatted-text form:min-value CDATA #IMPLIED>
160<!ATTLIST form:formatted-text form:validation %boolean; "false">
161
162<!ELEMENT form:fixed-text (form:properties?, office:events?)>
163<!ATTLIST form:fixed-text %for;
164                          %disabled;
165                          %label;
166                          %printable;
167                          %title;>
168<!ATTLIST form:fixed-text form:multi-line %boolean; "false">
169
170<!ELEMENT form:combobox (form:properties?, office:events?, form:item*)>
171<!ATTLIST form:combobox %current-value;
172                        %disabled;
173                        %dropdown;
174                        %max-length;
175                        %printable;
176                        %readonly;
177                        %size;
178                        %tab-index;
179                        %tab-stop;
180                        %title;
181                        %value;
182                        %convert-empty;
183                        %data-field;
184                        %list-source;
185                        %list-source-type;>
186<!ATTLIST form:combobox form:auto-complete %boolean; #IMPLIED>
187
188<!ELEMENT form:item (#PCDATA)>
189<!ATTLIST form:item %label;>
190
191<!ELEMENT form:listbox (form:properties?, office:events?, form:option*)>
192<!ATTLIST form:listbox %disabled;
193                       %dropdown;
194                       %printable;
195                       %size;
196                       %tab-index;
197                       %tab-stop;
198                       %title;
199                       %bound-column;
200                       %data-field;
201                       %list-source;
202                       %list-source-type;>
203<!ATTLIST form:listbox form:multiple %boolean; "false">
204
205<!ELEMENT form:option (#PCDATA)>
206<!ATTLIST form:option %current-selected;
207                      %selected;
208                      %label;
209                      %value;>
210
211<!ELEMENT form:button (form:properties?, office:events?)>
212<!ATTLIST form:button %button-type;
213                      %disabled;
214                      %label;
215                      %image-data;
216                      %printable;
217                      %tab-index;
218                      %tab-stop;
219                      %target-frame;
220                      %target-location;
221                      %title;
222                      %value;>
223<!ATTLIST form:button form:default-button %boolean; "false">
224
225<!ELEMENT form:image (form:properties?, office:events?)>
226<!ATTLIST form:image %button-type;
227                     %disabled;
228                     %image-data;
229                     %printable;
230                     %tab-index;
231                     %tab-stop;
232                     %target-frame;
233                     %target-location;
234                     %title;
235                     %value;>
236
237<!ELEMENT form:checkbox (form:properties?, office:events?)>
238<!ATTLIST form:checkbox %disabled;
239                        %label;
240                        %printable;
241                        %tab-index;
242                        %tab-stop;
243                        %title;
244                        %value;
245                        %data-field;>
246<!ENTITY % states "(unchecked|checked|unknown)">
247<!ATTLIST form:checkbox form:current-state %states; #IMPLIED>
248<!ATTLIST form:checkbox form:is-tristate %boolean; "false">
249<!ATTLIST form:checkbox form:state %states; "unchecked">
250
251<!ELEMENT form:radio (form:properties?, office:events?)>
252<!ATTLIST form:radio %current-selected;
253                     %disabled;
254                     %label;
255                     %printable;
256                     %selected;
257                     %tab-index;
258                     %tab-stop;
259                     %title;
260                     %value;
261                     %data-field;>
262
263<!ELEMENT form:frame (form:properties?, office:events?)>
264<!ATTLIST form:frame %disabled;
265                     %for;
266                     %label;
267                     %printable;
268                     %title;>
269
270<!ELEMENT form:image-frame (form:properties?, office:events?)>
271<!ATTLIST form:image-frame %disabled;
272                           %image-data;
273                           %printable;
274                           %readonly;
275                           %title;
276                           %data-field;>
277
278<!ELEMENT form:hidden (form:properties?, office:events?)>
279<!ATTLIST form:hidden %name;
280                      %service-name;
281                      %value;>
282
283<!ELEMENT form:grid (form:properties?, office:events?, form:column*)>
284<!ATTLIST form:grid %disabled;
285                    %printable;
286                    %tab-index;
287                    %tab-stop;
288                    %title;>
289<!ENTITY % column-type "form:text| form:textarea| form:formatted-text|form:checkbox| form:listbox| form:combobox">
290<!ELEMENT form:column (%column-type;)+>
291<!ATTLIST form:column %name;
292                      %service-name;
293                      %label;>
294
295<!ELEMENT form:generic-control (form:properties?, office:events?)>
296
297
298<!ELEMENT form:properties (form:property+)>
299<!ELEMENT form:property (form:property-value*)>
300<!ATTLIST form:property form:property-is-list %boolean; #IMPLIED>
301<!ATTLIST form:property form:property-name CDATA #REQUIRED>
302<!ATTLIST form:property form:property-type (boolean|short|int|long|double|string)  #REQUIRED>
303<!ELEMENT form:property-value (#PCDATA)>
304
305