diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2022-08-07 22:04:26 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2022-08-08 07:23:59 +0200 |
commit | 7b204ecb49563544ee9c811dbcbee998062bf511 (patch) | |
tree | 97efb223ef4c35ceebfc839e91be54249bc7f5fc /xmlscript | |
parent | a56705efdbe9ceb0f5bb92d1d8bb2cefbc03f3ac (diff) |
Related tdf#114790: add align and vertalign to datefield im/export
Change-Id: I2661e0c372fbb3c364ac338f23ebbd5b1a448ff0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137936
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
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 01328f68050b..823df0e9ac1b 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx @@ -709,6 +709,8 @@ void ElementDescriptor::readDateFieldModel( 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 4c7f9642f06e..bea460715789 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx @@ -691,6 +691,8 @@ void DateFieldElement::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 ); |