home *** CD-ROM | disk | FTP | other *** search
/ PC World 2004 October / PCWorld_2004-10_cd.bin / akce / openoffice / f_0166 / form.mod
Text File  |  2003-12-17  |  14KB  |  359 lines

  1. <!--
  2.     $Id: form.mod,v 1.13.138.1 2003/11/14 10:38:26 vg Exp $
  3.  
  4.    The Contents of this file are made available subject to the terms of
  5.    either of the following licenses
  6.  
  7.           - GNU Lesser General Public License Version 2.1
  8.           - Sun Industry Standards Source License Version 1.1
  9.  
  10.    Sun Microsystems Inc., October, 2000
  11.  
  12.    GNU Lesser General Public License Version 2.1
  13.    =============================================
  14.    Copyright 2000 by Sun Microsystems, Inc.
  15.    901 San Antonio Road, Palo Alto, CA 94303, USA
  16.  
  17.    This library is free software; you can redistribute it and/or
  18.    modify it under the terms of the GNU Lesser General Public
  19.    License version 2.1, as published by the Free Software Foundation.
  20.  
  21.    This library is distributed in the hope that it will be useful,
  22.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  23.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  24.    Lesser General Public License for more details.
  25.  
  26.    You should have received a copy of the GNU Lesser General Public
  27.    License along with this library; if not, write to the Free Software
  28.    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  29.    MA  02111-1307  USA
  30.  
  31.  
  32.    Sun Industry Standards Source License Version 1.1
  33.    =================================================
  34.    The contents of this file are subject to the Sun Industry Standards
  35.    Source License Version 1.1 (the "License"); You may not use this file
  36.    except in compliance with the License. You may obtain a copy of the
  37.    License at http://www.openoffice.org/license.html.
  38.  
  39.    Software provided under this License is provided on an "AS IS" basis,
  40.    WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING,
  41.    WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
  42.    MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
  43.    See the License for the specific provisions governing your rights and
  44.    obligations concerning the Software.
  45.  
  46.    The Initial Developer of the Original Code is: Sun Microsystems, Inc.
  47.  
  48.    Copyright: 2000 by Sun Microsystems, Inc.
  49.  
  50.    All Rights Reserved.
  51.  
  52.    Contributor(s): _______________________________________
  53.  
  54. -->
  55.  
  56. <!ENTITY % controls    "form:text|form:textarea|form:fixed-text|form:file|
  57.                      form:password|form:formatted-text|form:button|form:image|
  58.                      form:checkbox|form:radio|form:listbox|form:combobox|form:frame|
  59.                      form:hidden|form:image-frame|form:grid|form:generic-control">
  60.  
  61. <!ENTITY % name "form:name CDATA #IMPLIED">
  62. <!ENTITY % service-name "form:service-name CDATA #IMPLIED">
  63.  
  64. <!ENTITY % navigation "(none|current|parent)">
  65. <!ENTITY % cycles "(records|current|page)">
  66. <!ENTITY % url "CDATA">
  67.  
  68.  
  69. <!ENTITY % types "(submit|reset|push|url)">
  70. <!ENTITY % button-type "form:button-type %types; 'push'">
  71. <!ENTITY % current-selected "form:current-selected %boolean; 'false'">
  72. <!ENTITY % current-value "form:current-value CDATA #IMPLIED">
  73. <!ENTITY % value "form:value CDATA #IMPLIED">
  74. <!ENTITY % disabled "form:disabled %boolean; 'false'">
  75. <!ENTITY % dropdown "form:dropdown %boolean; 'false'">
  76. <!ENTITY % for "form:for CDATA #IMPLIED">
  77. <!ENTITY % image-data "form:image-data %url; #IMPLIED">
  78. <!ENTITY % label "form:label CDATA #IMPLIED">
  79. <!ENTITY % max-length "form:max-length CDATA #IMPLIED">
  80. <!ENTITY % printable "form:printable %boolean; 'true'">
  81. <!ENTITY % readonly "form:readonly %boolean; 'false'">
  82. <!ENTITY % size "form:size CDATA #IMPLIED">
  83. <!ENTITY % selected "form:selected %boolean; 'false'">
  84. <!ENTITY % size "form:size CDATA #IMPLIED">
  85. <!ENTITY % tab-index "form:tab-index CDATA #IMPLIED">
  86. <!ENTITY % target-frame "office:target-frame CDATA '_blank'">
  87. <!ENTITY % target-location "xlink:href %url; #IMPLIED">
  88. <!ENTITY % tab-stop "form:tab-stop %boolean; 'true'">
  89. <!ENTITY % title "form:title CDATA #IMPLIED">
  90. <!ENTITY % default-value "form:default-value CDATA #IMPLIED">
  91. <!ENTITY % bound-column "form:bound-column CDATA #IMPLIED">
  92. <!ENTITY % convert-empty "form:convert-empty-to-null  %boolean; 'false'">
  93. <!ENTITY % data-field "form:data-field CDATA #IMPLIED">
  94. <!ENTITY % linked-cell "form:linked-cell CDATA #IMPLIED">
  95. <!ENTITY % list-linkage-type "form:list-linkage-type (selection|selection-indexes) #IMPLIED">
  96. <!ENTITY % source-cell-range "form:source-cell-range CDATA #IMPLIED">
  97. <!ENTITY % list-source "form:list-source CDATA #IMPLIED">
  98. <!ENTITY % list-source-types "(table|query|sql|sql-pass-through|value-list|table-fields)">
  99. <!ENTITY % list-source-type "form:list-source-type %list-source-types; #IMPLIED">
  100. <!ENTITY % column-style-name "form:column-style-name %styleName; #IMPLIED">
  101.  
  102.  
  103. <!ELEMENT form:control (%controls;)+>
  104. <!ATTLIST form:control %name;
  105.                        %service-name;
  106.                        %control-id;>
  107.  
  108. <!ELEMENT form:form (form:properties?, office:events?, (form:control|form:form)*)>
  109. <!ATTLIST form:form %name; %service-name;>
  110. <!ATTLIST form:form xlink:href %url; #IMPLIED>
  111. <!ATTLIST form:form form:enctype CDATA "application/x-www-form-urlencoded">
  112. <!ATTLIST form:form form:method CDATA "get">
  113. <!ATTLIST form:form office:target-frame CDATA "_blank">
  114. <!ATTLIST form:form form:allow-deletes %boolean; "true">
  115. <!ATTLIST form:form form:allow-inserts %boolean; "true">
  116. <!ATTLIST form:form form:allow-updates %boolean; "true">
  117. <!ATTLIST form:form form:apply-filter %boolean; "false">
  118. <!ATTLIST form:form form:command CDATA #IMPLIED>
  119. <!ATTLIST form:form form:command-type (table|query|command) "command">
  120. <!ATTLIST form:form form:datasource CDATA #IMPLIED>
  121. <!ATTLIST form:form form:detail-fields CDATA #IMPLIED>
  122. <!ATTLIST form:form form:escape-processing %boolean; "true">
  123. <!ATTLIST form:form form:filter CDATA #IMPLIED>
  124. <!ATTLIST form:form form:ignore-result %boolean; "false">
  125. <!ATTLIST form:form form:master-fields CDATA #IMPLIED>
  126. <!ATTLIST form:form form:navigation-mode %navigation; #IMPLIED>
  127. <!ATTLIST form:form form:order CDATA #IMPLIED>
  128. <!ATTLIST form:form form:tab-cycle %cycles; #IMPLIED>
  129.  
  130. <!ELEMENT office:forms (form:form*)>
  131. <!ATTLIST office:forms form:automatic-focus %boolean; "false">
  132. <!ATTLIST office:forms form:apply-design-mode %boolean; "true">
  133.  
  134. <!ELEMENT form:text (form:properties?, office:events?)>
  135. <!ATTLIST form:text %current-value;
  136.                     %disabled;
  137.                     %max-length;
  138.                     %printable;
  139.                     %readonly;
  140.                     %tab-index;
  141.                     %tab-stop;
  142.                     %title;
  143.                     %value;
  144.                     %convert-empty;
  145.                     %data-field;
  146.                     %linked-cell;>
  147.  
  148. <!ELEMENT form:textarea (form:properties?, office:events?)>
  149. <!ATTLIST form:textarea %current-value;
  150.                         %disabled;
  151.                         %max-length;
  152.                         %printable;
  153.                         %readonly;
  154.                         %tab-index;
  155.                         %tab-stop;
  156.                         %title;
  157.                         %value;
  158.                         %convert-empty;
  159.                         %data-field;
  160.                         %linked-cell;>
  161.  
  162. <!ELEMENT form:password (form:properties?, office:events?)>
  163. <!ATTLIST form:password %disabled;
  164.                         %max-length;
  165.                         %printable;
  166.                         %tab-index;
  167.                         %tab-stop;
  168.                         %title;
  169.                         %value;
  170.                         %convert-empty;
  171.                         %linked-cell;>
  172.  
  173. <!ATTLIST form:password form:echo-char CDATA "*">
  174.  
  175. <!ELEMENT form:file (form:properties?, office:events?)>
  176. <!ATTLIST form:file %current-value;
  177.                     %disabled;
  178.                     %max-length;
  179.                     %printable;
  180.                     %readonly;
  181.                     %tab-index;
  182.                     %tab-stop;
  183.                     %title;
  184.                     %value;>
  185.  
  186. <!ELEMENT form:formatted-text (form:properties?, office:events?)>
  187. <!ATTLIST form:formatted-text %current-value;
  188.                               %disabled;
  189.                               %max-length;
  190.                               %printable;
  191.                               %readonly;
  192.                               %tab-index;
  193.                               %tab-stop;
  194.                               %title;
  195.                               %value;
  196.                               %convert-empty;
  197.                               %data-field;
  198.                               %linked-cell;>
  199.  
  200. <!ATTLIST form:formatted-text form:max-value CDATA #IMPLIED>
  201. <!ATTLIST form:formatted-text form:min-value CDATA #IMPLIED>
  202. <!ATTLIST form:formatted-text form:validation %boolean; "false">
  203.  
  204. <!ELEMENT form:fixed-text (form:properties?, office:events?)>
  205. <!ATTLIST form:fixed-text %for;
  206.                           %disabled;
  207.                           %label;
  208.                           %printable;
  209.                           %title;>
  210. <!ATTLIST form:fixed-text form:multi-line %boolean; "false">
  211.  
  212. <!ELEMENT form:combobox (form:properties?, office:events?, form:item*)>
  213. <!ATTLIST form:combobox %current-value;
  214.                         %disabled;
  215.                         %dropdown;
  216.                         %max-length;
  217.                         %printable;
  218.                         %readonly;
  219.                         %size;
  220.                         %tab-index;
  221.                         %tab-stop;
  222.                         %title;
  223.                         %value;
  224.                         %convert-empty;
  225.                         %data-field;
  226.                         %list-source;
  227.                         %list-source-type;
  228.                         %linked-cell;
  229.                         %source-cell-range;>
  230.  
  231. <!ATTLIST form:combobox form:auto-complete %boolean; #IMPLIED>
  232.  
  233. <!ELEMENT form:item (#PCDATA)>
  234. <!ATTLIST form:item %label;>
  235.  
  236. <!ELEMENT form:listbox (form:properties?, office:events?, form:option*)>
  237. <!ATTLIST form:listbox %disabled;
  238.                        %dropdown;
  239.                        %printable;
  240.                        %size;
  241.                        %tab-index;
  242.                        %tab-stop;
  243.                        %title;
  244.                        %bound-column;
  245.                        %data-field;
  246.                        %list-source;
  247.                        %list-source-type;
  248.                        %linked-cell;
  249.                        %list-linkage-type;
  250.                        %source-cell-range;>
  251.  
  252. <!ATTLIST form:listbox form:multiple %boolean; "false">
  253.  
  254. <!ELEMENT form:option (#PCDATA)>
  255. <!ATTLIST form:option %current-selected;
  256.                       %selected;
  257.                       %label;
  258.                       %value;>
  259.  
  260. <!ELEMENT form:button (form:properties?, office:events?)>
  261. <!ATTLIST form:button %button-type;
  262.                       %disabled;
  263.                       %label;
  264.                       %image-data;
  265.                       %printable;
  266.                       %tab-index;
  267.                       %tab-stop;
  268.                       %target-frame;
  269.                       %target-location;
  270.                       %title;
  271.                       %value;>
  272. <!ATTLIST form:button form:default-button %boolean; "false">
  273.  
  274. <!ELEMENT form:image (form:properties?, office:events?)>
  275. <!ATTLIST form:image %button-type;
  276.                      %disabled;
  277.                      %image-data;
  278.                      %printable;
  279.                      %tab-index;
  280.                      %tab-stop;
  281.                      %target-frame;
  282.                      %target-location;
  283.                      %title;
  284.                      %value;>
  285.  
  286. <!ELEMENT form:checkbox (form:properties?, office:events?)>
  287. <!ATTLIST form:checkbox %disabled;
  288.                         %label;
  289.                         %printable;
  290.                         %tab-index;
  291.                         %tab-stop;
  292.                         %title;
  293.                         %value;
  294.                         %data-field;
  295.                         %linked-cell;>
  296.  
  297. <!ENTITY % states "(unchecked|checked|unknown)">
  298. <!ATTLIST form:checkbox form:current-state %states; #IMPLIED>
  299. <!ATTLIST form:checkbox form:is-tristate %boolean; "false">
  300. <!ATTLIST form:checkbox form:state %states; "unchecked">
  301.  
  302. <!ELEMENT form:radio (form:properties?, office:events?)>
  303. <!ATTLIST form:radio %current-selected;
  304.                      %disabled;
  305.                      %label;
  306.                      %printable;
  307.                      %selected;
  308.                      %tab-index;
  309.                      %tab-stop;
  310.                      %title;
  311.                      %value;
  312.                      %data-field;
  313.                      %linked-cell;>
  314.  
  315. <!ELEMENT form:frame (form:properties?, office:events?)>
  316. <!ATTLIST form:frame %disabled;
  317.                      %for;
  318.                      %label;
  319.                      %printable;
  320.                      %title;>
  321.  
  322. <!ELEMENT form:image-frame (form:properties?, office:events?)>
  323. <!ATTLIST form:image-frame %disabled;
  324.                            %image-data;
  325.                            %printable;
  326.                            %readonly;
  327.                            %title;
  328.                            %data-field;>
  329.  
  330. <!ELEMENT form:hidden (form:properties?, office:events?)>
  331. <!ATTLIST form:hidden %name;
  332.                       %service-name;
  333.                       %value;>
  334.  
  335. <!ELEMENT form:grid (form:properties?, office:events?, form:column*)>
  336. <!ATTLIST form:grid %disabled;
  337.                     %printable;
  338.                     %tab-index;
  339.                     %tab-stop;
  340.                     %title;>
  341.  
  342. <!ENTITY % column-type "form:text| form:textarea| form:formatted-text|form:checkbox| form:listbox| form:combobox">
  343. <!ELEMENT form:column (%column-type;)+>
  344. <!ATTLIST form:column %name;
  345.                       %service-name;
  346.                       %label;
  347.                       %column-style-name;>
  348.  
  349. <!ELEMENT form:generic-control (form:properties?, office:events?)>
  350.  
  351.  
  352. <!ELEMENT form:properties (form:property+)>
  353. <!ELEMENT form:property (form:property-value*)>
  354. <!ATTLIST form:property form:property-is-list %boolean; #IMPLIED>
  355. <!ATTLIST form:property form:property-name CDATA #REQUIRED>
  356. <!ATTLIST form:property form:property-type (boolean|short|int|long|double|string)  #REQUIRED>
  357. <!ELEMENT form:property-value (#PCDATA)>
  358. <!ATTLIST form:property-value form:property-is-void %boolean; #IMPLIED>
  359.