Resolves: tdf#114790 add align and vertalign to currencyfield im/export

Change-Id: Idef9a94aeefb295cd349ed0216d08bc8e2faf079
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137925
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara
2022-08-07 17:05:34 +02:00
parent 569fb42dab
commit cf2a7501fa
2 changed files with 4 additions and 0 deletions
@@ -667,6 +667,8 @@ void ElementDescriptor::readCurrencyFieldModel( 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" );
@@ -745,6 +745,8 @@ void CurrencyFieldElement::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 );