diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-08-07 15:17:22 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-08-07 17:05:34 +0200 |
commit | cf2a7501fa1848fdccd9717f52f18d0f44db458b (patch) | |
tree | d67b25b9d122523aa0b7014d957ee6d580018f7f /xmlscript | |
parent | 569fb42dab88cc9e1a392271a34879afa9d7cc5b (diff) |
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>
Diffstat (limited to 'xmlscript')
-rw-r--r-- | xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx | 2 | ||||
-rw-r--r-- | xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx index 1ab4d3d21cce..01328f68050b 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx @@ -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" ); diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx index e74e35ece9e2..4c7f9642f06e 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx @@ -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 ); |