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:
@@ -751,6 +751,8 @@ void ElementDescriptor::readNumericFieldModel( StyleBag * all_styles )
|
|||||||
|
|
||||||
// collect elements
|
// collect elements
|
||||||
readDefaults();
|
readDefaults();
|
||||||
|
readAlignAttr( "Align", XMLNS_DIALOGS_PREFIX ":align" );
|
||||||
|
readVerticalAlignAttr( "VerticalAlign", XMLNS_DIALOGS_PREFIX ":valign" );
|
||||||
readBoolAttr( "Tabstop", XMLNS_DIALOGS_PREFIX ":tabstop" );
|
readBoolAttr( "Tabstop", XMLNS_DIALOGS_PREFIX ":tabstop" );
|
||||||
readBoolAttr( "ReadOnly", XMLNS_DIALOGS_PREFIX ":readonly" );
|
readBoolAttr( "ReadOnly", XMLNS_DIALOGS_PREFIX ":readonly" );
|
||||||
readBoolAttr( "HideInactiveSelection", XMLNS_DIALOGS_PREFIX ":hide-inactive-selection" );
|
readBoolAttr( "HideInactiveSelection", XMLNS_DIALOGS_PREFIX ":hide-inactive-selection" );
|
||||||
|
@@ -677,6 +677,8 @@ void NumericFieldElement::endElement()
|
|||||||
}
|
}
|
||||||
|
|
||||||
ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
|
ctx.importDefaults( _nBasePosX, _nBasePosY, _xAttributes );
|
||||||
|
ctx.importAlignProperty( "Align", "align", _xAttributes );
|
||||||
|
ctx.importVerticalAlignProperty( "VerticalAlign", "valign", _xAttributes );
|
||||||
ctx.importBooleanProperty( "Tabstop","tabstop",_xAttributes );
|
ctx.importBooleanProperty( "Tabstop","tabstop",_xAttributes );
|
||||||
ctx.importBooleanProperty( "ReadOnly", "readonly",_xAttributes );
|
ctx.importBooleanProperty( "ReadOnly", "readonly",_xAttributes );
|
||||||
ctx.importBooleanProperty( "StrictFormat", "strict-format", _xAttributes );
|
ctx.importBooleanProperty( "StrictFormat", "strict-format", _xAttributes );
|
||||||
|
Reference in New Issue
Block a user