diff options
Diffstat (limited to 'reportdesign/source/core/api/Shape.cxx')
-rw-r--r-- | reportdesign/source/core/api/Shape.cxx | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/reportdesign/source/core/api/Shape.cxx b/reportdesign/source/core/api/Shape.cxx index 1588325fc..64bddc657 100644 --- a/reportdesign/source/core/api/Shape.cxx +++ b/reportdesign/source/core/api/Shape.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -58,7 +59,7 @@ uno::Sequence< ::rtl::OUString > lcl_getShapeOptionals() ,PROPERTY_CONTROLBACKGROUND ,PROPERTY_CONTROLBACKGROUNDTRANSPARENT }; - return uno::Sequence< ::rtl::OUString >(pProps,sizeof(pProps)/sizeof(pProps[0])); + return uno::Sequence< ::rtl::OUString >(pProps,SAL_N_ELEMENTS(pProps)); } DBG_NAME( rpt_OShape ) @@ -322,11 +323,9 @@ uno::Reference< util::XCloneable > SAL_CALL OShape::createClone( ) throw (uno:: if ( pClone ) { xSet.set(pClone->getUnoShape(),uno::UNO_QUERY_THROW ); - - // ::comphelper::copyProperties(xSource.get(),xSet.get()); } } - } // if ( pShape ) + } } catch(const uno::Exception&) { @@ -345,11 +344,6 @@ void SAL_CALL OShape::setParent( const uno::Reference< uno::XInterface >& Parent { ::osl::MutexGuard aGuard(m_aMutex); m_aProps.aComponent.m_xParent = uno::Reference< container::XChild >(Parent,uno::UNO_QUERY); - // not supported by the shape - //uno::Reference< container::XChild > xChild; - //comphelper::query_aggregation(m_aProps.aComponent.m_xProxy,xChild); - //if ( xChild.is() ) - // xChild->setParent(Parent); } uno::Reference< report::XFormatCondition > SAL_CALL OShape::createFormatCondition( ) throw (uno::Exception, uno::RuntimeException) { @@ -521,3 +515,5 @@ void SAL_CALL OShape::setCustomShapeGeometry( const uno::Sequence< beans::Proper // ============================================================================= }// namespace reportdesign // ============================================================================= + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |