summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmlscript/dtd/dialog.dtd57
-rw-r--r--xmlscript/source/xmldlg_imexp/xmldlg_export.cxx46
-rw-r--r--xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx24
-rw-r--r--xmlscript/source/xmldlg_imexp/xmldlg_import.cxx40
-rw-r--r--xmlscript/test/test.xml27
5 files changed, 118 insertions, 76 deletions
diff --git a/xmlscript/dtd/dialog.dtd b/xmlscript/dtd/dialog.dtd
index 4f01ebf13c88..d17a14aab244 100644
--- a/xmlscript/dtd/dialog.dtd
+++ b/xmlscript/dtd/dialog.dtd
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- $Id: dialog.dtd,v 1.3 2001-02-28 18:22:06 dbo Exp $
+ $Id: dialog.dtd,v 1.4 2001-03-01 11:22:45 dbo Exp $
The Contents of this file are made available subject to the terms of
either of the following licenses
@@ -56,29 +56,46 @@
<!ENTITY % boolean "(true|false)">
<!ENTITY % numeric "CDATA">
-<!ENTITY % date-format "(system short|system short YY|system short YYYY|system long|short DDMMYY|short MMDDYY|short YYMMDD|short DDMMYYYY|short MMDDYYYY|short YYYYMMDD|short YYMMDD DIN5008|short YYYYMMDD DIN5008)">
-<!ENTITY % time-format "(24h short|24h long|12h short|12h long|Duration short|Duration long)">
-<!ENTITY % pos "dialog:left %numeric; #REQUIRED dialog:top %numeric; #REQUIRED">
-<!ENTITY % size "dialog:width %numeric; #REQUIRED dialog:height %numeric; #REQUIRED">
-
-<!ENTITY % default-attributes "dialog:style-id CDATA #IMPLIED
- dialog:id CDATA #REQUIRED
+<!ENTITY % default-attributes "dialog:id CDATA #REQUIRED
+ dialog:left %numeric; #REQUIRED
+ dialog:top %numeric; #REQUIRED
+ dialog:width %numeric; #REQUIRED
+ dialog:height %numeric; #REQUIRED
+ dialog:style-id CDATA #IMPLIED
dialog:class-id CDATA #IMPLIED
dialog:tab-index %numeric; #IMPLIED
dialog:disabled %boolean; #IMPLIED
- %pos;
- %size;
dialog:printable %boolean; #IMPLIED
">
-<!ENTITY % control "(dialog:bulletinboard|dialog:button|dialog:checkbox|dialog:menulist|dialog:radiogroup|dialog:titledbox|dialog:textfield|dialog:text|dialog:currencyfield|dialog:filecontrol|dialog:img|dialog:datefield|dialog:numericfield|dialog:patternfield)">
+<!ENTITY % control "(dialog:bulletinboard|
+ dialog:button|
+ dialog:checkbox|
+ dialog:combobox|
+ dialog:menulist|
+ dialog:radiogroup|
+ dialog:titledbox|
+ dialog:textfield|
+ dialog:text|
+ dialog:filecontrol|
+ dialog:img|
+ dialog:timefield|
+ dialog:datefield|
+ dialog:numericfield|
+ dialog:currencyfield|
+ dialog:patternfield)
+ ">
<!ELEMENT dialog:dialogs (dialog:window*)>
<!ATTLIST dialog:dialogs xmlns:dialog CDATA #FIXED "http://openoffice.org/2000/dialog">
<!ELEMENT dialog:window (dialog:styles*, dialog:bulletinboard*)>
-<!ATTLIST dialog:window %pos; %size; dialog:value CDATA #IMPLIED>
+<!ATTLIST dialog:window dialog:left %numeric; #IMPLIED
+ dialog:top %numeric; #IMPLIED
+ dialog:width %numeric; #IMPLIED
+ dialog:height %numeric; #IMPLIED
+ dialog:title CDATA #IMPLIED>
<!ELEMENT dialog:styles (dialog:style+)>
@@ -111,10 +128,12 @@
dialog:script-type CDATA #IMPLIED
dialog:script-code CDATA #IMPLIED
dialog:param CDATA #IMPLIED
- >
+ >
-<!ELEMENT dialog:bulletinboard (%control;*)>
-<!ATTLIST dialog:bulletinboard %pos;>
+<!ELEMENT dialog:bulletinboard ((%control;)*)>
+<!ATTLIST dialog:bulletinboard dialog:left %numeric; #IMPLIED
+ dialog:top %numeric; #IMPLIED
+ >
<!ELEMENT dialog:button (dialog:event*)>
<!ATTLIST dialog:button %default-attributes;
@@ -165,7 +184,7 @@
dialog:tristate %boolean; #IMPLIED
>
-<!ELEMENT dialog:titledbox (dialog:title?, dialog:radio*, %control;*)>
+<!ELEMENT dialog:titledbox (dialog:title?, dialog:radio*, (%control;)*)>
<!ATTLIST dialog:titledbox %default-attributes;
>
<!ELEMENT dialog:title EMPTY>
@@ -224,7 +243,7 @@
dialog:tabstop %boolean; #IMPLIED
dialog:readonly %boolean; #IMPLIED
dialog:strict-format %boolean; #IMPLIED
- dialog:date-format %date-format; #IMPLIED
+ dialog:date-format (system_short|system_short_YY|system_short_YYYY|system_long|short_DDMMYY|short_MMDDYY|short_YYMMDD|short_DDMMYYYY|short_MMDDYYYY|short_YYYYMMDD|short_YYMMDD_DIN5008|short_YYYYMMDD_DIN5008) #IMPLIED
dialog:value CDATA #IMPLIED
dialog:value-min CDATA #IMPLIED
dialog:value-max CDATA #IMPLIED
@@ -250,13 +269,13 @@
dialog:tabstop %boolean; #IMPLIED
dialog:readonly %boolean; #IMPLIED
dialog:strict-format %boolean; #IMPLIED
- dialog:time-format %time-format; #IMPLIED
+ dialog:time-format (24h_short|24h_long|12h_short|12h_long|Duration_short|Duration_long) #IMPLIED
dialog:value CDATA #IMPLIED
dialog:value-min CDATA #IMPLIED
dialog:value-max CDATA #IMPLIED
dialog:spin %boolean; #IMPLIED
>
-
+
<!ELEMENT dialog:patternfield (dialog:event*)>
<!ATTLIST dialog:patternfield %default-attributes;
dialog:tabstop %boolean; #IMPLIED
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
index 6ecf61b72614..5e4a025cd2ee 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xmldlg_export.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: dbo $ $Date: 2001-02-28 18:22:07 $
+ * last change: $Author: dbo $ $Date: 2001-03-01 11:22:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -586,40 +586,40 @@ void ElementDescriptor::readDateFormatAttr( OUString const & rPropName, OUString
switch (*(sal_Int16 const *)a.getValue())
{
case 0:
- addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("system short") ) );
+ addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("system_short") ) );
break;
case 1:
- addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("system short YY") ) );
+ addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("system_short_YY") ) );
break;
case 2:
- addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("system short YYYY") ) );
+ addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("system_short_YYYY") ) );
break;
case 3:
- addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("system long") ) );
+ addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("system_long") ) );
break;
case 4:
- addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("short DDMMYY") ) );
+ addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("short_DDMMYY") ) );
break;
case 5:
- addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("short MMDDYY") ) );
+ addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("short_MMDDYY") ) );
break;
case 6:
- addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("short YYMMDD") ) );
+ addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("short_YYMMDD") ) );
break;
case 7:
- addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("short DDMMYYYY") ) );
+ addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("short_DDMMYYYY") ) );
break;
case 8:
- addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("short MMDDYYYY") ) );
+ addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("short_MMDDYYYY") ) );
break;
case 9:
- addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("short YYYYMMDD") ) );
+ addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("short_YYYYMMDD") ) );
break;
case 10:
- addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("short YYMMDD DIN5008") ) );
+ addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("short_YYMMDD_DIN5008") ) );
break;
case 11:
- addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("short YYYYMMDD DIN5008") ) );
+ addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("short_YYYYMMDD_DIN5008") ) );
break;
}
}
@@ -636,22 +636,22 @@ void ElementDescriptor::readTimeFormatAttr( OUString const & rPropName, OUString
switch (*(sal_Int16 const *)a.getValue())
{
case 0:
- addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("24h short") ) );
+ addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("24h_short") ) );
break;
case 1:
- addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("24h long") ) );
+ addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("24h_long") ) );
break;
case 2:
- addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("12h short") ) );
+ addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("12h_short") ) );
break;
case 3:
- addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("12h long") ) );
+ addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("12h_long") ) );
break;
case 4:
- addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("Duration short") ) );
+ addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("Duration_short") ) );
break;
case 5:
- addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("Duration long") ) );
+ addAttr( rAttrName, OUString( RTL_CONSTASCII_USTRINGPARAM("Duration_long") ) );
break;
}
}
@@ -1123,7 +1123,11 @@ static void exportDialogModel(
ElementDescriptor * pWindow = new ElementDescriptor( xProps, xPropState, aWindowName );
Reference< xml::sax::XAttributeList > xWindow( pWindow );
pWindow->readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Title") ),
- OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":label") ) );
+ OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":title") ) );
+ pWindow->readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("PositionX") ),
+ OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":left") ) );
+ pWindow->readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("PositionY") ),
+ OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":top") ) );
pWindow->readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Width") ),
OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":width") ) );
pWindow->readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Height") ),
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
index 3ad83d357676..6a3a601291ba 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xmldlg_impmodels.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: dbo $ $Date: 2001-02-28 18:22:07 $
+ * last change: $Author: dbo $ $Date: 2001-03-01 11:22:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1509,7 +1509,23 @@ void WindowElement::endElement()
OSL_ASSERT( xProps.is() );
OUString aValue( _xAttributes->getValueByUidName(
- XMLNS_DIALOGS_UID, OUString( RTL_CONSTASCII_USTRINGPARAM("width") ) ) );
+ XMLNS_DIALOGS_UID, OUString( RTL_CONSTASCII_USTRINGPARAM("left") ) ) );
+ if (aValue.getLength())
+ {
+ xProps->setPropertyValue(
+ OUString( RTL_CONSTASCII_USTRINGPARAM("PositionX") ),
+ makeAny( aValue.toInt32() ) );
+ }
+ aValue = _xAttributes->getValueByUidName(
+ XMLNS_DIALOGS_UID, OUString( RTL_CONSTASCII_USTRINGPARAM("top") ) );
+ if (aValue.getLength())
+ {
+ xProps->setPropertyValue(
+ OUString( RTL_CONSTASCII_USTRINGPARAM("PositionY") ),
+ makeAny( aValue.toInt32() ) );
+ }
+ aValue = _xAttributes->getValueByUidName(
+ XMLNS_DIALOGS_UID, OUString( RTL_CONSTASCII_USTRINGPARAM("width") ) );
if (aValue.getLength())
{
xProps->setPropertyValue(
@@ -1525,7 +1541,7 @@ void WindowElement::endElement()
makeAny( aValue.toInt32() ) );
}
aValue = _xAttributes->getValueByUidName(
- XMLNS_DIALOGS_UID, OUString( RTL_CONSTASCII_USTRINGPARAM("label") ) );
+ XMLNS_DIALOGS_UID, OUString( RTL_CONSTASCII_USTRINGPARAM("title") ) );
if (aValue.getLength())
{
xProps->setPropertyValue(
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx
index 108b3455e6be..04155569f325 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xmldlg_import.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: dbo $ $Date: 2001-02-28 18:22:07 $
+ * last change: $Author: dbo $ $Date: 2001-03-01 11:22:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -706,51 +706,51 @@ bool ControlImportContext::importDateFormatProperty(
if (aFormat.getLength())
{
sal_Int16 nFormat;
- if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("system short") ))
+ if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("system_short") ))
{
nFormat = 0;
}
- else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("system short YY") ))
+ else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("system_short_YY") ))
{
nFormat = 1;
}
- else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("system short YYYY") ))
+ else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("system_short_YYYY") ))
{
nFormat = 2;
}
- else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("system long") ))
+ else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("system_long") ))
{
nFormat = 3;
}
- else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("short DDMMYY") ))
+ else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("short_DDMMYY") ))
{
nFormat = 4;
}
- else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("short MMDDYY") ))
+ else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("short_MMDDYY") ))
{
nFormat = 5;
}
- else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("short YYMMDD") ))
+ else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("short_YYMMDD") ))
{
nFormat = 6;
}
- else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("short DDMMYYYY") ))
+ else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("short_DDMMYYYY") ))
{
nFormat = 7;
}
- else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("short MMDDYYYY") ))
+ else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("short_MMDDYYYY") ))
{
nFormat = 8;
}
- else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("short YYYYMMDD") ))
+ else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("short_YYYYMMDD") ))
{
nFormat = 9;
}
- else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("short YYMMDD DIN5008") ))
+ else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("short_YYMMDD_DIN5008") ))
{
nFormat = 10;
}
- else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("short YYYYMMDD DIN5008") ))
+ else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("short_YYYYMMDD_DIN5008") ))
{
nFormat = 11;
}
@@ -775,27 +775,27 @@ bool ControlImportContext::importTimeFormatProperty(
if (aFormat.getLength())
{
sal_Int16 nFormat;
- if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("24h short") ))
+ if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("24h_short") ))
{
nFormat = 0;
}
- else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("24h long") ))
+ else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("24h_long") ))
{
nFormat = 1;
}
- else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("12h short") ))
+ else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("12h_short") ))
{
nFormat = 2;
}
- else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("12h long") ))
+ else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("12h_long") ))
{
nFormat = 3;
}
- else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("Duration short") ))
+ else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("Duration_short") ))
{
nFormat = 4;
}
- else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("Duration long") ))
+ else if (aFormat.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("Duration_long") ))
{
nFormat = 5;
}
diff --git a/xmlscript/test/test.xml b/xmlscript/test/test.xml
index 9834965bde50..7a087447e92b 100644
--- a/xmlscript/test/test.xml
+++ b/xmlscript/test/test.xml
@@ -4,7 +4,7 @@
<dialogs xmlns="http://openoffice.org/2000/dialog">
<window xmlns:dlg="http://openoffice.org/2000/dialog"
- label="Test-Dialog" height="700" width="700">
+ title="Test-Dialog" left="50" top="50" height="660" width="400">
<dlg:styles>
<dlg:style style-id="bla" background-color="0xffffff" dlg:text-color="255"/>
@@ -13,6 +13,7 @@
</dlg:styles>
<dlg:bulletinboard xmlns:ns="http://www.fake">
+
<button dlg:id="button1" ns:value="hallo" dlg:left="50" ns:top="50" width="50" height="50" style-id="bla3" xmlns:ns="http://openoffice.org/2000/dialog">
<event listener-type="type" event-method="clicked" script-type="basic" script-code="code" param="testi"/>
</button>
@@ -23,14 +24,14 @@
<menulist id="list1" multiselection="true" left="50" top="400" width="100" height="100">
<menupopup>
<menuitem value="item1"/>
- <menuitem value="item2" selected="true"/>
- <menuitem value="item3" selected="true"/>
+ <menuitem value="item2 sel" selected="true"/>
+ <menuitem value="item3 sel" selected="true"/>
</menupopup>
</menulist>
<menulist id="list2" left="250" top="400" width="100" height="100">
<menupopup>
- <menuitem value="item4"/>
- <menuitem value="item5" selected="true"/>
+ <menuitem value="item4" selected="false"/>
+ <menuitem value="item5 sel" selected="true"/>
<menuitem value="item6"/>
</menupopup>
</menulist>
@@ -63,21 +64,23 @@
<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"/>
<textfield id="field2" left="320" top="520" width="50" height="40" value="hidden text" hscroll="true" echochar="*" align="left"/>
<img id="image1" left="50" top="600" width="80" height="50" src="../../test/w3c.jpg"/>
- <filecontrol id="file1" left="150" top="600" width="100" height="100" value="f:\script\xmlscript\test\w3c.jpg"/>
-<!-- <currencyfield id="currency1" left="250" top="600" 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="$"/> -->
- <numericfield id="numeric1" left="400" top="100" width="100" height="20" value="5.6075" value-min="0.5" value-max="10.0" value-step="0.1" thousands-separator="true"/>
+ <filecontrol id="file1" left="150" top="600" width="100" height="20" value="../../test/w3c.jpg"/>
</dlg:bulletinboard>
</window>
<window xmlns:dlg2="http://openoffice.org/2000/dialog"
- label="Test-Dialog2" height="100" width="200">
+ title="Test-Dialog2" left="100" top="100" height="200" width="200">
<dlg2:bulletinboard>
- <dlg2:datefield id="datefield1" left="20" top="20" width="100" height="20" date-format="short DDMMYY" spin="true"/>
- <timefield id="time1" left="20" top="50" width="100" height="20" time-format="24h short" value-min="0" value-max="12" strict-format="true" value="6" spin="true"/>
- <patternfield id="pattern1" left="20" top="70" width="100" height="20" value="pattern" strict-format="true" readonly="true"/>
+
+ <dlg2:datefield id="datefield1" left="20" top="20" width="100" height="20" date-format="short_DDMMYY" spin="true" value="20010301"/>
+ <timefield id="time1" left="20" top="50" width="100" height="20" time-format="24h_long" value-min="0" value-max="24000000" strict-format="true" value="12000000" spin="true"/>
+ <patternfield id="pattern1" left="20" top="80" width="100" height="20" value="pattern" strict-format="true" readonly="true"/>
+ <currencyfield id="currency1" left="20" top="110" 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="$"/>
+ <numericfield id="numeric1" left="20" top="140" width="100" height="20" value="5.6075" value-min="0.5" value-max="10.0" value-step="0.1" thousands-separator="true"/>
+
</dlg2:bulletinboard>
</window>