Kaydet (Commit) a270394a authored tarafından Daniel Boelzle's avatar Daniel Boelzle

applied dialog id

üst a648581e
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Id: dialog.dtd,v 1.4 2001-03-01 11:22:45 dbo Exp $
$Id: dialog.dtd,v 1.5 2001-03-01 11:52:05 dbo Exp $
The Contents of this file are made available subject to the terms of
either of the following licenses
......@@ -91,7 +91,8 @@
<!ATTLIST dialog:dialogs xmlns:dialog CDATA #FIXED "http://openoffice.org/2000/dialog">
<!ELEMENT dialog:window (dialog:styles*, dialog:bulletinboard*)>
<!ATTLIST dialog:window dialog:left %numeric; #IMPLIED
<!ATTLIST dialog:window dialog:id CDATA #REQUIRED
dialog:left %numeric; #IMPLIED
dialog:top %numeric; #IMPLIED
dialog:width %numeric; #IMPLIED
dialog:height %numeric; #IMPLIED
......
......@@ -2,9 +2,9 @@
*
* $RCSfile: xmldlg_export.cxx,v $
*
* $Revision: 1.8 $
* $Revision: 1.9 $
*
* last change: $Author: dbo $ $Date: 2001-03-01 11:22:45 $
* last change: $Author: dbo $ $Date: 2001-03-01 11:52:05 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -1122,6 +1122,8 @@ static void exportDialogModel(
OUString aWindowName( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":window") );
ElementDescriptor * pWindow = new ElementDescriptor( xProps, xPropState, aWindowName );
Reference< xml::sax::XAttributeList > xWindow( pWindow );
pWindow->readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Name") ),
OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":id") ) );
pWindow->readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Title") ),
OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":title") ) );
pWindow->readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("PositionX") ),
......
......@@ -2,9 +2,9 @@
*
* $RCSfile: xmldlg_impmodels.cxx,v $
*
* $Revision: 1.7 $
* $Revision: 1.8 $
*
* last change: $Author: dbo $ $Date: 2001-03-01 11:22:45 $
* last change: $Author: dbo $ $Date: 2001-03-01 11:52:05 $
*
* 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("left") ) ) );
XMLNS_DIALOGS_UID, OUString( RTL_CONSTASCII_USTRINGPARAM("id") ) ) );
if (aValue.getLength())
{
xProps->setPropertyValue(
OUString( RTL_CONSTASCII_USTRINGPARAM("Name") ),
makeAny( aValue ) );
}
aValue = _xAttributes->getValueByUidName(
XMLNS_DIALOGS_UID, OUString( RTL_CONSTASCII_USTRINGPARAM("title") ) );
if (aValue.getLength())
{
xProps->setPropertyValue(
OUString( RTL_CONSTASCII_USTRINGPARAM("Title") ),
makeAny( aValue ) );
}
aValue = _xAttributes->getValueByUidName(
XMLNS_DIALOGS_UID, OUString( RTL_CONSTASCII_USTRINGPARAM("left") ) );
if (aValue.getLength())
{
xProps->setPropertyValue(
......@@ -1540,14 +1556,6 @@ void WindowElement::endElement()
OUString( RTL_CONSTASCII_USTRINGPARAM("Height") ),
makeAny( aValue.toInt32() ) );
}
aValue = _xAttributes->getValueByUidName(
XMLNS_DIALOGS_UID, OUString( RTL_CONSTASCII_USTRINGPARAM("title") ) );
if (aValue.getLength())
{
xProps->setPropertyValue(
OUString( RTL_CONSTASCII_USTRINGPARAM("Title") ),
makeAny( aValue ) );
}
}
//##################################################################################################
......
......@@ -4,7 +4,7 @@
<dialogs xmlns="http://openoffice.org/2000/dialog">
<window xmlns:dlg="http://openoffice.org/2000/dialog"
title="Test-Dialog" left="50" top="50" height="660" width="400">
id="window1" 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"/>
......@@ -71,7 +71,7 @@
</window>
<window xmlns:dlg2="http://openoffice.org/2000/dialog"
title="Test-Dialog2" left="100" top="100" height="200" width="200">
id="window2" title="Test-Dialog2" left="100" top="100" height="200" width="200">
<dlg2:bulletinboard>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment