diff options
Diffstat (limited to 'forms/source/misc/InterfaceContainer.cxx')
-rw-r--r-- | forms/source/misc/InterfaceContainer.cxx | 75 |
1 files changed, 37 insertions, 38 deletions
diff --git a/forms/source/misc/InterfaceContainer.cxx b/forms/source/misc/InterfaceContainer.cxx index e8973e7d6000..19b98ea87e8e 100644 --- a/forms/source/misc/InterfaceContainer.cxx +++ b/forms/source/misc/InterfaceContainer.cxx @@ -199,7 +199,7 @@ OInterfaceContainer::OInterfaceContainer( ::osl::Mutex& _rMutex, const OInterfac impl_createEventAttacher_nothrow(); } -void OInterfaceContainer::clonedFrom(const OInterfaceContainer& _cloneSource) throw(RuntimeException, std::exception) +void OInterfaceContainer::clonedFrom(const OInterfaceContainer& _cloneSource) { try { @@ -450,7 +450,7 @@ void SAL_CALL OInterfaceContainer::readEvents(const Reference<XObjectInputStream } -void SAL_CALL OInterfaceContainer::write( const Reference< XObjectOutputStream >& _rxOutStream ) throw(IOException, RuntimeException, std::exception) +void SAL_CALL OInterfaceContainer::write( const Reference< XObjectOutputStream >& _rxOutStream ) { ::osl::MutexGuard aGuard( m_rMutex ); sal_Int32 nLen = m_aItems.size(); @@ -508,7 +508,7 @@ namespace } -void SAL_CALL OInterfaceContainer::read( const Reference< XObjectInputStream >& _rxInStream ) throw(IOException, RuntimeException, std::exception) +void SAL_CALL OInterfaceContainer::read( const Reference< XObjectInputStream >& _rxInStream ) { ::osl::MutexGuard aGuard( m_rMutex ); @@ -597,20 +597,20 @@ void SAL_CALL OInterfaceContainer::read( const Reference< XObjectInputStream >& // XContainer -void SAL_CALL OInterfaceContainer::addContainerListener(const Reference<XContainerListener>& _rxListener) throw( RuntimeException, std::exception ) +void SAL_CALL OInterfaceContainer::addContainerListener(const Reference<XContainerListener>& _rxListener) { m_aContainerListeners.addInterface(_rxListener); } -void SAL_CALL OInterfaceContainer::removeContainerListener(const Reference<XContainerListener>& _rxListener) throw( RuntimeException, std::exception ) +void SAL_CALL OInterfaceContainer::removeContainerListener(const Reference<XContainerListener>& _rxListener) { m_aContainerListeners.removeInterface(_rxListener); } // XEventListener -void SAL_CALL OInterfaceContainer::disposing(const css::lang::EventObject& _rSource) throw( RuntimeException, std::exception ) +void SAL_CALL OInterfaceContainer::disposing(const css::lang::EventObject& _rSource) { ::osl::MutexGuard aGuard( m_rMutex ); @@ -655,8 +655,7 @@ void SAL_CALL OInterfaceContainer::disposing(const css::lang::EventObject& _rSou // XPropertyChangeListener -void OInterfaceContainer::propertyChange(const PropertyChangeEvent& evt) -throw (css::uno::RuntimeException, std::exception) { +void OInterfaceContainer::propertyChange(const PropertyChangeEvent& evt) { if (evt.PropertyName == PROPERTY_NAME) { ::osl::MutexGuard aGuard( m_rMutex ); @@ -672,20 +671,20 @@ throw (css::uno::RuntimeException, std::exception) { // XElementAccess -sal_Bool SAL_CALL OInterfaceContainer::hasElements() throw( RuntimeException, std::exception ) +sal_Bool SAL_CALL OInterfaceContainer::hasElements() { return !m_aMap.empty(); } -Type SAL_CALL OInterfaceContainer::getElementType() throw(RuntimeException, std::exception) +Type SAL_CALL OInterfaceContainer::getElementType() { return m_aElementType; } // XEnumerationAccess -Reference<XEnumeration> SAL_CALL OInterfaceContainer::createEnumeration() throw( RuntimeException, std::exception ) +Reference<XEnumeration> SAL_CALL OInterfaceContainer::createEnumeration() { ::osl::MutexGuard aGuard( m_rMutex ); return new ::comphelper::OEnumerationByIndex(static_cast<XIndexAccess*>(this)); @@ -693,7 +692,7 @@ Reference<XEnumeration> SAL_CALL OInterfaceContainer::createEnumeration() throw( // XNameAccess -Any SAL_CALL OInterfaceContainer::getByName( const OUString& _rName ) throw(NoSuchElementException, WrappedTargetException, RuntimeException, std::exception) +Any SAL_CALL OInterfaceContainer::getByName( const OUString& _rName ) { ::std::pair <OInterfaceMap::iterator, OInterfaceMap::iterator> aPair = m_aMap.equal_range(_rName); @@ -705,13 +704,13 @@ Any SAL_CALL OInterfaceContainer::getByName( const OUString& _rName ) throw(NoSu } -css::uno::Sequence<OUString> SAL_CALL OInterfaceContainer::getElementNames() throw(RuntimeException, std::exception) +css::uno::Sequence<OUString> SAL_CALL OInterfaceContainer::getElementNames() { return comphelper::mapKeysToSequence(m_aMap); } -sal_Bool SAL_CALL OInterfaceContainer::hasByName( const OUString& _rName ) throw(RuntimeException, std::exception) +sal_Bool SAL_CALL OInterfaceContainer::hasByName( const OUString& _rName ) { ::std::pair <OInterfaceMap::iterator, OInterfaceMap::iterator> aPair = m_aMap.equal_range(_rName); @@ -720,13 +719,13 @@ sal_Bool SAL_CALL OInterfaceContainer::hasByName( const OUString& _rName ) throw // XIndexAccess -sal_Int32 OInterfaceContainer::getCount() throw( RuntimeException, std::exception ) +sal_Int32 OInterfaceContainer::getCount() { return m_aItems.size(); } -Any OInterfaceContainer::getByIndex(sal_Int32 _nIndex) throw( IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception ) +Any OInterfaceContainer::getByIndex(sal_Int32 _nIndex) { if (_nIndex < 0 || (_nIndex >= (sal_Int32)m_aItems.size())) throw IndexOutOfBoundsException(); @@ -770,7 +769,7 @@ void OInterfaceContainer::approveNewElement( const Reference< XPropertySet >& _r void OInterfaceContainer::implInsert(sal_Int32 _nIndex, const Reference< XPropertySet >& _rxElement, - bool _bEvents, ElementDescription* _pApprovalResult, bool _bFire ) throw( IllegalArgumentException ) + bool _bEvents, ElementDescription* _pApprovalResult, bool _bFire ) { const bool bHandleEvents = _bEvents && m_xEventAttacher.is(); @@ -912,7 +911,7 @@ void OInterfaceContainer::impl_replacedElement( const ContainerEvent& _rEvent, : // XIndexContainer -void SAL_CALL OInterfaceContainer::insertByIndex( sal_Int32 _nIndex, const Any& _rElement ) throw(IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception) +void SAL_CALL OInterfaceContainer::insertByIndex( sal_Int32 _nIndex, const Any& _rElement ) { Reference< XPropertySet > xElement; _rElement >>= xElement; @@ -1000,7 +999,7 @@ void OInterfaceContainer::implCheckIndex( const sal_Int32 _nIndex ) } -void SAL_CALL OInterfaceContainer::replaceByIndex(sal_Int32 _nIndex, const Any& Element) throw( IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception ) +void SAL_CALL OInterfaceContainer::replaceByIndex(sal_Int32 _nIndex, const Any& Element) { ::osl::ClearableMutexGuard aGuard( m_rMutex ); // check the index @@ -1053,7 +1052,7 @@ void OInterfaceContainer::implRemoveByIndex( const sal_Int32 _nIndex, ::osl::Cle } -void SAL_CALL OInterfaceContainer::removeByIndex(sal_Int32 _nIndex) throw( IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception ) +void SAL_CALL OInterfaceContainer::removeByIndex(sal_Int32 _nIndex) { ::osl::ClearableMutexGuard aGuard( m_rMutex ); // check the index @@ -1069,7 +1068,7 @@ ElementDescription* OInterfaceContainer::createElementMetaData( ) } -void SAL_CALL OInterfaceContainer::insertByName(const OUString& _rName, const Any& _rElement) throw( IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException, std::exception ) +void SAL_CALL OInterfaceContainer::insertByName(const OUString& _rName, const Any& _rElement) { Reference< XPropertySet > xElementProps; @@ -1100,7 +1099,7 @@ void SAL_CALL OInterfaceContainer::insertByName(const OUString& _rName, const An } -void SAL_CALL OInterfaceContainer::replaceByName(const OUString& Name, const Any& Element) throw( IllegalArgumentException, NoSuchElementException, WrappedTargetException, RuntimeException, std::exception ) +void SAL_CALL OInterfaceContainer::replaceByName(const OUString& Name, const Any& Element) { ::osl::ClearableMutexGuard aGuard( m_rMutex ); ::std::pair <OInterfaceMap::iterator, @@ -1128,7 +1127,7 @@ void SAL_CALL OInterfaceContainer::replaceByName(const OUString& Name, const Any } -void SAL_CALL OInterfaceContainer::removeByName(const OUString& Name) throw( NoSuchElementException, WrappedTargetException, RuntimeException, std::exception ) +void SAL_CALL OInterfaceContainer::removeByName(const OUString& Name) { ::osl::MutexGuard aGuard( m_rMutex ); ::std::pair <OInterfaceMap::iterator, @@ -1143,7 +1142,7 @@ void SAL_CALL OInterfaceContainer::removeByName(const OUString& Name) throw( NoS // XEventAttacherManager -void SAL_CALL OInterfaceContainer::registerScriptEvent( sal_Int32 nIndex, const ScriptEventDescriptor& aScriptEvent ) throw(IllegalArgumentException, RuntimeException, std::exception) +void SAL_CALL OInterfaceContainer::registerScriptEvent( sal_Int32 nIndex, const ScriptEventDescriptor& aScriptEvent ) { ::osl::ClearableMutexGuard aGuard( m_rMutex ); if ( m_xEventAttacher.is() ) @@ -1155,7 +1154,7 @@ void SAL_CALL OInterfaceContainer::registerScriptEvent( sal_Int32 nIndex, const } -void SAL_CALL OInterfaceContainer::registerScriptEvents( sal_Int32 nIndex, const Sequence< ScriptEventDescriptor >& aScriptEvents ) throw(IllegalArgumentException, RuntimeException, std::exception) +void SAL_CALL OInterfaceContainer::registerScriptEvents( sal_Int32 nIndex, const Sequence< ScriptEventDescriptor >& aScriptEvents ) { ::osl::ClearableMutexGuard aGuard( m_rMutex ); if ( m_xEventAttacher.is() ) @@ -1167,35 +1166,35 @@ void SAL_CALL OInterfaceContainer::registerScriptEvents( sal_Int32 nIndex, const } -void SAL_CALL OInterfaceContainer::revokeScriptEvent( sal_Int32 nIndex, const OUString& aListenerType, const OUString& aEventMethod, const OUString& aRemoveListenerParam ) throw(IllegalArgumentException, RuntimeException, std::exception) +void SAL_CALL OInterfaceContainer::revokeScriptEvent( sal_Int32 nIndex, const OUString& aListenerType, const OUString& aEventMethod, const OUString& aRemoveListenerParam ) { if ( m_xEventAttacher.is() ) m_xEventAttacher->revokeScriptEvent( nIndex, aListenerType, aEventMethod, aRemoveListenerParam ); } -void SAL_CALL OInterfaceContainer::revokeScriptEvents( sal_Int32 nIndex ) throw(IllegalArgumentException, RuntimeException, std::exception) +void SAL_CALL OInterfaceContainer::revokeScriptEvents( sal_Int32 nIndex ) { if ( m_xEventAttacher.is() ) m_xEventAttacher->revokeScriptEvents( nIndex ); } -void SAL_CALL OInterfaceContainer::insertEntry( sal_Int32 nIndex ) throw(IllegalArgumentException, RuntimeException, std::exception) +void SAL_CALL OInterfaceContainer::insertEntry( sal_Int32 nIndex ) { if ( m_xEventAttacher.is() ) m_xEventAttacher->insertEntry( nIndex ); } -void SAL_CALL OInterfaceContainer::removeEntry( sal_Int32 nIndex ) throw(IllegalArgumentException, RuntimeException, std::exception) +void SAL_CALL OInterfaceContainer::removeEntry( sal_Int32 nIndex ) { if ( m_xEventAttacher.is() ) m_xEventAttacher->removeEntry( nIndex ); } -Sequence< ScriptEventDescriptor > SAL_CALL OInterfaceContainer::getScriptEvents( sal_Int32 nIndex ) throw(IllegalArgumentException, RuntimeException, std::exception) +Sequence< ScriptEventDescriptor > SAL_CALL OInterfaceContainer::getScriptEvents( sal_Int32 nIndex ) { Sequence< ScriptEventDescriptor > aReturn; if ( m_xEventAttacher.is() ) @@ -1210,28 +1209,28 @@ Sequence< ScriptEventDescriptor > SAL_CALL OInterfaceContainer::getScriptEvents( } -void SAL_CALL OInterfaceContainer::attach( sal_Int32 nIndex, const Reference< XInterface >& xObject, const Any& aHelper ) throw(IllegalArgumentException, ServiceNotRegisteredException, RuntimeException, std::exception) +void SAL_CALL OInterfaceContainer::attach( sal_Int32 nIndex, const Reference< XInterface >& xObject, const Any& aHelper ) { if ( m_xEventAttacher.is() ) m_xEventAttacher->attach( nIndex, xObject, aHelper ); } -void SAL_CALL OInterfaceContainer::detach( sal_Int32 nIndex, const Reference< XInterface >& xObject ) throw(IllegalArgumentException, RuntimeException, std::exception) +void SAL_CALL OInterfaceContainer::detach( sal_Int32 nIndex, const Reference< XInterface >& xObject ) { if ( m_xEventAttacher.is() ) m_xEventAttacher->detach( nIndex, xObject ); } -void SAL_CALL OInterfaceContainer::addScriptListener( const Reference< XScriptListener >& xListener ) throw(IllegalArgumentException, RuntimeException, std::exception) +void SAL_CALL OInterfaceContainer::addScriptListener( const Reference< XScriptListener >& xListener ) { if ( m_xEventAttacher.is() ) m_xEventAttacher->addScriptListener( xListener ); } -void SAL_CALL OInterfaceContainer::removeScriptListener( const Reference< XScriptListener >& xListener ) throw(IllegalArgumentException, RuntimeException, std::exception) +void SAL_CALL OInterfaceContainer::removeScriptListener( const Reference< XScriptListener >& xListener ) { if ( m_xEventAttacher.is() ) m_xEventAttacher->removeScriptListener( xListener ); @@ -1241,7 +1240,7 @@ void SAL_CALL OInterfaceContainer::removeScriptListener( const Reference< XScrip //= OFormComponents -Any SAL_CALL OFormComponents::queryAggregation(const Type& _rType) throw(RuntimeException, std::exception) +Any SAL_CALL OFormComponents::queryAggregation(const Type& _rType) { Any aReturn = OFormComponents_BASE::queryInterface(_rType); if (!aReturn.hasValue()) @@ -1256,7 +1255,7 @@ Any SAL_CALL OFormComponents::queryAggregation(const Type& _rType) throw(Runtime } -Sequence<Type> SAL_CALL OFormComponents::getTypes() throw(RuntimeException, std::exception) +Sequence<Type> SAL_CALL OFormComponents::getTypes() { return ::comphelper::concatSequences(OInterfaceContainer::getTypes(), FormComponentsBase::getTypes(), OFormComponents_BASE::getTypes()); } @@ -1298,14 +1297,14 @@ void OFormComponents::disposing() //XChild -void OFormComponents::setParent(const css::uno::Reference<css::uno::XInterface>& Parent) throw( NoSupportException, RuntimeException, std::exception ) +void OFormComponents::setParent(const css::uno::Reference<css::uno::XInterface>& Parent) { ::osl::MutexGuard aGuard( m_aMutex ); m_xParent = Parent; } -css::uno::Reference<css::uno::XInterface> OFormComponents::getParent() throw( RuntimeException, std::exception ) +css::uno::Reference<css::uno::XInterface> OFormComponents::getParent() { return m_xParent; } |