Kaydet (Commit) e57febdb authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

proper indentation

Change-Id: Ifc7577f46625562183ed3ee2273f28b9dcfc13df
üst 87934ed7
...@@ -1163,29 +1163,29 @@ void TitledBoxElement::endElement() ...@@ -1163,29 +1163,29 @@ void TitledBoxElement::endElement()
throw (xml::sax::SAXException, RuntimeException, std::exception) throw (xml::sax::SAXException, RuntimeException, std::exception)
{ {
{ {
ControlImportContext ctx(_pImport, getControlId( _xAttributes ), "com.sun.star.awt.UnoControlGroupBoxModel" ); ControlImportContext ctx(_pImport, getControlId( _xAttributes ), "com.sun.star.awt.UnoControlGroupBoxModel" );
Reference< beans::XPropertySet > xControlModel( ctx.getControlModel() ); Reference< beans::XPropertySet > xControlModel( ctx.getControlModel() );
Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) ); Reference< xml::input::XElement > xStyle( getStyle( _xAttributes ) );
if (xStyle.is()) if (xStyle.is())
{ {
StyleElement * pStyle = static_cast< StyleElement * >( xStyle.get () ); StyleElement * pStyle = static_cast< StyleElement * >( xStyle.get () );
pStyle->importTextColorStyle( xControlModel ); pStyle->importTextColorStyle( xControlModel );
pStyle->importTextLineColorStyle( xControlModel ); pStyle->importTextLineColorStyle( xControlModel );
pStyle->importFontStyle( xControlModel ); pStyle->importFontStyle( xControlModel );
} }
ctx.importDefaults( 0, 0, _xAttributes ); // inherited from BulletinBoardElement ctx.importDefaults( 0, 0, _xAttributes ); // inherited from BulletinBoardElement
if (!_label.isEmpty()) if (!_label.isEmpty())
{ {
xControlModel->setPropertyValue( "Label", makeAny( _label ) ); xControlModel->setPropertyValue( "Label", makeAny( _label ) );
} }
ctx.importEvents( _events ); ctx.importEvents( _events );
// avoid ring-reference: // avoid ring-reference:
// vector< event elements > holding event elements holding this (via _pParent) // vector< event elements > holding event elements holding this (via _pParent)
_events.clear(); _events.clear();
ctx.finish(); ctx.finish();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment