xref: /trunk/main/xmlscript/test/test.xml (revision 10544477)
1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2cdf0e10cSrcweir<!DOCTYPE dialog:dialogs SYSTEM "../dtd/dialog.dtd">
3*10544477SAndre Fischer<!--***********************************************************
4*10544477SAndre Fischer *
5*10544477SAndre Fischer * Licensed to the Apache Software Foundation (ASF) under one
6*10544477SAndre Fischer * or more contributor license agreements.  See the NOTICE file
7*10544477SAndre Fischer * distributed with this work for additional information
8*10544477SAndre Fischer * regarding copyright ownership.  The ASF licenses this file
9*10544477SAndre Fischer * to you under the Apache License, Version 2.0 (the
10*10544477SAndre Fischer * "License"); you may not use this file except in compliance
11*10544477SAndre Fischer * with the License.  You may obtain a copy of the License at
12*10544477SAndre Fischer *
13*10544477SAndre Fischer *   http://www.apache.org/licenses/LICENSE-2.0
14*10544477SAndre Fischer *
15*10544477SAndre Fischer * Unless required by applicable law or agreed to in writing,
16*10544477SAndre Fischer * software distributed under the License is distributed on an
17*10544477SAndre Fischer * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18*10544477SAndre Fischer * KIND, either express or implied.  See the License for the
19*10544477SAndre Fischer * specific language governing permissions and limitations
20*10544477SAndre Fischer * under the License.
21*10544477SAndre Fischer *
22*10544477SAndre Fischer ***********************************************************-->
23cdf0e10cSrcweir
24cdf0e10cSrcweir<window xmlns="http://openoffice.org/2000/dialog"
25cdf0e10cSrcweir	xmlns:dlg="http://openoffice.org/2000/dialog"
26cdf0e10cSrcweir	xmlns:script="http://openoffice.org/2000/script"
27cdf0e10cSrcweir	style-id="dialog"
28cdf0e10cSrcweir	id="window1" title="Test-Dialog" left="50" top="50" height="690" width="400"
29cdf0e10cSrcweir	closeable="true" moveable="true" resizeable="true" disabled="false"
30cdf0e10cSrcweir>
31cdf0e10cSrcweir
32cdf0e10cSrcweir	<script:event script:event-name="on-rowchange" script:macro-name="ExecutingMacro" script:location="application" script:language="StarBasic"/>
33cdf0e10cSrcweir
34cdf0e10cSrcweir	<dlg:styles xmlns:dlg="http://openoffice.org/2000/dialog">
35cdf0e10cSrcweir		<dlg:style style-id="bla" background-color="0xffffff" dlg:text-color="255" dlg:textline-color="0xff0000" dlg:font-underline="single"/>
36cdf0e10cSrcweir		<dlg:style style-id="bla3" background-color="888888" dlg:text-color="0xffffff" font-name="Arial" font-height="24" font-relief="embossed" font-emphasismark="dot"/>
37cdf0e10cSrcweir		<dlg:style style-id="no_border" border="none" fill-color="0xff"/>
38cdf0e10cSrcweir		<dlg:style style-id="dialog" border="3d" dlg:text-color="255" dlg:textline-color="0xff0000"/>
39cdf0e10cSrcweir	</dlg:styles>
40cdf0e10cSrcweir
41cdf0e10cSrcweir	<dlg:bulletinboard xmlns:ns="http://www.fake" xmlns:dlg="http://openoffice.org/2000/dialog">
42cdf0e10cSrcweir
43cdf0e10cSrcweir		<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">
44cdf0e10cSrcweir			<dlg:event listener-type="com.sun.star.awt.XKeyListener" event-method="keyReleased" script-type="StarBasic" script-code="application:ExecutingMacro"/>
45cdf0e10cSrcweir			<script:event script:event-name="on-rowchange" script:macro-name="ExecutingMacro" script:location="application" script:language="StarBasic"/>
46cdf0e10cSrcweir			<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"/>
47cdf0e10cSrcweir			<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!"/>
48cdf0e10cSrcweir		</button>
49cdf0e10cSrcweir
50cdf0e10cSrcweir		<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"/>
51cdf0e10cSrcweir
52cdf0e10cSrcweir		<checkbox id="check1" help-text="helphelphelp!!!" help-url="http://www.xml.org" value="checked" left="50" top="150" width="100" height="20" checked="true"/>
53cdf0e10cSrcweir		<checkbox id="check2" value="dontknow" left="50" top="170" width="100" height="20" tristate="true"/>
54cdf0e10cSrcweir		<checkbox id="check3" value="tristate_checked" left="50" top="190" width="100" height="20" checked="true" tristate="true"/>
55cdf0e10cSrcweir
56cdf0e10cSrcweir		<menulist id="list1" multiselection="true" left="50" top="400" width="100" height="100">
57cdf0e10cSrcweir			<menupopup>
58cdf0e10cSrcweir				<menuitem value="item1"/>
59cdf0e10cSrcweir				<menuitem value="item2 sel" selected="true"/>
60cdf0e10cSrcweir				<menuitem value="item3 sel" selected="true"/>
61cdf0e10cSrcweir			</menupopup>
62cdf0e10cSrcweir		</menulist>
63cdf0e10cSrcweir
64cdf0e10cSrcweir		<dlg:menulist id="list2" left="250" top="400" width="100" height="100">
65cdf0e10cSrcweir			<menupopup>
66cdf0e10cSrcweir				<menuitem value="item4" selected="false"/>
67cdf0e10cSrcweir				<menuitem value="item5 sel" selected="true"/>
68cdf0e10cSrcweir				<menuitem value="item6"/>
69cdf0e10cSrcweir			</menupopup>
70cdf0e10cSrcweir		</dlg:menulist>
71cdf0e10cSrcweir
72cdf0e10cSrcweir		<combobox id="combo1" value="combotext1" left="250" top="150" width="50" height="50">
73cdf0e10cSrcweir			<menupopup>
74cdf0e10cSrcweir				<menuitem value="Citem1"/>
75cdf0e10cSrcweir				<menuitem value="Citem2"/>
76cdf0e10cSrcweir			</menupopup>
77cdf0e10cSrcweir		</combobox>
78cdf0e10cSrcweir
79cdf0e10cSrcweir		<combobox id="combo2" value="combotext2" left="310" top="150" width="50" height="50" spin="true">
80cdf0e10cSrcweir			<menupopup>
81cdf0e10cSrcweir				<menuitem value="Citem3"/>
82cdf0e10cSrcweir				<menuitem value="Citem4"/>
83cdf0e10cSrcweir			</menupopup>
84cdf0e10cSrcweir		</combobox>
85cdf0e10cSrcweir
86cdf0e10cSrcweir		<radiogroup>
87cdf0e10cSrcweir			<radio id="radio1" value="default radio" left="50" top="250" width="100" height="20"/>
88cdf0e10cSrcweir			<radio id="radio2" value="checked" left="50" top="270" width="100" height="20" checked="true"/>
89cdf0e10cSrcweir			<radio id="radio3" value="unchecked" left="50" top="290" width="100" height="20" checked="false"/>
90cdf0e10cSrcweir		</radiogroup>
91cdf0e10cSrcweir
92cdf0e10cSrcweir		<titledbox id="groupbox1" left="250" top="250" width="120" height="100">
93cdf0e10cSrcweir			<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"/>
94cdf0e10cSrcweir			<title value="grouped"/>
95cdf0e10cSrcweir			<radio id="radio5" value="default radio" left="5" top="15" width="100" height="20"/>
96cdf0e10cSrcweir			<radio id="radio7" value="unchecked" left="5" top="35" width="100" height="20" checked="false"/>
97cdf0e10cSrcweir			<radio id="radio8" value="checked" left="5" top="55" width="100" height="20" checked="true"/>
98cdf0e10cSrcweir		</titledbox>
99cdf0e10cSrcweir
100cdf0e10cSrcweir		<text id="fixed1" left="50" top="520" width="180" height="20" value="fixed text is here..." multiline="true" align="center">
101cdf0e10cSrcweir			<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"/>
102cdf0e10cSrcweir		</text>
103cdf0e10cSrcweir		<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"/>
104cdf0e10cSrcweir		<textfield id="field2" left="320" top="520" width="50" height="40" value="hidden text" hscroll="true" echochar="*" align="left"/>
105cdf0e10cSrcweir		<img id="image1" scale-image="true" left="50" top="585" width="80" height="20" src="file:///f|src641/xmlscript/test/w3c.jpg">
106cdf0e10cSrcweir			<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"/>
107cdf0e10cSrcweir		</img>
108cdf0e10cSrcweir		<filecontrol id="file1" left="150" top="585" width="100" height="20" value="../../test/w3c.jpg"/>
109cdf0e10cSrcweir
110cdf0e10cSrcweir		<datefield id="datefield1" left="20" top="610" width="100" height="20" show-century="false" date-format="short_DDMMYY" spin="true" value="20010301"/>
111cdf0e10cSrcweir		<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"/>
112cdf0e10cSrcweir		<patternfield id="pattern1" maxlength="4" left="20" top="0" width="100" height="20" value="pattern" strict-format="true" readonly="true"/>
113cdf0e10cSrcweir		<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"/>
114cdf0e10cSrcweir	     	<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"/>
115cdf0e10cSrcweir	     	<fixedline style-id="bla3" id="fixedline1" left="20" top="660" width="150" height="20" value="FixedLineLabel" align="horizontal"/>
116cdf0e10cSrcweir	     	<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"/>
117cdf0e10cSrcweir	     	<scrollbar style-id="dialog" id="scrollbar1" left="300" top="660" width="80" height="20" align="horizontal" curpos="50" maxpos="200" increment="1" pageincrement="10"/>
118cdf0e10cSrcweir
119cdf0e10cSrcweir		<formattedfield style-id="dialog" treat-as-number="true" id="ffield0" left="20" top="110" width="80" height="20" align="center" text="first ffield"
120cdf0e10cSrcweir		                dlg:value-max="750" dlg:value-min="0" dlg:value="2" spin="true"/>
121cdf0e10cSrcweir		<formattedfield style-id="dialog" id="ffield1" left="250" top="110" width="80" height="20" align="center" text="second ffield"
122cdf0e10cSrcweir		                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"/>
123cdf0e10cSrcweir
124cdf0e10cSrcweir	</dlg:bulletinboard>
125cdf0e10cSrcweir
126cdf0e10cSrcweir</window>
127