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.specht@cib.de>
Tested-by: Oliver Specht <oliver.specht@cib.de>
This commit is contained in:
Oliver Specht
2015-12-18 10:32:51 +01:00
parent f6d8dd5d68
commit ffdd3c6820
2 changed files with 4 additions and 0 deletions

View File

@@ -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" );

View File

@@ -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 );