added step, tag
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!--
|
<!--
|
||||||
$Id: dialog.dtd,v 1.6 2001-03-01 13:14:50 dbo Exp $
|
$Id: dialog.dtd,v 1.7 2001-03-07 14:57:38 dbo Exp $
|
||||||
|
|
||||||
The Contents of this file are made available subject to the terms of
|
The Contents of this file are made available subject to the terms of
|
||||||
either of the following licenses
|
either of the following licenses
|
||||||
@@ -66,6 +66,8 @@
|
|||||||
dialog:tab-index %numeric; #IMPLIED
|
dialog:tab-index %numeric; #IMPLIED
|
||||||
dialog:disabled %boolean; #IMPLIED
|
dialog:disabled %boolean; #IMPLIED
|
||||||
dialog:printable %boolean; #IMPLIED
|
dialog:printable %boolean; #IMPLIED
|
||||||
|
dialog:page %numeric; #IMPLIED
|
||||||
|
dialog:tag CDATA #IMPLIED
|
||||||
">
|
">
|
||||||
|
|
||||||
<!ENTITY % control "(dialog:bulletinboard|
|
<!ENTITY % control "(dialog:bulletinboard|
|
||||||
@@ -95,7 +97,10 @@
|
|||||||
dialog:top %numeric; #IMPLIED
|
dialog:top %numeric; #IMPLIED
|
||||||
dialog:width %numeric; #IMPLIED
|
dialog:width %numeric; #IMPLIED
|
||||||
dialog:height %numeric; #IMPLIED
|
dialog:height %numeric; #IMPLIED
|
||||||
dialog:title CDATA #IMPLIED>
|
dialog:title CDATA #IMPLIED
|
||||||
|
dialog:page %numeric; #IMPLIED
|
||||||
|
dialog:tag CDATA #IMPLIED
|
||||||
|
>
|
||||||
|
|
||||||
<!ELEMENT dialog:styles (dialog:style+)>
|
<!ELEMENT dialog:styles (dialog:style+)>
|
||||||
|
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
*
|
*
|
||||||
* $RCSfile: xmldlg_export.cxx,v $
|
* $RCSfile: xmldlg_export.cxx,v $
|
||||||
*
|
*
|
||||||
* $Revision: 1.10 $
|
* $Revision: 1.11 $
|
||||||
*
|
*
|
||||||
* last change: $Author: dbo $ $Date: 2001-03-01 13:14:51 $
|
* last change: $Author: dbo $ $Date: 2001-03-07 14:57:38 $
|
||||||
*
|
*
|
||||||
* The Contents of this file are made available subject to the terms of
|
* The Contents of this file are made available subject to the terms of
|
||||||
* either of the following licenses
|
* either of the following licenses
|
||||||
@@ -688,7 +688,7 @@ void ElementDescriptor::readDefaults()
|
|||||||
Any a( _xProps->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("Name") ) ) );
|
Any a( _xProps->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("Name") ) ) );
|
||||||
addAttr( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":id") ),
|
addAttr( OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":id") ),
|
||||||
* reinterpret_cast< const OUString * >( a.getValue() ) );
|
* reinterpret_cast< const OUString * >( a.getValue() ) );
|
||||||
readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("TabIndex") ),
|
readShortAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("TabIndex") ),
|
||||||
OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tab-index") ) );
|
OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tab-index") ) );
|
||||||
|
|
||||||
sal_Bool bEnabled;
|
sal_Bool bEnabled;
|
||||||
@@ -715,6 +715,10 @@ void ElementDescriptor::readDefaults()
|
|||||||
OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":height") ) );
|
OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":height") ) );
|
||||||
readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Printable") ),
|
readBoolAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Printable") ),
|
||||||
OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":printable") ) );
|
OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":printable") ) );
|
||||||
|
readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Step") ),
|
||||||
|
OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":page") ) );
|
||||||
|
readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tag") ),
|
||||||
|
OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tag") ) );
|
||||||
}
|
}
|
||||||
//__________________________________________________________________________________________________
|
//__________________________________________________________________________________________________
|
||||||
void ElementDescriptor::readEvents()
|
void ElementDescriptor::readEvents()
|
||||||
@@ -954,13 +958,13 @@ static void exportDialogModel(
|
|||||||
OSL_ASSERT( aServiceNames.getLength() == 1 );
|
OSL_ASSERT( aServiceNames.getLength() == 1 );
|
||||||
if (aServiceNames.getLength() != 1)
|
if (aServiceNames.getLength() != 1)
|
||||||
continue;
|
continue;
|
||||||
OUString aControlType( aServiceNames[ 0 ] );
|
OUString const & rControlType = aServiceNames.getConstArray()[ 0 ];
|
||||||
|
|
||||||
ElementDescriptor * pElem = 0;
|
ElementDescriptor * pElem = 0;
|
||||||
Reference< xml::sax::XAttributeList > xElem;
|
Reference< xml::sax::XAttributeList > xElem;
|
||||||
|
|
||||||
// group up radio buttons
|
// group up radio buttons
|
||||||
if (aControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlRadioButtonModel") ))
|
if (rControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlRadioButtonModel") ))
|
||||||
{
|
{
|
||||||
if (! pRadioGroup) // open radiogroup
|
if (! pRadioGroup) // open radiogroup
|
||||||
{
|
{
|
||||||
@@ -981,7 +985,7 @@ static void exportDialogModel(
|
|||||||
{
|
{
|
||||||
pRadioGroup = 0; // close radiogroup
|
pRadioGroup = 0; // close radiogroup
|
||||||
|
|
||||||
if (aControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlButtonModel") ))
|
if (rControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlButtonModel") ))
|
||||||
{
|
{
|
||||||
pElem = new ElementDescriptor(
|
pElem = new ElementDescriptor(
|
||||||
xProps, xPropState,
|
xProps, xPropState,
|
||||||
@@ -989,7 +993,7 @@ static void exportDialogModel(
|
|||||||
xElem = static_cast< xml::sax::XAttributeList * >( pElem );
|
xElem = static_cast< xml::sax::XAttributeList * >( pElem );
|
||||||
pElem->readButtonModel( &all_styles );
|
pElem->readButtonModel( &all_styles );
|
||||||
}
|
}
|
||||||
else if (aControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlCheckBoxModel") ))
|
else if (rControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlCheckBoxModel") ))
|
||||||
{
|
{
|
||||||
pElem = new ElementDescriptor(
|
pElem = new ElementDescriptor(
|
||||||
xProps, xPropState,
|
xProps, xPropState,
|
||||||
@@ -997,7 +1001,7 @@ static void exportDialogModel(
|
|||||||
xElem = static_cast< xml::sax::XAttributeList * >( pElem );
|
xElem = static_cast< xml::sax::XAttributeList * >( pElem );
|
||||||
pElem->readCheckBoxModel( &all_styles );
|
pElem->readCheckBoxModel( &all_styles );
|
||||||
}
|
}
|
||||||
else if (aControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlComboBoxModel") ))
|
else if (rControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlComboBoxModel") ))
|
||||||
{
|
{
|
||||||
pElem = new ElementDescriptor(
|
pElem = new ElementDescriptor(
|
||||||
xProps, xPropState,
|
xProps, xPropState,
|
||||||
@@ -1005,7 +1009,7 @@ static void exportDialogModel(
|
|||||||
xElem = static_cast< xml::sax::XAttributeList * >( pElem );
|
xElem = static_cast< xml::sax::XAttributeList * >( pElem );
|
||||||
pElem->readComboBoxModel( &all_styles );
|
pElem->readComboBoxModel( &all_styles );
|
||||||
}
|
}
|
||||||
else if (aControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlListBoxModel") ))
|
else if (rControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlListBoxModel") ))
|
||||||
{
|
{
|
||||||
pElem = new ElementDescriptor(
|
pElem = new ElementDescriptor(
|
||||||
xProps, xPropState,
|
xProps, xPropState,
|
||||||
@@ -1013,7 +1017,7 @@ static void exportDialogModel(
|
|||||||
xElem = static_cast< xml::sax::XAttributeList * >( pElem );
|
xElem = static_cast< xml::sax::XAttributeList * >( pElem );
|
||||||
pElem->readListBoxModel( &all_styles );
|
pElem->readListBoxModel( &all_styles );
|
||||||
}
|
}
|
||||||
else if (aControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlGroupBoxModel") ))
|
else if (rControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlGroupBoxModel") ))
|
||||||
{
|
{
|
||||||
pElem = new ElementDescriptor(
|
pElem = new ElementDescriptor(
|
||||||
xProps, xPropState,
|
xProps, xPropState,
|
||||||
@@ -1021,7 +1025,7 @@ static void exportDialogModel(
|
|||||||
xElem = static_cast< xml::sax::XAttributeList * >( pElem );
|
xElem = static_cast< xml::sax::XAttributeList * >( pElem );
|
||||||
pElem->readGroupBoxModel( &all_styles );
|
pElem->readGroupBoxModel( &all_styles );
|
||||||
}
|
}
|
||||||
else if (aControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlFixedTextModel") ))
|
else if (rControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlFixedTextModel") ))
|
||||||
{
|
{
|
||||||
pElem = new ElementDescriptor(
|
pElem = new ElementDescriptor(
|
||||||
xProps, xPropState,
|
xProps, xPropState,
|
||||||
@@ -1029,7 +1033,7 @@ static void exportDialogModel(
|
|||||||
xElem = static_cast< xml::sax::XAttributeList * >( pElem );
|
xElem = static_cast< xml::sax::XAttributeList * >( pElem );
|
||||||
pElem->readFixedTextModel( &all_styles );
|
pElem->readFixedTextModel( &all_styles );
|
||||||
}
|
}
|
||||||
else if (aControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlEditModel") ))
|
else if (rControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlEditModel") ))
|
||||||
{
|
{
|
||||||
pElem = new ElementDescriptor(
|
pElem = new ElementDescriptor(
|
||||||
xProps, xPropState,
|
xProps, xPropState,
|
||||||
@@ -1037,7 +1041,7 @@ static void exportDialogModel(
|
|||||||
xElem = static_cast< xml::sax::XAttributeList * >( pElem );
|
xElem = static_cast< xml::sax::XAttributeList * >( pElem );
|
||||||
pElem->readEditModel( &all_styles );
|
pElem->readEditModel( &all_styles );
|
||||||
}
|
}
|
||||||
else if (aControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlImageControlModel") ))
|
else if (rControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlImageControlModel") ))
|
||||||
{
|
{
|
||||||
pElem = new ElementDescriptor(
|
pElem = new ElementDescriptor(
|
||||||
xProps, xPropState,
|
xProps, xPropState,
|
||||||
@@ -1045,7 +1049,7 @@ static void exportDialogModel(
|
|||||||
xElem = static_cast< xml::sax::XAttributeList * >( pElem );
|
xElem = static_cast< xml::sax::XAttributeList * >( pElem );
|
||||||
pElem->readImageControlModel( &all_styles );
|
pElem->readImageControlModel( &all_styles );
|
||||||
}
|
}
|
||||||
else if (aControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlFileControlModel") ))
|
else if (rControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlFileControlModel") ))
|
||||||
{
|
{
|
||||||
pElem = new ElementDescriptor(
|
pElem = new ElementDescriptor(
|
||||||
xProps, xPropState,
|
xProps, xPropState,
|
||||||
@@ -1053,7 +1057,7 @@ static void exportDialogModel(
|
|||||||
xElem = static_cast< xml::sax::XAttributeList * >( pElem );
|
xElem = static_cast< xml::sax::XAttributeList * >( pElem );
|
||||||
pElem->readFileControlModel( &all_styles );
|
pElem->readFileControlModel( &all_styles );
|
||||||
}
|
}
|
||||||
else if (aControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlCurrencyFieldModel") ))
|
else if (rControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlCurrencyFieldModel") ))
|
||||||
{
|
{
|
||||||
pElem = new ElementDescriptor(
|
pElem = new ElementDescriptor(
|
||||||
xProps, xPropState,
|
xProps, xPropState,
|
||||||
@@ -1061,7 +1065,7 @@ static void exportDialogModel(
|
|||||||
xElem = static_cast< xml::sax::XAttributeList * >( pElem );
|
xElem = static_cast< xml::sax::XAttributeList * >( pElem );
|
||||||
pElem->readCurrencyFieldModel( &all_styles );
|
pElem->readCurrencyFieldModel( &all_styles );
|
||||||
}
|
}
|
||||||
else if (aControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlDateFieldModel") ))
|
else if (rControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlDateFieldModel") ))
|
||||||
{
|
{
|
||||||
pElem = new ElementDescriptor(
|
pElem = new ElementDescriptor(
|
||||||
xProps, xPropState,
|
xProps, xPropState,
|
||||||
@@ -1069,7 +1073,7 @@ static void exportDialogModel(
|
|||||||
xElem = static_cast< xml::sax::XAttributeList * >( pElem );
|
xElem = static_cast< xml::sax::XAttributeList * >( pElem );
|
||||||
pElem->readDateFieldModel( &all_styles );
|
pElem->readDateFieldModel( &all_styles );
|
||||||
}
|
}
|
||||||
else if (aControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlNumericFieldModel") ))
|
else if (rControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlNumericFieldModel") ))
|
||||||
{
|
{
|
||||||
pElem = new ElementDescriptor(
|
pElem = new ElementDescriptor(
|
||||||
xProps, xPropState,
|
xProps, xPropState,
|
||||||
@@ -1077,7 +1081,7 @@ static void exportDialogModel(
|
|||||||
xElem = static_cast< xml::sax::XAttributeList * >( pElem );
|
xElem = static_cast< xml::sax::XAttributeList * >( pElem );
|
||||||
pElem->readNumericFieldModel( &all_styles );
|
pElem->readNumericFieldModel( &all_styles );
|
||||||
}
|
}
|
||||||
else if (aControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlTimeFieldModel") ))
|
else if (rControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlTimeFieldModel") ))
|
||||||
{
|
{
|
||||||
pElem = new ElementDescriptor(
|
pElem = new ElementDescriptor(
|
||||||
xProps, xPropState,
|
xProps, xPropState,
|
||||||
@@ -1085,7 +1089,7 @@ static void exportDialogModel(
|
|||||||
xElem = static_cast< xml::sax::XAttributeList * >( pElem );
|
xElem = static_cast< xml::sax::XAttributeList * >( pElem );
|
||||||
pElem->readTimeFieldModel( &all_styles );
|
pElem->readTimeFieldModel( &all_styles );
|
||||||
}
|
}
|
||||||
else if (aControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlPatternFieldModel") ))
|
else if (rControlType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("com.sun.star.awt.UnoControlPatternFieldModel") ))
|
||||||
{
|
{
|
||||||
pElem = new ElementDescriptor(
|
pElem = new ElementDescriptor(
|
||||||
xProps, xPropState,
|
xProps, xPropState,
|
||||||
@@ -1103,7 +1107,7 @@ static void exportDialogModel(
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
throw RuntimeException(
|
throw RuntimeException(
|
||||||
OUString( RTL_CONSTASCII_USTRINGPARAM("unknown control type: ") ) + aControlType,
|
OUString( RTL_CONSTASCII_USTRINGPARAM("unknown control type: ") ) + rControlType,
|
||||||
Reference< XInterface >() );
|
Reference< XInterface >() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1132,6 +1136,10 @@ static void exportDialogModel(
|
|||||||
OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":width") ) );
|
OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":width") ) );
|
||||||
pWindow->readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Height") ),
|
pWindow->readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Height") ),
|
||||||
OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":height") ) );
|
OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":height") ) );
|
||||||
|
pWindow->readLongAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Step") ),
|
||||||
|
OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":page") ) );
|
||||||
|
pWindow->readStringAttr( OUString( RTL_CONSTASCII_USTRINGPARAM("Tag") ),
|
||||||
|
OUString( RTL_CONSTASCII_USTRINGPARAM(XMLNS_DIALOGS_PREFIX ":tag") ) );
|
||||||
xOut->ignorableWhitespace( OUString() );
|
xOut->ignorableWhitespace( OUString() );
|
||||||
xOut->startElement( aWindowName, xWindow );
|
xOut->startElement( aWindowName, xWindow );
|
||||||
|
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
*
|
*
|
||||||
* $RCSfile: xmldlg_impmodels.cxx,v $
|
* $RCSfile: xmldlg_impmodels.cxx,v $
|
||||||
*
|
*
|
||||||
* $Revision: 1.9 $
|
* $Revision: 1.10 $
|
||||||
*
|
*
|
||||||
* last change: $Author: ab $ $Date: 2001-03-02 15:56:48 $
|
* last change: $Author: dbo $ $Date: 2001-03-07 14:57:38 $
|
||||||
*
|
*
|
||||||
* The Contents of this file are made available subject to the terms of
|
* The Contents of this file are made available subject to the terms of
|
||||||
* either of the following licenses
|
* either of the following licenses
|
||||||
@@ -1528,37 +1528,50 @@ void WindowElement::endElement()
|
|||||||
OUString( RTL_CONSTASCII_USTRINGPARAM("Title") ),
|
OUString( RTL_CONSTASCII_USTRINGPARAM("Title") ),
|
||||||
makeAny( aValue ) );
|
makeAny( aValue ) );
|
||||||
}
|
}
|
||||||
aValue = _xAttributes->getValueByUidName(
|
|
||||||
XMLNS_DIALOGS_UID, OUString( RTL_CONSTASCII_USTRINGPARAM("left") ) );
|
sal_Int32 nLong;
|
||||||
if (aValue.getLength())
|
|
||||||
|
if (getLongAttr( &nLong, OUString( RTL_CONSTASCII_USTRINGPARAM("left") ), _xAttributes ))
|
||||||
{
|
{
|
||||||
xProps->setPropertyValue(
|
xProps->setPropertyValue(
|
||||||
OUString( RTL_CONSTASCII_USTRINGPARAM("PositionX") ),
|
OUString( RTL_CONSTASCII_USTRINGPARAM("PositionX") ),
|
||||||
makeAny( aValue.toInt32() ) );
|
makeAny( nLong ) );
|
||||||
}
|
}
|
||||||
aValue = _xAttributes->getValueByUidName(
|
if (getLongAttr( &nLong, OUString( RTL_CONSTASCII_USTRINGPARAM("top") ), _xAttributes ))
|
||||||
XMLNS_DIALOGS_UID, OUString( RTL_CONSTASCII_USTRINGPARAM("top") ) );
|
|
||||||
if (aValue.getLength())
|
|
||||||
{
|
{
|
||||||
xProps->setPropertyValue(
|
xProps->setPropertyValue(
|
||||||
OUString( RTL_CONSTASCII_USTRINGPARAM("PositionY") ),
|
OUString( RTL_CONSTASCII_USTRINGPARAM("PositionY") ),
|
||||||
makeAny( aValue.toInt32() ) );
|
makeAny( nLong ) );
|
||||||
}
|
}
|
||||||
aValue = _xAttributes->getValueByUidName(
|
if (getLongAttr( &nLong, OUString( RTL_CONSTASCII_USTRINGPARAM("width") ), _xAttributes ))
|
||||||
XMLNS_DIALOGS_UID, OUString( RTL_CONSTASCII_USTRINGPARAM("width") ) );
|
|
||||||
if (aValue.getLength())
|
|
||||||
{
|
{
|
||||||
xProps->setPropertyValue(
|
xProps->setPropertyValue(
|
||||||
OUString( RTL_CONSTASCII_USTRINGPARAM("Width") ),
|
OUString( RTL_CONSTASCII_USTRINGPARAM("Width") ),
|
||||||
makeAny( aValue.toInt32() ) );
|
makeAny( nLong ) );
|
||||||
}
|
}
|
||||||
aValue = _xAttributes->getValueByUidName(
|
if (getLongAttr( &nLong, OUString( RTL_CONSTASCII_USTRINGPARAM("height") ), _xAttributes ))
|
||||||
XMLNS_DIALOGS_UID, OUString( RTL_CONSTASCII_USTRINGPARAM("height") ) );
|
|
||||||
if (aValue.getLength())
|
|
||||||
{
|
{
|
||||||
xProps->setPropertyValue(
|
xProps->setPropertyValue(
|
||||||
OUString( RTL_CONSTASCII_USTRINGPARAM("Height") ),
|
OUString( RTL_CONSTASCII_USTRINGPARAM("Height") ),
|
||||||
makeAny( aValue.toInt32() ) );
|
makeAny( nLong ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
if (! getLongAttr( &nLong, OUString( RTL_CONSTASCII_USTRINGPARAM("page") ), _xAttributes ))
|
||||||
|
{
|
||||||
|
nLong = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
xProps->setPropertyValue(
|
||||||
|
OUString( RTL_CONSTASCII_USTRINGPARAM("Step") ),
|
||||||
|
makeAny( nLong ) );
|
||||||
|
|
||||||
|
aValue = _xAttributes->getValueByUidName(
|
||||||
|
XMLNS_DIALOGS_UID, OUString( RTL_CONSTASCII_USTRINGPARAM("tag") ) );
|
||||||
|
if (aValue.getLength())
|
||||||
|
{
|
||||||
|
xProps->setPropertyValue(
|
||||||
|
OUString( RTL_CONSTASCII_USTRINGPARAM("Tag") ),
|
||||||
|
makeAny( aValue ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
*
|
*
|
||||||
* $RCSfile: xmldlg_import.cxx,v $
|
* $RCSfile: xmldlg_import.cxx,v $
|
||||||
*
|
*
|
||||||
* $Revision: 1.8 $
|
* $Revision: 1.9 $
|
||||||
*
|
*
|
||||||
* last change: $Author: dbo $ $Date: 2001-03-01 13:14:51 $
|
* last change: $Author: dbo $ $Date: 2001-03-07 14:57:38 $
|
||||||
*
|
*
|
||||||
* The Contents of this file are made available subject to the terms of
|
* The Contents of this file are made available subject to the terms of
|
||||||
* either of the following licenses
|
* either of the following licenses
|
||||||
@@ -820,7 +820,7 @@ void ControlImportContext::importDefaults(
|
|||||||
OUString( RTL_CONSTASCII_USTRINGPARAM("Name") ),
|
OUString( RTL_CONSTASCII_USTRINGPARAM("Name") ),
|
||||||
makeAny( _aId ) );
|
makeAny( _aId ) );
|
||||||
|
|
||||||
importLongProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("TabIndex") ),
|
importShortProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("TabIndex") ),
|
||||||
OUString( RTL_CONSTASCII_USTRINGPARAM("tab-index") ),
|
OUString( RTL_CONSTASCII_USTRINGPARAM("tab-index") ),
|
||||||
xAttributes );
|
xAttributes );
|
||||||
|
|
||||||
@@ -855,6 +855,19 @@ void ControlImportContext::importDefaults(
|
|||||||
importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Printable") ),
|
importBooleanProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Printable") ),
|
||||||
OUString( RTL_CONSTASCII_USTRINGPARAM("printable") ),
|
OUString( RTL_CONSTASCII_USTRINGPARAM("printable") ),
|
||||||
xAttributes );
|
xAttributes );
|
||||||
|
|
||||||
|
sal_Int32 nLong;
|
||||||
|
if (! getLongAttr( &nLong, OUString( RTL_CONSTASCII_USTRINGPARAM("page") ), xAttributes ))
|
||||||
|
{
|
||||||
|
nLong = 0;
|
||||||
|
}
|
||||||
|
_xControlModel->setPropertyValue(
|
||||||
|
OUString( RTL_CONSTASCII_USTRINGPARAM("Step") ),
|
||||||
|
makeAny( nLong ) );
|
||||||
|
|
||||||
|
importStringProperty( OUString( RTL_CONSTASCII_USTRINGPARAM("Tag") ),
|
||||||
|
OUString( RTL_CONSTASCII_USTRINGPARAM("tag") ),
|
||||||
|
xAttributes );
|
||||||
}
|
}
|
||||||
//__________________________________________________________________________________________________
|
//__________________________________________________________________________________________________
|
||||||
void ControlImportContext::importEvents(
|
void ControlImportContext::importEvents(
|
||||||
|
Reference in New Issue
Block a user