form.mod 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. <!--
  2. * This file is part of the LibreOffice project.
  3. *
  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/.
  7. *
  8. * This file incorporates work covered by the following license notice:
  9. *
  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. -->
  18. <!ENTITY % controls "form:text|form:textarea|form:fixed-text|form:file|
  19. form:password|form:formatted-text|form:button|form:image|
  20. form:checkbox|form:radio|form:listbox|form:combobox|form:frame|
  21. form:hidden|form:image-frame|form:grid|form:value-range|form:generic-control">
  22. <!ENTITY % name "form:name CDATA #IMPLIED">
  23. <!ENTITY % service-name "form:service-name CDATA #IMPLIED">
  24. <!ENTITY % navigation "(none|current|parent)">
  25. <!ENTITY % cycles "(records|current|page)">
  26. <!ENTITY % url "CDATA">
  27. <!ENTITY % types "(submit|reset|push|url)">
  28. <!ENTITY % button-type "form:button-type %types; 'push'">
  29. <!ENTITY % current-selected "form:current-selected %boolean; 'false'">
  30. <!ENTITY % current-value "form:current-value CDATA #IMPLIED">
  31. <!ENTITY % value "form:value CDATA #IMPLIED">
  32. <!ENTITY % disabled "form:disabled %boolean; 'false'">
  33. <!ENTITY % dropdown "form:dropdown %boolean; 'false'">
  34. <!ENTITY % for "form:for CDATA #IMPLIED">
  35. <!ENTITY % image-data "form:image-data %url; #IMPLIED">
  36. <!ENTITY % label "form:label CDATA #IMPLIED">
  37. <!ENTITY % max-length "form:max-length CDATA #IMPLIED">
  38. <!ENTITY % printable "form:printable %boolean; 'true'">
  39. <!ENTITY % readonly "form:readonly %boolean; 'false'">
  40. <!ENTITY % size "form:size CDATA #IMPLIED">
  41. <!ENTITY % selected "form:selected %boolean; 'false'">
  42. <!ENTITY % size "form:size CDATA #IMPLIED">
  43. <!ENTITY % tab-index "form:tab-index CDATA #IMPLIED">
  44. <!ENTITY % target-frame "office:target-frame CDATA '_blank'">
  45. <!ENTITY % target-location "xlink:href %url; #IMPLIED">
  46. <!ENTITY % tab-stop "form:tab-stop %boolean; 'true'">
  47. <!ENTITY % title "form:title CDATA #IMPLIED">
  48. <!ENTITY % default-value "form:default-value CDATA #IMPLIED">
  49. <!ENTITY % bound-column "form:bound-column CDATA #IMPLIED">
  50. <!ENTITY % convert-empty "form:convert-empty-to-null %boolean; 'false'">
  51. <!ENTITY % data-field "form:data-field CDATA #IMPLIED">
  52. <!ENTITY % linked-cell "form:linked-cell CDATA #IMPLIED">
  53. <!ENTITY % visual-effect "form:visual-effect (flat|3d) #IMPLIED">
  54. <!ENTITY % image-position "form:image-position (start|end|top|bottom|center) 'center'">
  55. <!ENTITY % image-align "form:image-align (start|center|end) 'center'">
  56. <!ENTITY % list-linkage-type "form:list-linkage-type (selection|selection-indexes) #IMPLIED">
  57. <!ENTITY % source-cell-range "form:source-cell-range CDATA #IMPLIED">
  58. <!ENTITY % list-source "form:list-source CDATA #IMPLIED">
  59. <!ENTITY % list-source-types "(table|query|sql|sql-pass-through|value-list|table-fields)">
  60. <!ENTITY % list-source-type "form:list-source-type %list-source-types; #IMPLIED">
  61. <!ENTITY % column-style-name "form:column-style-name %styleName; #IMPLIED">
  62. <!ENTITY % min-value "form:min-value %float; #IMPLIED">
  63. <!ENTITY % max-value "form:max-value %float; #IMPLIED">
  64. <!ENTITY % step-size "form:step-size %positiveInteger; '1'">
  65. <!ENTITY % page-step-size "form:page-step-size %positiveInteger; #IMPLIED">
  66. <!ENTITY % delay-for-repeat "form:delay-for-repeat %positiveInteger; #IMPLIED">
  67. <!ENTITY % orientation "form:orientation (horizontal|vertical) #IMPLIED">
  68. <!ELEMENT form:control (%controls;)+>
  69. <!ATTLIST form:control %name;
  70. %service-name;
  71. %control-id;>
  72. <!ELEMENT form:form (form:properties?, office:events?, (form:control|form:form)*)>
  73. <!ATTLIST form:form %name; %service-name;>
  74. <!ATTLIST form:form xlink:href %url; #IMPLIED>
  75. <!ATTLIST form:form form:enctype CDATA "application/x-www-form-urlencoded">
  76. <!ATTLIST form:form form:method CDATA "get">
  77. <!ATTLIST form:form office:target-frame CDATA "_blank">
  78. <!ATTLIST form:form form:allow-deletes %boolean; "true">
  79. <!ATTLIST form:form form:allow-inserts %boolean; "true">
  80. <!ATTLIST form:form form:allow-updates %boolean; "true">
  81. <!ATTLIST form:form form:apply-filter %boolean; "false">
  82. <!ATTLIST form:form form:command CDATA #IMPLIED>
  83. <!ATTLIST form:form form:command-type (table|query|command) "command">
  84. <!ATTLIST form:form form:datasource CDATA #IMPLIED>
  85. <!ATTLIST form:form form:detail-fields CDATA #IMPLIED>
  86. <!ATTLIST form:form form:escape-processing %boolean; "true">
  87. <!ATTLIST form:form form:filter CDATA #IMPLIED>
  88. <!ATTLIST form:form form:ignore-result %boolean; "false">
  89. <!ATTLIST form:form form:master-fields CDATA #IMPLIED>
  90. <!ATTLIST form:form form:navigation-mode %navigation; #IMPLIED>
  91. <!ATTLIST form:form form:order CDATA #IMPLIED>
  92. <!ATTLIST form:form form:tab-cycle %cycles; #IMPLIED>
  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. <!ELEMENT form:text (form:properties?, office:events?)>
  97. <!ATTLIST form:text %current-value;
  98. %disabled;
  99. %max-length;
  100. %printable;
  101. %readonly;
  102. %tab-index;
  103. %tab-stop;
  104. %title;
  105. %value;
  106. %convert-empty;
  107. %data-field;
  108. %linked-cell;>
  109. <!ELEMENT form:textarea (form:properties?, office:events?, text:p*)>
  110. <!ATTLIST form:textarea %current-value;
  111. %disabled;
  112. %max-length;
  113. %printable;
  114. %readonly;
  115. %tab-index;
  116. %tab-stop;
  117. %title;
  118. %value;
  119. %convert-empty;
  120. %data-field;
  121. %linked-cell;>
  122. <!ELEMENT form:password (form:properties?, office:events?)>
  123. <!ATTLIST form:password %disabled;
  124. %max-length;
  125. %printable;
  126. %tab-index;
  127. %tab-stop;
  128. %title;
  129. %value;
  130. %convert-empty;
  131. %linked-cell;>
  132. <!ATTLIST form:password form:echo-char CDATA "*">
  133. <!ELEMENT form:file (form:properties?, office:events?)>
  134. <!ATTLIST form:file %current-value;
  135. %disabled;
  136. %max-length;
  137. %printable;
  138. %readonly;
  139. %tab-index;
  140. %tab-stop;
  141. %title;
  142. %value;>
  143. <!ELEMENT form:formatted-text (form:properties?, office:events?)>
  144. <!ATTLIST form:formatted-text %current-value;
  145. %disabled;
  146. %max-length;
  147. %printable;
  148. %readonly;
  149. %tab-index;
  150. %tab-stop;
  151. %title;
  152. %min-value;
  153. %max-value;
  154. %value;
  155. %convert-empty;
  156. %data-field;
  157. %linked-cell;>
  158. <!ATTLIST form:formatted-text form:validation %boolean; "false">
  159. <!ELEMENT form:fixed-text (form:properties?, office:events?)>
  160. <!ATTLIST form:fixed-text %for;
  161. %disabled;
  162. %label;
  163. %printable;
  164. %title;>
  165. <!ATTLIST form:fixed-text form:multi-line %boolean; "false">
  166. <!ELEMENT form:combobox (form:properties?, office:events?, form:item*)>
  167. <!ATTLIST form:combobox %current-value;
  168. %disabled;
  169. %dropdown;
  170. %max-length;
  171. %printable;
  172. %readonly;
  173. %size;
  174. %tab-index;
  175. %tab-stop;
  176. %title;
  177. %value;
  178. %convert-empty;
  179. %data-field;
  180. %list-source;
  181. %list-source-type;
  182. %linked-cell;
  183. %source-cell-range;>
  184. <!ATTLIST form:combobox form:auto-complete %boolean; #IMPLIED>
  185. <!ELEMENT form:item (#PCDATA)>
  186. <!ATTLIST form:item %label;>
  187. <!ELEMENT form:listbox (form:properties?, office:events?, form:option*)>
  188. <!ATTLIST form:listbox %disabled;
  189. %dropdown;
  190. %printable;
  191. %size;
  192. %tab-index;
  193. %tab-stop;
  194. %title;
  195. %bound-column;
  196. %data-field;
  197. %list-source;
  198. %list-source-type;
  199. %linked-cell;
  200. %list-linkage-type;
  201. %source-cell-range;>
  202. <!ATTLIST form:listbox form:multiple %boolean; "false">
  203. <!ELEMENT form:option (#PCDATA)>
  204. <!ATTLIST form:option %current-selected;
  205. %selected;
  206. %label;
  207. %value;>
  208. <!ELEMENT form:button (form:properties?, office:events?)>
  209. <!ATTLIST form:button %button-type;
  210. %disabled;
  211. %label;
  212. %image-data;
  213. %printable;
  214. %tab-index;
  215. %tab-stop;
  216. %target-frame;
  217. %target-location;
  218. %title;
  219. %value;
  220. %image-position;
  221. %image-align;>
  222. <!ATTLIST form:button form:default-button %boolean; "false"
  223. form:toggle %boolean; "false"
  224. form:focus-on-click %boolean; "true">
  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. <!ELEMENT form:checkbox (form:properties?, office:events?)>
  237. <!ATTLIST form:checkbox %disabled;
  238. %label;
  239. %printable;
  240. %tab-index;
  241. %tab-stop;
  242. %title;
  243. %value;
  244. %data-field;
  245. %linked-cell;
  246. %visual-effect;
  247. %image-position;
  248. %image-align;>
  249. <!ENTITY % states "(unchecked|checked|unknown)">
  250. <!ATTLIST form:checkbox form:current-state %states; #IMPLIED>
  251. <!ATTLIST form:checkbox form:is-tristate %boolean; "false">
  252. <!ATTLIST form:checkbox form:state %states; "unchecked">
  253. <!ELEMENT form:radio (form:properties?, office:events?)>
  254. <!ATTLIST form:radio %current-selected;
  255. %disabled;
  256. %label;
  257. %printable;
  258. %selected;
  259. %tab-index;
  260. %tab-stop;
  261. %title;
  262. %value;
  263. %data-field;
  264. %linked-cell;
  265. %visual-effect;
  266. %image-position;
  267. %image-align;>
  268. <!ELEMENT form:frame (form:properties?, office:events?)>
  269. <!ATTLIST form:frame %disabled;
  270. %for;
  271. %label;
  272. %printable;
  273. %title;>
  274. <!ELEMENT form:image-frame (form:properties?, office:events?)>
  275. <!ATTLIST form:image-frame %disabled;
  276. %image-data;
  277. %printable;
  278. %readonly;
  279. %title;
  280. %data-field;>
  281. <!ELEMENT form:hidden (form:properties?, office:events?)>
  282. <!ATTLIST form:hidden %name;
  283. %service-name;
  284. %value;>
  285. <!ELEMENT form:grid (form:properties?, office:events?, form:column*)>
  286. <!ATTLIST form:grid %disabled;
  287. %printable;
  288. %tab-index;
  289. %tab-stop;
  290. %title;>
  291. <!ENTITY % column-type "form:text| form:textarea| form:formatted-text|form:checkbox| form:listbox| form:combobox">
  292. <!ELEMENT form:column (%column-type;)+>
  293. <!ATTLIST form:column %name;
  294. %service-name;
  295. %label;
  296. %column-style-name;>
  297. <!ELEMENT form:generic-control (form:properties?, office:events?)>
  298. <!ELEMENT form:value-range (form:properties?, office:events?)>
  299. <!ATTLIST form:value-range %disabled;
  300. %printable;
  301. %tab-index;
  302. %tab-stop;
  303. %title;
  304. %min-value;
  305. %max-value;
  306. %current-value;
  307. %value;
  308. %linked-cell;
  309. %step-size;
  310. %page-step-size;
  311. %delay-for-repeat;
  312. %orientation;>
  313. <!ELEMENT form:properties (form:property+)>
  314. <!ELEMENT form:property (form:property-value*)>
  315. <!ATTLIST form:property form:property-is-list %boolean; #IMPLIED>
  316. <!ATTLIST form:property form:property-name CDATA #REQUIRED>
  317. <!ATTLIST form:property form:property-type (boolean|short|int|long|double|string) #REQUIRED>
  318. <!ELEMENT form:property-value (#PCDATA)>
  319. <!ATTLIST form:property-value form:property-is-void %boolean; #IMPLIED>