xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx |    2 ++
 xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx |    2 ++
 2 files changed, 4 insertions(+)

New commits:
commit ffdd3c68205ddaa2d7fd895234461c02f1560e7c
Author: Oliver Specht <oliver.spe...@cib.de>
Date:   Fri Dec 18 10:32:51 2015 +0100

    tdf#80047: load&save align and valign attributes of NumericField
    
    Change-Id: Iff92f050210c112f355803d4d4bcec6b9d289a84
    Reviewed-on: https://gerrit.libreoffice.org/20788
    Reviewed-by: Oliver Specht <oliver.spe...@cib.de>
    Tested-by: Oliver Specht <oliver.spe...@cib.de>

diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx 
b/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx
index cfa7509..9bc4adf 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx
@@ -751,6 +751,8 @@ void ElementDescriptor::readNumericFieldModel( StyleBag * 
all_styles )
 
     // collect elements
     readDefaults();
+    readAlignAttr( "Align", XMLNS_DIALOGS_PREFIX ":align" );
+    readVerticalAlignAttr( "VerticalAlign", XMLNS_DIALOGS_PREFIX ":valign" );
     readBoolAttr( "Tabstop", XMLNS_DIALOGS_PREFIX ":tabstop" );
     readBoolAttr( "ReadOnly", XMLNS_DIALOGS_PREFIX ":readonly" );
     readBoolAttr( "HideInactiveSelection", XMLNS_DIALOGS_PREFIX 
":hide-inactive-selection" );
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx 
b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
index 7ca5ed4..af17a17 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
@@ -677,6 +677,8 @@ void NumericFieldElement::endElement()
     }
 
     ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
+    ctx.importAlignProperty( "Align", "align", _xAttributes );
+    ctx.importVerticalAlignProperty( "VerticalAlign", "valign", _xAttributes );
     ctx.importBooleanProperty( "Tabstop","tabstop",_xAttributes );
     ctx.importBooleanProperty( "ReadOnly", "readonly",_xAttributes );
     ctx.importBooleanProperty( "StrictFormat", "strict-format", _xAttributes );
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to