xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx | 1 + xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx | 8 ++------ 2 files changed, 3 insertions(+), 6 deletions(-)
New commits: commit ff26f022b36002c4f3ad426d8f37313e2651ae75 Author: Michael Stahl <[email protected]> Date: Thu Feb 5 17:32:36 2015 +0100 xmlscript: fix import/export of dialog radio-buttons The BASIC dialog format is not specified by ODF anyway, so the change was particularly stupid. (regression from 2d4b87f0c1bfd97185a89c18d5b7680d11a958d6) Change-Id: I5b20d690093b0d2b898f3e45cc0292fb72fbb353 diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx index 066cfd3..dc5d0b7 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx @@ -419,6 +419,7 @@ void ElementDescriptor::readRadioButtonModel( StyleBag * all_styles ) readImageURLAttr( "ImageURL", XMLNS_DIALOGS_PREFIX ":image-src" ); readImagePositionAttr( "ImagePosition", XMLNS_DIALOGS_PREFIX ":image-position" ); readBoolAttr( "MultiLine", XMLNS_DIALOGS_PREFIX ":multiline" ); + readStringAttr( "GroupName", XMLNS_DIALOGS_PREFIX ":group-name" ); sal_Int16 nState = 0; if (readProp( "State" ) >>= nState) diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx index c1e8a39..6f2c6ea 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx @@ -1178,9 +1178,7 @@ void TitledBoxElement::endElement() ctx.importImageURLProperty( "ImageURL" , "image-src" , _xAttributes ); ctx.importImagePositionProperty( "ImagePosition", "image-position", xAttributes ); ctx.importBooleanProperty( "MultiLine", "multiline", xAttributes ); - // map invalid "group-name" attribute to "name" - // (since radio buttons are grouped by name) - ctx.importStringProperty( "Name", "group-name", xAttributes ); + ctx.importStringProperty( "GroupName", "group-name", xAttributes ); sal_Int16 nVal = 0; sal_Bool bChecked = sal_False; @@ -1275,9 +1273,7 @@ void RadioGroupElement::endElement() ctx.importImageURLProperty( "ImageURL" , "image-src" , xAttributes ); ctx.importImagePositionProperty( "ImagePosition", "image-position", xAttributes ); ctx.importBooleanProperty( "MultiLine", "multiline", xAttributes ); - // map invalid "group-name" attribute to "name" - // (since radio buttons are grouped by name) - ctx.importStringProperty( "Name", "group-name", xAttributes ); + ctx.importStringProperty( "GroupName", "group-name", xAttributes ); sal_Int16 nVal = 0; sal_Bool bChecked = sal_False; if (getBoolAttr( &bChecked, "checked", xAttributes, _pImport->XMLNS_DIALOGS_UID ) && bChecked) _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
