diff options
Diffstat (limited to 'reportdesign/source/core/api/Group.cxx')
-rw-r--r-- | reportdesign/source/core/api/Group.cxx | 86 |
1 files changed, 43 insertions, 43 deletions
diff --git a/reportdesign/source/core/api/Group.cxx b/reportdesign/source/core/api/Group.cxx index ee640a09400f..7344d3a61268 100644 --- a/reportdesign/source/core/api/Group.cxx +++ b/reportdesign/source/core/api/Group.cxx @@ -36,7 +36,7 @@ namespace reportdesign // ============================================================================= using namespace com::sun::star; using namespace comphelper; -// ----------------------------------------------------------------------------- + OGroup::OGroup(const uno::Reference< report::XGroups >& _xParent ,const uno::Reference< uno::XComponentContext >& _xContext) :GroupBase(m_aMutex) @@ -50,13 +50,13 @@ OGroup::OGroup(const uno::Reference< report::XGroups >& _xParent } osl_atomic_decrement( &m_refCount ); } -//-------------------------------------------------------------------------- + // TODO: VirtualFunctionFinder: This is virtual function! // OGroup::~OGroup() { } -//-------------------------------------------------------------------------- + void OGroup::copyGroup(const uno::Reference< report::XGroup >& _xSource) { ::comphelper::copyProperties(_xSource.get(),static_cast<GroupPropertySet*>(this)); @@ -73,37 +73,37 @@ void OGroup::copyGroup(const uno::Reference< report::XGroup >& _xSource) OSection::lcl_copySection(_xSource->getFooter(),m_xFooter); } } -//-------------------------------------------------------------------------- + IMPLEMENT_FORWARD_XINTERFACE2(OGroup,GroupBase,GroupPropertySet) -//-------------------------------------------------------------------------- + OUString SAL_CALL OGroup::getImplementationName( ) throw(uno::RuntimeException) { return OUString("com.sun.star.comp.report.Group"); } -//------------------------------------------------------------------------------ + uno::Sequence< OUString> OGroup::getSupportedServiceNames_Static(void) throw( uno::RuntimeException ) { uno::Sequence< OUString> aSupported(1); aSupported.getArray()[0] = SERVICE_GROUP; return aSupported; } -//------------------------------------------------------------------------- + uno::Sequence< OUString> SAL_CALL OGroup::getSupportedServiceNames() throw(uno::RuntimeException) { return getSupportedServiceNames_Static(); } -// ----------------------------------------------------------------------------- + sal_Bool SAL_CALL OGroup::supportsService( const OUString& _rServiceName ) throw(uno::RuntimeException) { return cppu::supportsService(this, _rServiceName); } -// ----------------------------------------------------------------------------- + void SAL_CALL OGroup::dispose() throw(uno::RuntimeException) { GroupPropertySet::dispose(); cppu::WeakComponentImplHelperBase::dispose(); } -// ----------------------------------------------------------------------------- + // TODO: VirtualFunctionFinder: This is virtual function! // void SAL_CALL OGroup::disposing() @@ -113,25 +113,25 @@ void SAL_CALL OGroup::disposing() ::comphelper::disposeComponent(m_xFunctions); m_xContext.clear(); } -// ----------------------------------------------------------------------------- + // XGroup ::sal_Bool SAL_CALL OGroup::getSortAscending() throw (uno::RuntimeException) { ::osl::MutexGuard aGuard(m_aMutex); return m_aProps.m_eSortAscending; } -// ----------------------------------------------------------------------------- + void SAL_CALL OGroup::setSortAscending( ::sal_Bool _sortascending ) throw (uno::RuntimeException) { set(PROPERTY_SORTASCENDING,_sortascending,m_aProps.m_eSortAscending); } -// ----------------------------------------------------------------------------- + ::sal_Bool SAL_CALL OGroup::getHeaderOn() throw (uno::RuntimeException) { ::osl::MutexGuard aGuard(m_aMutex); return m_xHeader.is(); } -// ----------------------------------------------------------------------------- + void SAL_CALL OGroup::setHeaderOn( ::sal_Bool _headeron ) throw (uno::RuntimeException) { if ( bool(_headeron) != m_xHeader.is() ) @@ -140,13 +140,13 @@ void SAL_CALL OGroup::setHeaderOn( ::sal_Bool _headeron ) throw (uno::RuntimeExc setSection(PROPERTY_HEADERON,_headeron,sName,m_xHeader); } } -// ----------------------------------------------------------------------------- + ::sal_Bool SAL_CALL OGroup::getFooterOn() throw (uno::RuntimeException) { ::osl::MutexGuard aGuard(m_aMutex); return m_xFooter.is(); } -// ----------------------------------------------------------------------------- + void SAL_CALL OGroup::setFooterOn( ::sal_Bool _footeron ) throw (uno::RuntimeException) { if ( bool(_footeron) != m_xFooter.is() ) @@ -155,7 +155,7 @@ void SAL_CALL OGroup::setFooterOn( ::sal_Bool _footeron ) throw (uno::RuntimeExc setSection(PROPERTY_FOOTERON,_footeron,sName,m_xFooter); } } -// ----------------------------------------------------------------------------- + uno::Reference< report::XSection > SAL_CALL OGroup::getHeader() throw (container::NoSuchElementException, uno::RuntimeException) { uno::Reference< report::XSection > xRet; @@ -168,7 +168,7 @@ uno::Reference< report::XSection > SAL_CALL OGroup::getHeader() throw (container throw container::NoSuchElementException(); return xRet; } -// ----------------------------------------------------------------------------- + uno::Reference< report::XSection > SAL_CALL OGroup::getFooter() throw (container::NoSuchElementException, uno::RuntimeException) { uno::Reference< report::XSection > xRet; @@ -181,13 +181,13 @@ uno::Reference< report::XSection > SAL_CALL OGroup::getFooter() throw (container throw container::NoSuchElementException(); return xRet; } -// ----------------------------------------------------------------------------- + ::sal_Int16 SAL_CALL OGroup::getGroupOn() throw (uno::RuntimeException) { ::osl::MutexGuard aGuard(m_aMutex); return m_aProps.m_nGroupOn; } -// ----------------------------------------------------------------------------- + void SAL_CALL OGroup::setGroupOn( ::sal_Int16 _groupon ) throw (lang::IllegalArgumentException, uno::RuntimeException) { if ( _groupon < report::GroupOn::DEFAULT || _groupon > report::GroupOn::INTERVAL ) @@ -197,24 +197,24 @@ void SAL_CALL OGroup::setGroupOn( ::sal_Int16 _groupon ) throw (lang::IllegalArg ,m_xContext); set(PROPERTY_GROUPON,_groupon,m_aProps.m_nGroupOn); } -// ----------------------------------------------------------------------------- + ::sal_Int32 SAL_CALL OGroup::getGroupInterval() throw (uno::RuntimeException) { ::osl::MutexGuard aGuard(m_aMutex); return m_aProps.m_nGroupInterval; } -// ----------------------------------------------------------------------------- + void SAL_CALL OGroup::setGroupInterval( ::sal_Int32 _groupinterval ) throw (uno::RuntimeException) { set(PROPERTY_GROUPINTERVAL,_groupinterval,m_aProps.m_nGroupInterval); } -// ----------------------------------------------------------------------------- + ::sal_Int16 SAL_CALL OGroup::getKeepTogether() throw (uno::RuntimeException) { ::osl::MutexGuard aGuard(m_aMutex); return m_aProps.m_nKeepTogether; } -// ----------------------------------------------------------------------------- + void SAL_CALL OGroup::setKeepTogether( ::sal_Int16 _keeptogether ) throw (lang::IllegalArgumentException, uno::RuntimeException) { if ( _keeptogether < report::KeepTogether::NO || _keeptogether > report::KeepTogether::WITH_FIRST_DETAIL ) @@ -224,92 +224,92 @@ void SAL_CALL OGroup::setKeepTogether( ::sal_Int16 _keeptogether ) throw (lang:: ,m_xContext); set(PROPERTY_KEEPTOGETHER,_keeptogether,m_aProps.m_nKeepTogether); } -// ----------------------------------------------------------------------------- + uno::Reference< report::XGroups > SAL_CALL OGroup::getGroups() throw (uno::RuntimeException) { return m_xParent; } -// ----------------------------------------------------------------------------- + OUString SAL_CALL OGroup::getExpression() throw (uno::RuntimeException) { ::osl::MutexGuard aGuard(m_aMutex); return m_aProps.m_sExpression; } -// ----------------------------------------------------------------------------- + void SAL_CALL OGroup::setExpression( const OUString& _expression ) throw (uno::RuntimeException) { set(PROPERTY_EXPRESSION,_expression,m_aProps.m_sExpression); } -// ----------------------------------------------------------------------------- + ::sal_Bool SAL_CALL OGroup::getStartNewColumn() throw (uno::RuntimeException) { ::osl::MutexGuard aGuard(m_aMutex); return m_aProps.m_bStartNewColumn; } -// ----------------------------------------------------------------------------- + void SAL_CALL OGroup::setStartNewColumn( ::sal_Bool _startnewcolumn ) throw (uno::RuntimeException) { set(PROPERTY_STARTNEWCOLUMN,_startnewcolumn,m_aProps.m_bStartNewColumn); } -// ----------------------------------------------------------------------------- -// ----------------------------------------------------------------------------- + + ::sal_Bool SAL_CALL OGroup::getResetPageNumber() throw (uno::RuntimeException) { ::osl::MutexGuard aGuard(m_aMutex); return m_aProps.m_bResetPageNumber; } -// ----------------------------------------------------------------------------- + void SAL_CALL OGroup::setResetPageNumber( ::sal_Bool _resetpagenumber ) throw (uno::RuntimeException) { set(PROPERTY_RESETPAGENUMBER,_resetpagenumber,m_aProps.m_bResetPageNumber); } -// ----------------------------------------------------------------------------- + // XChild uno::Reference< uno::XInterface > SAL_CALL OGroup::getParent( ) throw (uno::RuntimeException) { return m_xParent; } -// ----------------------------------------------------------------------------- + void SAL_CALL OGroup::setParent( const uno::Reference< uno::XInterface >& /*Parent*/ ) throw (lang::NoSupportException, uno::RuntimeException) { throw lang::NoSupportException(); } -// ----------------------------------------------------------------------------- + uno::Reference< beans::XPropertySetInfo > SAL_CALL OGroup::getPropertySetInfo( ) throw(uno::RuntimeException) { return GroupPropertySet::getPropertySetInfo(); } -// ----------------------------------------------------------------------------- + void SAL_CALL OGroup::setPropertyValue( const OUString& aPropertyName, const uno::Any& aValue ) throw (beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException) { GroupPropertySet::setPropertyValue( aPropertyName, aValue ); } -// ----------------------------------------------------------------------------- + uno::Any SAL_CALL OGroup::getPropertyValue( const OUString& PropertyName ) throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException) { return GroupPropertySet::getPropertyValue( PropertyName); } -// ----------------------------------------------------------------------------- + void SAL_CALL OGroup::addPropertyChangeListener( const OUString& aPropertyName, const uno::Reference< beans::XPropertyChangeListener >& xListener ) throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException) { GroupPropertySet::addPropertyChangeListener( aPropertyName, xListener ); } -// ----------------------------------------------------------------------------- + void SAL_CALL OGroup::removePropertyChangeListener( const OUString& aPropertyName, const uno::Reference< beans::XPropertyChangeListener >& aListener ) throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException) { GroupPropertySet::removePropertyChangeListener( aPropertyName, aListener ); } -// ----------------------------------------------------------------------------- + void SAL_CALL OGroup::addVetoableChangeListener( const OUString& PropertyName, const uno::Reference< beans::XVetoableChangeListener >& aListener ) throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException) { GroupPropertySet::addVetoableChangeListener( PropertyName, aListener ); } -// ----------------------------------------------------------------------------- + void SAL_CALL OGroup::removeVetoableChangeListener( const OUString& PropertyName, const uno::Reference< beans::XVetoableChangeListener >& aListener ) throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException) { GroupPropertySet::removeVetoableChangeListener( PropertyName, aListener ); } -// ----------------------------------------------------------------------------- + void OGroup::setSection( const OUString& _sProperty ,const sal_Bool& _bOn ,const OUString& _sName @@ -325,7 +325,7 @@ void OGroup::setSection( const OUString& _sProperty } l.notify(); } -// ----------------------------------------------------------------------------- + uno::Reference< report::XFunctions > SAL_CALL OGroup::getFunctions() throw (uno::RuntimeException) { return m_xFunctions; |