merge the formfield patch from ooo-build
[ooovba.git] / xmlscript / test / test.xml
blob41d45827a6fc9030d2b1e25b605a5feafacc39fc
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE dialog:dialogs SYSTEM "../dtd/dialog.dtd">
4 <window xmlns="http://openoffice.org/2000/dialog"
5     xmlns:dlg="http://openoffice.org/2000/dialog"
6     xmlns:script="http://openoffice.org/2000/script"
7     style-id="dialog"
8     id="window1" title="Test-Dialog" left="50" top="50" height="690" width="400"
9     closeable="true" moveable="true" resizeable="true" disabled="false"
11     
12     <script:event script:event-name="on-rowchange" script:macro-name="ExecutingMacro" script:location="application" script:language="StarBasic"/>
13             
14     <dlg:styles xmlns:dlg="http://openoffice.org/2000/dialog">
15         <dlg:style style-id="bla" background-color="0xffffff" dlg:text-color="255" dlg:textline-color="0xff0000" dlg:font-underline="single"/>
16         <dlg:style style-id="bla3" background-color="888888" dlg:text-color="0xffffff" font-name="Arial" font-height="24" font-relief="embossed" font-emphasismark="dot"/>
17         <dlg:style style-id="no_border" border="none" fill-color="0xff"/>
18         <dlg:style style-id="dialog" border="3d" dlg:text-color="255" dlg:textline-color="0xff0000"/>
19     </dlg:styles>
20     
21     <dlg:bulletinboard xmlns:ns="http://www.fake" xmlns:dlg="http://openoffice.org/2000/dialog">
22     
23         <button dlg:id="button1" ns:value="hallo" dlg:left="50" ns:top="50" ns:checked="true" width="50" height="50" style-id="bla3" xmlns:ns="http://openoffice.org/2000/dialog">
24             <dlg:event listener-type="com.sun.star.awt.XKeyListener" event-method="keyReleased" script-type="StarBasic" script-code="application:ExecutingMacro"/>
25             <script:event script:event-name="on-rowchange" script:macro-name="ExecutingMacro" script:location="application" script:language="StarBasic"/>
26             <script:listener-event script:macro-name="ExecutingMacro" script:location="application" script:language="StarBasic" script:listener-type="com.sun.star.awt.XMouseListener" script:listener-method="mouseEntered"/>
27             <script:listener-event script:macro-name="ExecutingMacro" script:location="application" script:language="StarBasic" script:listener-type="com.sun.star.awt.XMouseListener" script:listener-method="mousePressed" script:listener-param="parameter0, so this will never ever be a script:event, but always a script:listener-event element!"/>
28         </button>
29         
30         <button dlg:id="button3" dlg:image-src="file:///f|src641/xmlscript/test/w3c.jpg" dlg:image-align="right" ns:value="help button" dlg:left="250" ns:top="50" width="50" height="50" style-id="bla" button-type="help" xmlns:ns="http://openoffice.org/2000/dialog"/>
31         
32         <checkbox id="check1" help-text="helphelphelp!!!" help-url="http://www.xml.org" value="checked" left="50" top="150" width="100" height="20" checked="true"/>
33         <checkbox id="check2" value="dontknow" left="50" top="170" width="100" height="20" tristate="true"/>
34         <checkbox id="check3" value="tristate_checked" left="50" top="190" width="100" height="20" checked="true" tristate="true"/>
35         
36         <menulist id="list1" multiselection="true" left="50" top="400" width="100" height="100">
37             <menupopup>
38                 <menuitem value="item1"/>
39                 <menuitem value="item2 sel" selected="true"/>
40                 <menuitem value="item3 sel" selected="true"/>
41             </menupopup>
42         </menulist>
43         
44         <dlg:menulist id="list2" left="250" top="400" width="100" height="100">
45             <menupopup>
46                 <menuitem value="item4" selected="false"/>
47                 <menuitem value="item5 sel" selected="true"/>
48                 <menuitem value="item6"/>
49             </menupopup>
50         </dlg:menulist>
51         
52         <combobox id="combo1" value="combotext1" left="250" top="150" width="50" height="50">
53             <menupopup>
54                 <menuitem value="Citem1"/>
55                 <menuitem value="Citem2"/>
56             </menupopup>
57         </combobox>
58         
59         <combobox id="combo2" value="combotext2" left="310" top="150" width="50" height="50" spin="true">
60             <menupopup>
61                 <menuitem value="Citem3"/>
62                 <menuitem value="Citem4"/>
63             </menupopup>
64         </combobox>
65         
66         <radiogroup>
67             <radio id="radio1" value="default radio" left="50" top="250" width="100" height="20"/>
68             <radio id="radio2" value="checked" left="50" top="270" width="100" height="20" checked="true"/>
69             <radio id="radio3" value="unchecked" left="50" top="290" width="100" height="20" checked="false"/>
70         </radiogroup>
71         
72         <titledbox id="groupbox1" left="250" top="250" width="120" height="100">
73             <script:listener-event script:macro-name="ExecutingMacro" script:location="application" script:language="StarBasic" script:listener-type="com.sun.star.awt.XMouseListener" script:listener-method="mouseEntered"/>
74             <title value="grouped"/>
75             <radio id="radio5" value="default radio" left="5" top="15" width="100" height="20"/>
76             <radio id="radio7" value="unchecked" left="5" top="35" width="100" height="20" checked="false"/>
77             <radio id="radio8" value="checked" left="5" top="55" width="100" height="20" checked="true"/>
78         </titledbox>
79         
80         <text id="fixed1" left="50" top="520" width="180" height="20" value="fixed text is here..." multiline="true" align="center">
81             <script:listener-event script:macro-name="ExecutingMacro" script:location="application" script:language="StarBasic" script:listener-type="com.sun.star.awt.XMouseListener" script:listener-method="mouseEntered"/>
82         </text>
83         <textfield id="field1" left="250" top="520" width="50" height="40" value="edit no text here..." readonly="true" vscroll="true" multiline="true" align="right" style-id="no_border"/>
84         <textfield id="field2" left="320" top="520" width="50" height="40" value="hidden text" hscroll="true" echochar="*" align="left"/>
85         <img id="image1" scale-image="true" left="50" top="585" width="80" height="20" src="file:///f|src641/xmlscript/test/w3c.jpg">
86             <script:listener-event script:macro-name="ExecutingMacro" script:location="application" script:language="StarBasic" script:listener-type="com.sun.star.awt.XMouseListener" script:listener-method="mouseEntered"/>
87         </img>
88         <filecontrol id="file1" left="150" top="585" width="100" height="20" value="../../test/w3c.jpg"/>
90         <datefield id="datefield1" left="20" top="610" width="100" height="20" show-century="false" date-format="short_DDMMYY" spin="true" value="20010301"/>
91         <timefield id="time1" left="20" top="635" width="100" height="20" time-format="24h_long" value-min="0" value-max="24000000" strict-format="true" value="12000000" spin="true"/>
92         <patternfield id="pattern1" maxlength="4" left="20" top="0" width="100" height="20" value="pattern" strict-format="true" readonly="true"/>
93         <currencyfield id="currency1" left="200" top="610" width="100" height="20" value="5.6075" value-min="0.5" value-max="10.0" value-step="0.1" spin="true" thousands-separator="true" currency-symbol="$" prepend-symbol="true"/>
94              <numericfield id="numeric1" left="200" top="635" width="100" height="20" value="5.6075" value-min="0.5" value-max="10.0" value-step="0.1" thousands-separator="true"/>
95              <fixedline style-id="bla3" id="fixedline1" left="20" top="660" width="150" height="20" value="FixedLineLabel" align="horizontal"/>
96              <progressmeter style-id="no_border" id="progress1" left="200" top="660" width="80" height="20" align="horizontal" value="50" value-min="0" value-max="80"/>
97              <scrollbar style-id="dialog" id="scrollbar1" left="300" top="660" width="80" height="20" align="horizontal" curpos="50" maxpos="200" increment="1" pageincrement="10"/>
98         
99         <formattedfield style-id="dialog" treat-as-number="true" id="ffield0" left="20" top="110" width="80" height="20" align="center" text="first ffield"
100                         dlg:value-max="750" dlg:value-min="0" dlg:value="2" spin="true"/>
101         <formattedfield style-id="dialog" id="ffield1" left="250" top="110" width="80" height="20" align="center" text="second ffield"
102                         dlg:format-code="[$$-409]#.##0,00;[ROT]-[$$-409]#.##0,00" dlg:format-locale="de;DE;WIN" dlg:value-max="750" dlg:value-min="0" dlg:value="4" spin="true"/>
104     </dlg:bulletinboard>
106 </window>