diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2015-02-05 21:34:52 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2015-02-05 21:45:27 +0100 |
commit | e57febdb7fbe34d6548f780336cf9ee4a729cb5c (patch) | |
tree | dd58a3266a755469c3fa6b2caa96b74c2bb815cd /xmlscript | |
parent | destructors are not allowed to throw (diff) | |
download | core-e57febdb7fbe34d6548f780336cf9ee4a729cb5c.tar.gz core-e57febdb7fbe34d6548f780336cf9ee4a729cb5c.zip |
proper indentation
Change-Id: Ifc7577f46625562183ed3ee2273f28b9dcfc13df
Diffstat (limited to 'xmlscript')
-rw-r--r-- | xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx index 8c3beeda494c..7a317e815e21 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx @@ -1163,29 +1163,29 @@ void TitledBoxElement::endElement() throw (xml::sax::SAXException, RuntimeException, std::exception) { { - ControlImportContext ctx(_pImport, getControlId( _xAttributes ), "com.sun.star.awt.UnoControlGroupBoxModel" ); - Reference< beans::XPropertySet > xControlModel( ctx.getControlModel() ); + ControlImportContext ctx(_pImport, getControlId( _xAttributes ), "com.sun.star.awt.UnoControlGroupBoxModel" ); + Reference< beans::XPropertySet > xControlModel( ctx.getControlModel() ); - Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) ); - if (xStyle.is()) - { - StyleElement * pStyle = static_cast< StyleElement * >( xStyle.get () ); - pStyle->importTextColorStyle( xControlModel ); - pStyle->importTextLineColorStyle( xControlModel ); - pStyle->importFontStyle( xControlModel ); - } + Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) ); + if (xStyle.is()) + { + StyleElement * pStyle = static_cast< StyleElement * >( xStyle.get () ); + pStyle->importTextColorStyle( xControlModel ); + pStyle->importTextLineColorStyle( xControlModel ); + pStyle->importFontStyle( xControlModel ); + } - ctx.importDefaults( 0, 0, _xAttributes ); // inherited from BulletinBoardElement + ctx.importDefaults( 0, 0, _xAttributes ); // inherited from BulletinBoardElement - if (!_label.isEmpty()) - { - xControlModel->setPropertyValue( "Label", makeAny( _label ) ); - } + if (!_label.isEmpty()) + { + xControlModel->setPropertyValue( "Label", makeAny( _label ) ); + } - ctx.importEvents( _events ); - // avoid ring-reference: - // vector< event elements > holding event elements holding this (via _pParent) - _events.clear(); + ctx.importEvents( _events ); + // avoid ring-reference: + // vector< event elements > holding event elements holding this (via _pParent) + _events.clear(); ctx.finish(); } |