diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-02-25 21:31:58 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-02-26 18:22:20 +0100 |
commit | 5e21a413c788f839a66d9e4c14e745ed18058db8 (patch) | |
tree | d4451246461346a425ad6f796e08bf1514cdd942 /stoc/source/corereflection | |
parent | 6fc2bd0094a23aafadeef3f4a8c2803d621a588d (diff) |
cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
Diffstat (limited to 'stoc/source/corereflection')
-rw-r--r-- | stoc/source/corereflection/base.hxx | 108 | ||||
-rw-r--r-- | stoc/source/corereflection/crarray.cxx | 20 | ||||
-rw-r--r-- | stoc/source/corereflection/crbase.cxx | 36 | ||||
-rw-r--r-- | stoc/source/corereflection/crcomp.cxx | 48 | ||||
-rw-r--r-- | stoc/source/corereflection/crefl.cxx | 22 | ||||
-rw-r--r-- | stoc/source/corereflection/crenum.cxx | 46 | ||||
-rw-r--r-- | stoc/source/corereflection/criface.cxx | 100 |
7 files changed, 190 insertions, 190 deletions
diff --git a/stoc/source/corereflection/base.hxx b/stoc/source/corereflection/base.hxx index edb6671ceaf0..1ccbcaa4a058 100644 --- a/stoc/source/corereflection/base.hxx +++ b/stoc/source/corereflection/base.hxx @@ -120,29 +120,29 @@ public: virtual ~IdlReflectionServiceImpl(); // XInterface - virtual Any SAL_CALL queryInterface( const Type & rType ) throw(::com::sun::star::uno::RuntimeException); + virtual Any SAL_CALL queryInterface( const Type & rType ) throw(::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL acquire() throw(); virtual void SAL_CALL release() throw(); // some XComponent part from OComponentHelper - virtual void SAL_CALL dispose() throw(::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL dispose() throw(::com::sun::star::uno::RuntimeException, std::exception); // XServiceInfo - virtual OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException); - virtual sal_Bool SAL_CALL supportsService( const OUString & rServiceName ) throw(::com::sun::star::uno::RuntimeException); - virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException); + virtual OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual sal_Bool SAL_CALL supportsService( const OUString & rServiceName ) throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException, std::exception); // XTypeProvider - virtual Sequence< Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException); - virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException); + virtual Sequence< Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException, std::exception); // XIdlReflection - virtual Reference< XIdlClass > SAL_CALL forName( const OUString & rTypeName ) throw(::com::sun::star::uno::RuntimeException); - virtual Reference< XIdlClass > SAL_CALL getType( const Any & rObj ) throw(::com::sun::star::uno::RuntimeException); + virtual Reference< XIdlClass > SAL_CALL forName( const OUString & rTypeName ) throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Reference< XIdlClass > SAL_CALL getType( const Any & rObj ) throw(::com::sun::star::uno::RuntimeException, std::exception); // XHierarchicalNameAccess - virtual Any SAL_CALL getByHierarchicalName( const OUString & rName ) throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException); - virtual sal_Bool SAL_CALL hasByHierarchicalName( const OUString & rName ) throw(::com::sun::star::uno::RuntimeException); + virtual Any SAL_CALL getByHierarchicalName( const OUString & rName ) throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual sal_Bool SAL_CALL hasByHierarchicalName( const OUString & rName ) throw(::com::sun::star::uno::RuntimeException, std::exception); Reference< XIdlClass > forType( typelib_TypeDescription * pTypeDescr ) throw(::com::sun::star::uno::RuntimeException); Reference< XIdlClass > forType( typelib_TypeDescriptionReference * pRef ) throw(::com::sun::star::uno::RuntimeException); @@ -176,30 +176,30 @@ public: virtual ~IdlClassImpl(); // XIdlClassImpl default implementation - virtual TypeClass SAL_CALL getTypeClass() throw(::com::sun::star::uno::RuntimeException); - virtual OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException); - virtual sal_Bool SAL_CALL equals( const Reference< XIdlClass >& xType ) throw(::com::sun::star::uno::RuntimeException); + virtual TypeClass SAL_CALL getTypeClass() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual sal_Bool SAL_CALL equals( const Reference< XIdlClass >& xType ) throw(::com::sun::star::uno::RuntimeException, std::exception); - virtual sal_Bool SAL_CALL isAssignableFrom( const Reference< XIdlClass > & xType ) throw(::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL createObject( Any & rObj ) throw(::com::sun::star::uno::RuntimeException); + virtual sal_Bool SAL_CALL isAssignableFrom( const Reference< XIdlClass > & xType ) throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL createObject( Any & rObj ) throw(::com::sun::star::uno::RuntimeException, std::exception); // def impl ???? - virtual Sequence< Reference< XIdlClass > > SAL_CALL getClasses() throw(::com::sun::star::uno::RuntimeException); - virtual Reference< XIdlClass > SAL_CALL getClass( const OUString & rName ) throw(::com::sun::star::uno::RuntimeException); - virtual Sequence< Reference< XIdlClass > > SAL_CALL getInterfaces() throw(::com::sun::star::uno::RuntimeException); + virtual Sequence< Reference< XIdlClass > > SAL_CALL getClasses() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Reference< XIdlClass > SAL_CALL getClass( const OUString & rName ) throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Sequence< Reference< XIdlClass > > SAL_CALL getInterfaces() throw(::com::sun::star::uno::RuntimeException, std::exception); // structs, interfaces - virtual Sequence< Reference< XIdlClass > > SAL_CALL getSuperclasses() throw(::com::sun::star::uno::RuntimeException); + virtual Sequence< Reference< XIdlClass > > SAL_CALL getSuperclasses() throw(::com::sun::star::uno::RuntimeException, std::exception); // structs - virtual Reference< XIdlField > SAL_CALL getField( const OUString & rName ) throw(::com::sun::star::uno::RuntimeException); - virtual Sequence< Reference< XIdlField > > SAL_CALL getFields() throw(::com::sun::star::uno::RuntimeException); + virtual Reference< XIdlField > SAL_CALL getField( const OUString & rName ) throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Sequence< Reference< XIdlField > > SAL_CALL getFields() throw(::com::sun::star::uno::RuntimeException, std::exception); // interfaces - virtual Uik SAL_CALL getUik() throw(::com::sun::star::uno::RuntimeException); - virtual Reference< XIdlMethod > SAL_CALL getMethod( const OUString & rName ) throw(::com::sun::star::uno::RuntimeException); - virtual Sequence< Reference< XIdlMethod > > SAL_CALL getMethods() throw(::com::sun::star::uno::RuntimeException); + virtual Uik SAL_CALL getUik() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Reference< XIdlMethod > SAL_CALL getMethod( const OUString & rName ) throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Sequence< Reference< XIdlMethod > > SAL_CALL getMethods() throw(::com::sun::star::uno::RuntimeException, std::exception); // array - virtual Reference< XIdlClass > SAL_CALL getComponentType() throw(::com::sun::star::uno::RuntimeException); - virtual Reference< XIdlArray > SAL_CALL getArray() throw(::com::sun::star::uno::RuntimeException); + virtual Reference< XIdlClass > SAL_CALL getComponentType() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Reference< XIdlArray > SAL_CALL getArray() throw(::com::sun::star::uno::RuntimeException, std::exception); }; @@ -234,14 +234,14 @@ public: virtual ~InterfaceIdlClassImpl(); // IdlClassImpl modifications - virtual sal_Bool SAL_CALL isAssignableFrom( const Reference< XIdlClass > & xType ) throw(::com::sun::star::uno::RuntimeException); - virtual Sequence< Reference< XIdlClass > > SAL_CALL getSuperclasses() throw(::com::sun::star::uno::RuntimeException); - virtual Uik SAL_CALL getUik() throw(::com::sun::star::uno::RuntimeException); - virtual Reference< XIdlMethod > SAL_CALL getMethod( const OUString & rName ) throw(::com::sun::star::uno::RuntimeException); - virtual Sequence< Reference< XIdlMethod > > SAL_CALL getMethods() throw(::com::sun::star::uno::RuntimeException); - virtual Reference< XIdlField > SAL_CALL getField( const OUString & rName ) throw(::com::sun::star::uno::RuntimeException); - virtual Sequence< Reference< XIdlField > > SAL_CALL getFields() throw(::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL createObject( Any & rObj ) throw(::com::sun::star::uno::RuntimeException); + virtual sal_Bool SAL_CALL isAssignableFrom( const Reference< XIdlClass > & xType ) throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Sequence< Reference< XIdlClass > > SAL_CALL getSuperclasses() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Uik SAL_CALL getUik() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Reference< XIdlMethod > SAL_CALL getMethod( const OUString & rName ) throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Sequence< Reference< XIdlMethod > > SAL_CALL getMethods() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Reference< XIdlField > SAL_CALL getField( const OUString & rName ) throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Sequence< Reference< XIdlField > > SAL_CALL getFields() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL createObject( Any & rObj ) throw(::com::sun::star::uno::RuntimeException, std::exception); }; @@ -267,10 +267,10 @@ public: virtual ~CompoundIdlClassImpl(); // IdlClassImpl modifications - virtual sal_Bool SAL_CALL isAssignableFrom( const Reference< XIdlClass > & xType ) throw(::com::sun::star::uno::RuntimeException); - virtual Sequence< Reference< XIdlClass > > SAL_CALL getSuperclasses() throw(::com::sun::star::uno::RuntimeException); - virtual Reference< XIdlField > SAL_CALL getField( const OUString & rName ) throw(::com::sun::star::uno::RuntimeException); - virtual Sequence< Reference< XIdlField > > SAL_CALL getFields() throw(::com::sun::star::uno::RuntimeException); + virtual sal_Bool SAL_CALL isAssignableFrom( const Reference< XIdlClass > & xType ) throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Sequence< Reference< XIdlClass > > SAL_CALL getSuperclasses() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Reference< XIdlField > SAL_CALL getField( const OUString & rName ) throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Sequence< Reference< XIdlField > > SAL_CALL getFields() throw(::com::sun::star::uno::RuntimeException, std::exception); }; @@ -289,24 +289,24 @@ public: : IdlClassImpl( pReflection, rName, eTypeClass, pTypeDescr ) {} - virtual Any SAL_CALL queryInterface( const Type & rType ) throw(::com::sun::star::uno::RuntimeException); + virtual Any SAL_CALL queryInterface( const Type & rType ) throw(::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL acquire() throw(); virtual void SAL_CALL release() throw(); // XTypeProvider - virtual Sequence< Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException); - virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException); + virtual Sequence< Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException, std::exception); // IdlClassImpl modifications - virtual sal_Bool SAL_CALL isAssignableFrom( const Reference< XIdlClass > & xType ) throw(::com::sun::star::uno::RuntimeException); - virtual Reference< XIdlClass > SAL_CALL getComponentType() throw(::com::sun::star::uno::RuntimeException); - virtual Reference< XIdlArray > SAL_CALL getArray() throw(::com::sun::star::uno::RuntimeException); + virtual sal_Bool SAL_CALL isAssignableFrom( const Reference< XIdlClass > & xType ) throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Reference< XIdlClass > SAL_CALL getComponentType() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Reference< XIdlArray > SAL_CALL getArray() throw(::com::sun::star::uno::RuntimeException, std::exception); // XIdlArray - virtual void SAL_CALL realloc( Any & rArray, sal_Int32 nLen ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); - virtual sal_Int32 SAL_CALL getLen( const Any & rArray ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); - virtual Any SAL_CALL get( const Any & rArray, sal_Int32 nIndex ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::ArrayIndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL set( Any & rArray, sal_Int32 nIndex, const Any & rNewValue ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::ArrayIndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL realloc( Any & rArray, sal_Int32 nLen ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual sal_Int32 SAL_CALL getLen( const Any & rArray ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual Any SAL_CALL get( const Any & rArray, sal_Int32 nIndex ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::ArrayIndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL set( Any & rArray, sal_Int32 nIndex, const Any & rNewValue ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::ArrayIndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception); }; @@ -330,9 +330,9 @@ public: virtual ~EnumIdlClassImpl(); // IdlClassImpl modifications - virtual Reference< XIdlField > SAL_CALL getField( const OUString & rName ) throw(::com::sun::star::uno::RuntimeException); - virtual Sequence< Reference< XIdlField > > SAL_CALL getFields() throw(::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL createObject( Any & rObj ) throw(::com::sun::star::uno::RuntimeException); + virtual Reference< XIdlField > SAL_CALL getField( const OUString & rName ) throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Sequence< Reference< XIdlField > > SAL_CALL getFields() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL createObject( Any & rObj ) throw(::com::sun::star::uno::RuntimeException, std::exception); }; @@ -364,8 +364,8 @@ public: virtual ~IdlMemberImpl(); // XIdlMember - virtual Reference< XIdlClass > SAL_CALL getDeclaringClass() throw(::com::sun::star::uno::RuntimeException); - virtual OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException); + virtual Reference< XIdlClass > SAL_CALL getDeclaringClass() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException, std::exception); }; diff --git a/stoc/source/corereflection/crarray.cxx b/stoc/source/corereflection/crarray.cxx index 374bc43d4a1b..527541f059bc 100644 --- a/stoc/source/corereflection/crarray.cxx +++ b/stoc/source/corereflection/crarray.cxx @@ -29,7 +29,7 @@ namespace stoc_corefl // XInterface Any ArrayIdlClassImpl::queryInterface( const Type & rType ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { Any aRet( ::cppu::queryInterface( rType, static_cast< XIdlArray * >( this ) ) ); return (aRet.hasValue() ? aRet : IdlClassImpl::queryInterface( rType )); @@ -48,7 +48,7 @@ void ArrayIdlClassImpl::release() throw() // XTypeProvider Sequence< Type > ArrayIdlClassImpl::getTypes() - throw (::com::sun::star::uno::RuntimeException) + throw (::com::sun::star::uno::RuntimeException, std::exception) { static OTypeCollection * s_pTypes = 0; if (! s_pTypes) @@ -66,7 +66,7 @@ Sequence< Type > ArrayIdlClassImpl::getTypes() } Sequence< sal_Int8 > ArrayIdlClassImpl::getImplementationId() - throw (::com::sun::star::uno::RuntimeException) + throw (::com::sun::star::uno::RuntimeException, std::exception) { static OImplementationId * s_pId = 0; if (! s_pId) @@ -84,7 +84,7 @@ Sequence< sal_Int8 > ArrayIdlClassImpl::getImplementationId() // XIdlArray void ArrayIdlClassImpl::realloc( Any & rArray, sal_Int32 nLen ) - throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) { TypeClass eTC = rArray.getValueTypeClass(); if (eTC != TypeClass_SEQUENCE) @@ -109,7 +109,7 @@ void ArrayIdlClassImpl::realloc( Any & rArray, sal_Int32 nLen ) } sal_Int32 ArrayIdlClassImpl::getLen( const Any & rArray ) - throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) { TypeClass eTC = rArray.getValueTypeClass(); if (eTC != TypeClass_SEQUENCE) @@ -123,7 +123,7 @@ sal_Int32 ArrayIdlClassImpl::getLen( const Any & rArray ) } Any ArrayIdlClassImpl::get( const Any & rArray, sal_Int32 nIndex ) - throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::ArrayIndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::ArrayIndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) { TypeClass eTC = rArray.getValueTypeClass(); if (eTC != TypeClass_SEQUENCE) @@ -154,7 +154,7 @@ Any ArrayIdlClassImpl::get( const Any & rArray, sal_Int32 nIndex ) void ArrayIdlClassImpl::set( Any & rArray, sal_Int32 nIndex, const Any & rNewValue ) - throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::ArrayIndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::ArrayIndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) { TypeClass eTC = rArray.getValueTypeClass(); if (eTC != TypeClass_SEQUENCE) @@ -197,7 +197,7 @@ void ArrayIdlClassImpl::set( Any & rArray, sal_Int32 nIndex, const Any & rNewVal // ArrayIdlClassImpl sal_Bool ArrayIdlClassImpl::isAssignableFrom( const Reference< XIdlClass > & xType ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return (xType.is() && (equals( xType ) || @@ -206,13 +206,13 @@ sal_Bool ArrayIdlClassImpl::isAssignableFrom( const Reference< XIdlClass > & xTy } Reference< XIdlClass > ArrayIdlClassImpl::getComponentType() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return getReflection()->forType( getTypeDescr()->pType ); } Reference< XIdlArray > ArrayIdlClassImpl::getArray() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return this; } diff --git a/stoc/source/corereflection/crbase.cxx b/stoc/source/corereflection/crbase.cxx index 17ce150b9d5b..17fe62cb25ff 100644 --- a/stoc/source/corereflection/crbase.cxx +++ b/stoc/source/corereflection/crbase.cxx @@ -87,19 +87,19 @@ IdlClassImpl::~IdlClassImpl() // XIdlClassImpl default implementation TypeClass IdlClassImpl::getTypeClass() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return _eTypeClass; } OUString IdlClassImpl::getName() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return _aName; } sal_Bool IdlClassImpl::equals( const Reference< XIdlClass >& xType ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return (xType.is() && (xType->getTypeClass() == _eTypeClass) && (xType->getName() == _aName)); @@ -122,7 +122,7 @@ static const sal_Bool s_aAssignableFromTab[11][11] = }; sal_Bool IdlClassImpl::isAssignableFrom( const Reference< XIdlClass > & xType ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { TypeClass eAssign = getTypeClass(); if (equals( xType ) || eAssign == TypeClass_ANY) // default shot @@ -142,7 +142,7 @@ sal_Bool IdlClassImpl::isAssignableFrom( const Reference< XIdlClass > & xType ) } void IdlClassImpl::createObject( Any & rObj ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { rObj.clear(); uno_any_destruct( &rObj, reinterpret_cast< uno_ReleaseFunc >(cpp_release) ); @@ -152,21 +152,21 @@ void IdlClassImpl::createObject( Any & rObj ) // what TODO ???? Sequence< Reference< XIdlClass > > IdlClassImpl::getClasses() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { OSL_FAIL( "### unexpected use!" ); return Sequence< Reference< XIdlClass > >(); } Reference< XIdlClass > IdlClassImpl::getClass( const OUString & ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { OSL_FAIL( "### unexpected use!" ); return Reference< XIdlClass >(); } Sequence< Reference< XIdlClass > > IdlClassImpl::getInterfaces() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { // OSL_FAIL( "### unexpected use!" ); return Sequence< Reference< XIdlClass > >(); @@ -174,52 +174,52 @@ Sequence< Reference< XIdlClass > > IdlClassImpl::getInterfaces() // structs, interfaces -Sequence< Reference< XIdlClass > > IdlClassImpl::getSuperclasses() throw(::com::sun::star::uno::RuntimeException) +Sequence< Reference< XIdlClass > > IdlClassImpl::getSuperclasses() throw(::com::sun::star::uno::RuntimeException, std::exception) { return Sequence< Reference< XIdlClass > >(); } // structs Reference< XIdlField > IdlClassImpl::getField( const OUString & ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return Reference< XIdlField >(); } Sequence< Reference< XIdlField > > IdlClassImpl::getFields() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return Sequence< Reference< XIdlField > >(); } // interfaces Uik IdlClassImpl::getUik() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return Uik(); } Reference< XIdlMethod > IdlClassImpl::getMethod( const OUString & ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return Reference< XIdlMethod >(); } Sequence< Reference< XIdlMethod > > IdlClassImpl::getMethods() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return Sequence< Reference< XIdlMethod > >(); } // array Reference< XIdlClass > IdlClassImpl::getComponentType() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return Reference< XIdlClass >(); } Reference< XIdlArray > IdlClassImpl::getArray() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return Reference< XIdlArray >(); } @@ -258,7 +258,7 @@ IdlMemberImpl::~IdlMemberImpl() // XIdlMember Reference< XIdlClass > IdlMemberImpl::getDeclaringClass() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { if (! _xDeclClass.is()) { @@ -271,7 +271,7 @@ Reference< XIdlClass > IdlMemberImpl::getDeclaringClass() } OUString IdlMemberImpl::getName() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return _aName; } diff --git a/stoc/source/corereflection/crcomp.cxx b/stoc/source/corereflection/crcomp.cxx index 60ae43cd2185..9e9a2dd6fd53 100644 --- a/stoc/source/corereflection/crcomp.cxx +++ b/stoc/source/corereflection/crcomp.cxx @@ -46,30 +46,30 @@ public: {} // XInterface - virtual Any SAL_CALL queryInterface( const Type & rType ) throw (::com::sun::star::uno::RuntimeException); + virtual Any SAL_CALL queryInterface( const Type & rType ) throw (::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL acquire() throw (); virtual void SAL_CALL release() throw (); // XTypeProvider - virtual Sequence< Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException); - virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException); + virtual Sequence< Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException, std::exception); // XIdlMember - virtual Reference< XIdlClass > SAL_CALL getDeclaringClass() throw(::com::sun::star::uno::RuntimeException); - virtual OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException); + virtual Reference< XIdlClass > SAL_CALL getDeclaringClass() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException, std::exception); // XIdlField - virtual Reference< XIdlClass > SAL_CALL getType() throw(::com::sun::star::uno::RuntimeException); - virtual FieldAccessMode SAL_CALL getAccessMode() throw(::com::sun::star::uno::RuntimeException); - virtual Any SAL_CALL get( const Any & rObj ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL set( const Any & rObj, const Any & rValue ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException); + virtual Reference< XIdlClass > SAL_CALL getType() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual FieldAccessMode SAL_CALL getAccessMode() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Any SAL_CALL get( const Any & rObj ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL set( const Any & rObj, const Any & rValue ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException, std::exception); // XIdlField2: getType, getAccessMode and get are equal to XIdlField - virtual void SAL_CALL set( Any & rObj, const Any & rValue ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL set( Any & rObj, const Any & rValue ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException, std::exception); }; // XInterface Any IdlCompFieldImpl::queryInterface( const Type & rType ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { Any aRet( ::cppu::queryInterface( rType, static_cast< XIdlField * >( this ), @@ -90,7 +90,7 @@ void IdlCompFieldImpl::release() throw() // XTypeProvider Sequence< Type > IdlCompFieldImpl::getTypes() - throw (::com::sun::star::uno::RuntimeException) + throw (::com::sun::star::uno::RuntimeException, std::exception) { static OTypeCollection * s_pTypes = 0; if (! s_pTypes) @@ -109,7 +109,7 @@ Sequence< Type > IdlCompFieldImpl::getTypes() } Sequence< sal_Int8 > IdlCompFieldImpl::getImplementationId() - throw (::com::sun::star::uno::RuntimeException) + throw (::com::sun::star::uno::RuntimeException, std::exception) { static OImplementationId * s_pId = 0; if (! s_pId) @@ -127,7 +127,7 @@ Sequence< sal_Int8 > IdlCompFieldImpl::getImplementationId() // XIdlMember Reference< XIdlClass > IdlCompFieldImpl::getDeclaringClass() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { if (! _xDeclClass.is()) { @@ -155,7 +155,7 @@ Reference< XIdlClass > IdlCompFieldImpl::getDeclaringClass() } OUString IdlCompFieldImpl::getName() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return IdlMemberImpl::getName(); } @@ -163,19 +163,19 @@ OUString IdlCompFieldImpl::getName() // XIdlField Reference< XIdlClass > IdlCompFieldImpl::getType() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return getReflection()->forType( getTypeDescr() ); } FieldAccessMode IdlCompFieldImpl::getAccessMode() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return FieldAccessMode_READWRITE; } Any IdlCompFieldImpl::get( const Any & rObj ) - throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) { if (rObj.getValueTypeClass() == com::sun::star::uno::TypeClass_STRUCT || rObj.getValueTypeClass() == com::sun::star::uno::TypeClass_EXCEPTION) @@ -208,7 +208,7 @@ Any IdlCompFieldImpl::get( const Any & rObj ) } void IdlCompFieldImpl::set( const Any & rObj, const Any & rValue ) - throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException, std::exception) { if (rObj.getValueTypeClass() == com::sun::star::uno::TypeClass_STRUCT || rObj.getValueTypeClass() == com::sun::star::uno::TypeClass_EXCEPTION) @@ -245,7 +245,7 @@ void IdlCompFieldImpl::set( const Any & rObj, const Any & rValue ) void IdlCompFieldImpl::set( Any & rObj, const Any & rValue ) - throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException, std::exception) { if (rObj.getValueTypeClass() == com::sun::star::uno::TypeClass_STRUCT || rObj.getValueTypeClass() == com::sun::star::uno::TypeClass_EXCEPTION) @@ -293,7 +293,7 @@ CompoundIdlClassImpl::~CompoundIdlClassImpl() sal_Bool CompoundIdlClassImpl::isAssignableFrom( const Reference< XIdlClass > & xType ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { if (xType.is()) { @@ -317,7 +317,7 @@ sal_Bool CompoundIdlClassImpl::isAssignableFrom( const Reference< XIdlClass > & } Sequence< Reference< XIdlClass > > CompoundIdlClassImpl::getSuperclasses() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { if (! _xSuperClass.is()) { @@ -336,7 +336,7 @@ Sequence< Reference< XIdlClass > > CompoundIdlClassImpl::getSuperclasses() } Reference< XIdlField > CompoundIdlClassImpl::getField( const OUString & rName ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { if (! _pFields) getFields(); // init fields @@ -349,7 +349,7 @@ Reference< XIdlField > CompoundIdlClassImpl::getField( const OUString & rName ) } Sequence< Reference< XIdlField > > CompoundIdlClassImpl::getFields() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { MutexGuard aGuard( getMutexAccess() ); if (! _pFields) diff --git a/stoc/source/corereflection/crefl.cxx b/stoc/source/corereflection/crefl.cxx index d25d137cdf1d..ad5367ee67b8 100644 --- a/stoc/source/corereflection/crefl.cxx +++ b/stoc/source/corereflection/crefl.cxx @@ -73,7 +73,7 @@ IdlReflectionServiceImpl::~IdlReflectionServiceImpl() {} // XInterface Any IdlReflectionServiceImpl::queryInterface( const Type & rType ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { Any aRet( ::cppu::queryInterface( rType, @@ -97,7 +97,7 @@ void IdlReflectionServiceImpl::release() throw() // XTypeProvider Sequence< Type > IdlReflectionServiceImpl::getTypes() - throw (::com::sun::star::uno::RuntimeException) + throw (::com::sun::star::uno::RuntimeException, std::exception) { static OTypeCollection * s_pTypes = 0; if (! s_pTypes) @@ -117,7 +117,7 @@ Sequence< Type > IdlReflectionServiceImpl::getTypes() } Sequence< sal_Int8 > IdlReflectionServiceImpl::getImplementationId() - throw (::com::sun::star::uno::RuntimeException) + throw (::com::sun::star::uno::RuntimeException, std::exception) { static OImplementationId * s_pId = 0; if (! s_pId) @@ -135,7 +135,7 @@ Sequence< sal_Int8 > IdlReflectionServiceImpl::getImplementationId() // XComponent void IdlReflectionServiceImpl::dispose() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { OComponentHelper::dispose(); @@ -155,19 +155,19 @@ void IdlReflectionServiceImpl::dispose() // XServiceInfo OUString IdlReflectionServiceImpl::getImplementationName() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return core_getImplementationName(); } sal_Bool IdlReflectionServiceImpl::supportsService( const OUString & rServiceName ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return cppu::supportsService(this, rServiceName); } Sequence< OUString > IdlReflectionServiceImpl::getSupportedServiceNames() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return core_getSupportedServiceNames(); } @@ -175,7 +175,7 @@ Sequence< OUString > IdlReflectionServiceImpl::getSupportedServiceNames() // XIdlReflection Reference< XIdlClass > IdlReflectionServiceImpl::getType( const Any & rObj ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return (rObj.hasValue() ? forType( rObj.getValueTypeRef() ) : Reference< XIdlClass >()); } @@ -232,7 +232,7 @@ inline Reference< XIdlClass > IdlReflectionServiceImpl::constructClass( } Reference< XIdlClass > IdlReflectionServiceImpl::forName( const OUString & rTypeName ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { Reference< XIdlClass > xRet; Any aAny( _aElements.getValue( rTypeName ) ); @@ -261,7 +261,7 @@ Reference< XIdlClass > IdlReflectionServiceImpl::forName( const OUString & rType // XHierarchicalNameAccess Any IdlReflectionServiceImpl::getByHierarchicalName( const OUString & rName ) - throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException, std::exception) { Any aRet( _aElements.getValue( rName ) ); if (! aRet.hasValue()) @@ -315,7 +315,7 @@ Any IdlReflectionServiceImpl::getByHierarchicalName( const OUString & rName ) } sal_Bool IdlReflectionServiceImpl::hasByHierarchicalName( const OUString & rName ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { try { diff --git a/stoc/source/corereflection/crenum.cxx b/stoc/source/corereflection/crenum.cxx index 4d90525df8f6..2420ad1484e0 100644 --- a/stoc/source/corereflection/crenum.cxx +++ b/stoc/source/corereflection/crenum.cxx @@ -40,24 +40,24 @@ public: virtual ~IdlEnumFieldImpl(); // XInterface - virtual Any SAL_CALL queryInterface( const Type & rType ) throw(::com::sun::star::uno::RuntimeException); + virtual Any SAL_CALL queryInterface( const Type & rType ) throw(::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL acquire() throw(); virtual void SAL_CALL release() throw(); // XTypeProvider - virtual Sequence< Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException); - virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException); + virtual Sequence< Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException, std::exception); // XIdlMember - virtual Reference< XIdlClass > SAL_CALL getDeclaringClass() throw(::com::sun::star::uno::RuntimeException); - virtual OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException); + virtual Reference< XIdlClass > SAL_CALL getDeclaringClass() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException, std::exception); // XIdlField - virtual Reference< XIdlClass > SAL_CALL getType() throw(::com::sun::star::uno::RuntimeException); - virtual FieldAccessMode SAL_CALL getAccessMode() throw(::com::sun::star::uno::RuntimeException); - virtual Any SAL_CALL get( const Any & rObj ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL set( const Any & rObj, const Any & rValue ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException); + virtual Reference< XIdlClass > SAL_CALL getType() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual FieldAccessMode SAL_CALL getAccessMode() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Any SAL_CALL get( const Any & rObj ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL set( const Any & rObj, const Any & rValue ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException, std::exception); // XIdlField2: getType, getAccessMode and get are equal to XIdlField - virtual void SAL_CALL set( Any & rObj, const Any & rValue ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL set( Any & rObj, const Any & rValue ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException, std::exception); }; IdlEnumFieldImpl::~IdlEnumFieldImpl() @@ -67,7 +67,7 @@ IdlEnumFieldImpl::~IdlEnumFieldImpl() // XInterface Any IdlEnumFieldImpl::queryInterface( const Type & rType ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { Any aRet( ::cppu::queryInterface( rType, static_cast< XIdlField * >( this ), @@ -88,7 +88,7 @@ void IdlEnumFieldImpl::release() throw() // XTypeProvider Sequence< Type > IdlEnumFieldImpl::getTypes() - throw (::com::sun::star::uno::RuntimeException) + throw (::com::sun::star::uno::RuntimeException, std::exception) { static OTypeCollection * s_pTypes = 0; if (! s_pTypes) @@ -107,7 +107,7 @@ Sequence< Type > IdlEnumFieldImpl::getTypes() } Sequence< sal_Int8 > IdlEnumFieldImpl::getImplementationId() - throw (::com::sun::star::uno::RuntimeException) + throw (::com::sun::star::uno::RuntimeException, std::exception) { static OImplementationId * s_pId = 0; if (! s_pId) @@ -125,13 +125,13 @@ Sequence< sal_Int8 > IdlEnumFieldImpl::getImplementationId() // XIdlMember Reference< XIdlClass > IdlEnumFieldImpl::getDeclaringClass() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return IdlMemberImpl::getDeclaringClass(); } OUString IdlEnumFieldImpl::getName() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return IdlMemberImpl::getName(); } @@ -139,25 +139,25 @@ OUString IdlEnumFieldImpl::getName() // XIdlField Reference< XIdlClass > IdlEnumFieldImpl::getType() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return getDeclaringClass(); } FieldAccessMode IdlEnumFieldImpl::getAccessMode() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return FieldAccessMode_READONLY; } Any IdlEnumFieldImpl::get( const Any & ) - throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) { return Any( &_nValue, getTypeDescr() ); } void IdlEnumFieldImpl::set( const Any &, const Any & ) - throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException, std::exception) { throw IllegalAccessException( OUString("enum field is constant!"), @@ -165,7 +165,7 @@ void IdlEnumFieldImpl::set( const Any &, const Any & ) } void IdlEnumFieldImpl::set( Any &, const Any & ) - throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException, std::exception) { throw IllegalAccessException( OUString("enum field is constant!"), @@ -186,7 +186,7 @@ EnumIdlClassImpl::~EnumIdlClassImpl() // IdlClassImpl modifications Reference< XIdlField > EnumIdlClassImpl::getField( const OUString & rName ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { if (! _pFields) getFields(); // init members @@ -199,7 +199,7 @@ Reference< XIdlField > EnumIdlClassImpl::getField( const OUString & rName ) } Sequence< Reference< XIdlField > > EnumIdlClassImpl::getFields() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { if (! _pFields) { @@ -225,7 +225,7 @@ Sequence< Reference< XIdlField > > EnumIdlClassImpl::getFields() } void EnumIdlClassImpl::createObject( Any & rObj ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { sal_Int32 eVal = ((typelib_EnumTypeDescription *)IdlClassImpl::getTypeDescr())->nDefaultEnumValue; diff --git a/stoc/source/corereflection/criface.cxx b/stoc/source/corereflection/criface.cxx index 8eed43664408..97ac7b97203b 100644 --- a/stoc/source/corereflection/criface.cxx +++ b/stoc/source/corereflection/criface.cxx @@ -54,24 +54,24 @@ public: {} // XInterface - virtual Any SAL_CALL queryInterface( const Type & rType ) throw(::com::sun::star::uno::RuntimeException); + virtual Any SAL_CALL queryInterface( const Type & rType ) throw(::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL acquire() throw(); virtual void SAL_CALL release() throw(); // XTypeProvider - virtual Sequence< Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException); - virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException); + virtual Sequence< Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException, std::exception); // XIdlMember - virtual Reference< XIdlClass > SAL_CALL getDeclaringClass() throw(::com::sun::star::uno::RuntimeException); - virtual OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException); + virtual Reference< XIdlClass > SAL_CALL getDeclaringClass() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException, std::exception); // XIdlField - virtual Reference< XIdlClass > SAL_CALL getType() throw(::com::sun::star::uno::RuntimeException); - virtual FieldAccessMode SAL_CALL getAccessMode() throw(::com::sun::star::uno::RuntimeException); - virtual Any SAL_CALL get( const Any & rObj ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL set( const Any & rObj, const Any & rValue ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException); + virtual Reference< XIdlClass > SAL_CALL getType() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual FieldAccessMode SAL_CALL getAccessMode() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Any SAL_CALL get( const Any & rObj ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL set( const Any & rObj, const Any & rValue ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException, std::exception); // XIdlField2: getType, getAccessMode and get are equal to XIdlField - virtual void SAL_CALL set( Any & rObj, const Any & rValue ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL set( Any & rObj, const Any & rValue ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException, std::exception); private: void checkException( @@ -81,7 +81,7 @@ private: // XInterface Any IdlAttributeFieldImpl::queryInterface( const Type & rType ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { Any aRet( ::cppu::queryInterface( rType, static_cast< XIdlField * >( this ), @@ -102,7 +102,7 @@ void IdlAttributeFieldImpl::release() throw() // XTypeProvider Sequence< Type > IdlAttributeFieldImpl::getTypes() - throw (::com::sun::star::uno::RuntimeException) + throw (::com::sun::star::uno::RuntimeException, std::exception) { static OTypeCollection * s_pTypes = 0; if (! s_pTypes) @@ -121,7 +121,7 @@ Sequence< Type > IdlAttributeFieldImpl::getTypes() } Sequence< sal_Int8 > IdlAttributeFieldImpl::getImplementationId() - throw (::com::sun::star::uno::RuntimeException) + throw (::com::sun::star::uno::RuntimeException, std::exception) { static OImplementationId * s_pId = 0; if (! s_pId) @@ -139,7 +139,7 @@ Sequence< sal_Int8 > IdlAttributeFieldImpl::getImplementationId() // XIdlMember Reference< XIdlClass > IdlAttributeFieldImpl::getDeclaringClass() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { if (! _xDeclClass.is()) { @@ -156,7 +156,7 @@ Reference< XIdlClass > IdlAttributeFieldImpl::getDeclaringClass() } OUString IdlAttributeFieldImpl::getName() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return IdlMemberImpl::getName(); } @@ -164,21 +164,21 @@ OUString IdlAttributeFieldImpl::getName() // XIdlField Reference< XIdlClass > IdlAttributeFieldImpl::getType() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return getReflection()->forType( getAttributeTypeDescr()->pAttributeTypeRef ); } FieldAccessMode IdlAttributeFieldImpl::getAccessMode() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return (((typelib_InterfaceAttributeTypeDescription *)getAttributeTypeDescr())->bReadOnly ? FieldAccessMode_READONLY : FieldAccessMode_READWRITE); } Any IdlAttributeFieldImpl::get( const Any & rObj ) - throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) { uno_Interface * pUnoI = getReflection()->mapToUno( rObj, (typelib_InterfaceTypeDescription *)getDeclTypeDescr() ); @@ -211,7 +211,7 @@ Any IdlAttributeFieldImpl::get( const Any & rObj ) } void IdlAttributeFieldImpl::set( Any & rObj, const Any & rValue ) - throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException, std::exception) { if (getAttributeTypeDescr()->bReadOnly) { @@ -301,7 +301,7 @@ void IdlAttributeFieldImpl::set( Any & rObj, const Any & rValue ) } void IdlAttributeFieldImpl::set( const Any & rObj, const Any & rValue ) - throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException, std::exception) { IdlAttributeFieldImpl::set( const_cast< Any & >( rObj ), rValue ); } @@ -358,24 +358,24 @@ public: virtual ~IdlInterfaceMethodImpl(); // XInterface - virtual Any SAL_CALL queryInterface( const Type & rType ) throw(::com::sun::star::uno::RuntimeException); + virtual Any SAL_CALL queryInterface( const Type & rType ) throw(::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL acquire() throw(); virtual void SAL_CALL release() throw(); // XTypeProvider - virtual Sequence< Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException); - virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException); + virtual Sequence< Type > SAL_CALL getTypes() throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() throw (::com::sun::star::uno::RuntimeException, std::exception); // XIdlMember - virtual Reference< XIdlClass > SAL_CALL getDeclaringClass() throw(::com::sun::star::uno::RuntimeException); - virtual OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException); + virtual Reference< XIdlClass > SAL_CALL getDeclaringClass() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException, std::exception); // XIdlMethod - virtual Reference< XIdlClass > SAL_CALL getReturnType() throw(::com::sun::star::uno::RuntimeException); - virtual Sequence< Reference< XIdlClass > > SAL_CALL getParameterTypes() throw(::com::sun::star::uno::RuntimeException); - virtual Sequence< ParamInfo > SAL_CALL getParameterInfos() throw(::com::sun::star::uno::RuntimeException); - virtual Sequence< Reference< XIdlClass > > SAL_CALL getExceptionTypes() throw(::com::sun::star::uno::RuntimeException); - virtual MethodMode SAL_CALL getMode() throw(::com::sun::star::uno::RuntimeException); - virtual Any SAL_CALL invoke( const Any & rObj, Sequence< Any > & rArgs ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::reflection::InvocationTargetException, ::com::sun::star::uno::RuntimeException); + virtual Reference< XIdlClass > SAL_CALL getReturnType() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Sequence< Reference< XIdlClass > > SAL_CALL getParameterTypes() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Sequence< ParamInfo > SAL_CALL getParameterInfos() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Sequence< Reference< XIdlClass > > SAL_CALL getExceptionTypes() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual MethodMode SAL_CALL getMode() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Any SAL_CALL invoke( const Any & rObj, Sequence< Any > & rArgs ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::reflection::InvocationTargetException, ::com::sun::star::uno::RuntimeException, std::exception); }; IdlInterfaceMethodImpl::~IdlInterfaceMethodImpl() @@ -388,7 +388,7 @@ IdlInterfaceMethodImpl::~IdlInterfaceMethodImpl() // XInterface Any IdlInterfaceMethodImpl::queryInterface( const Type & rType ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { Any aRet( ::cppu::queryInterface( rType, static_cast< XIdlMethod * >( this ) ) ); return (aRet.hasValue() ? aRet : IdlMemberImpl::queryInterface( rType )); @@ -407,7 +407,7 @@ void IdlInterfaceMethodImpl::release() throw() // XTypeProvider Sequence< Type > IdlInterfaceMethodImpl::getTypes() - throw (::com::sun::star::uno::RuntimeException) + throw (::com::sun::star::uno::RuntimeException, std::exception) { static OTypeCollection * s_pTypes = 0; if (! s_pTypes) @@ -425,7 +425,7 @@ Sequence< Type > IdlInterfaceMethodImpl::getTypes() } Sequence< sal_Int8 > IdlInterfaceMethodImpl::getImplementationId() - throw (::com::sun::star::uno::RuntimeException) + throw (::com::sun::star::uno::RuntimeException, std::exception) { static OImplementationId * s_pId = 0; if (! s_pId) @@ -443,7 +443,7 @@ Sequence< sal_Int8 > IdlInterfaceMethodImpl::getImplementationId() // XIdlMember Reference< XIdlClass > IdlInterfaceMethodImpl::getDeclaringClass() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { if (! _xDeclClass.is()) { @@ -460,7 +460,7 @@ Reference< XIdlClass > IdlInterfaceMethodImpl::getDeclaringClass() } OUString IdlInterfaceMethodImpl::getName() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return IdlMemberImpl::getName(); } @@ -468,13 +468,13 @@ OUString IdlInterfaceMethodImpl::getName() // XIdlMethod Reference< XIdlClass > SAL_CALL IdlInterfaceMethodImpl::getReturnType() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return getReflection()->forType( getMethodTypeDescr()->pReturnTypeRef ); } Sequence< Reference< XIdlClass > > IdlInterfaceMethodImpl::getExceptionTypes() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { if (! _pExceptionTypes) { @@ -500,7 +500,7 @@ Sequence< Reference< XIdlClass > > IdlInterfaceMethodImpl::getExceptionTypes() } Sequence< Reference< XIdlClass > > IdlInterfaceMethodImpl::getParameterTypes() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { if (! _pParamTypes) { @@ -526,7 +526,7 @@ Sequence< Reference< XIdlClass > > IdlInterfaceMethodImpl::getParameterTypes() } Sequence< ParamInfo > IdlInterfaceMethodImpl::getParameterInfos() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { if (! _pParamInfos) { @@ -586,7 +586,7 @@ Sequence< ParamInfo > IdlInterfaceMethodImpl::getParameterInfos() } MethodMode SAL_CALL IdlInterfaceMethodImpl::getMode() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return getMethodTypeDescr()->bOneWay ? MethodMode_ONEWAY : MethodMode_TWOWAY; @@ -595,7 +595,7 @@ MethodMode SAL_CALL IdlInterfaceMethodImpl::getMode() Any SAL_CALL IdlInterfaceMethodImpl::invoke( const Any & rObj, Sequence< Any > & rArgs ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::reflection::InvocationTargetException, - ::com::sun::star::uno::RuntimeException) + ::com::sun::star::uno::RuntimeException, std::exception) { if (rObj.getValueTypeClass() == TypeClass_INTERFACE) { @@ -796,7 +796,7 @@ InterfaceIdlClassImpl::~InterfaceIdlClassImpl() Sequence< Reference< XIdlClass > > InterfaceIdlClassImpl::getSuperclasses() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { MutexGuard aGuard(getMutexAccess()); if (_xSuperClasses.getLength() == 0) { @@ -844,7 +844,7 @@ void InterfaceIdlClassImpl::initMembers() } sal_Bool InterfaceIdlClassImpl::isAssignableFrom( const Reference< XIdlClass > & xType ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { if (xType.is() && xType->getTypeClass() == TypeClass_INTERFACE) { @@ -864,14 +864,14 @@ sal_Bool InterfaceIdlClassImpl::isAssignableFrom( const Reference< XIdlClass > & } Uik InterfaceIdlClassImpl::getUik() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return Uik(0, 0, 0, 0, 0); // Uiks are deprecated and this function must not be called } Sequence< Reference< XIdlMethod > > InterfaceIdlClassImpl::getMethods() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { MutexGuard aGuard( getMutexAccess() ); if (! _pSortedMemberInit) @@ -891,7 +891,7 @@ Sequence< Reference< XIdlMethod > > InterfaceIdlClassImpl::getMethods() } Sequence< Reference< XIdlField > > InterfaceIdlClassImpl::getFields() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { MutexGuard aGuard( getMutexAccess() ); if (! _pSortedMemberInit) @@ -911,7 +911,7 @@ Sequence< Reference< XIdlField > > InterfaceIdlClassImpl::getFields() } Reference< XIdlMethod > InterfaceIdlClassImpl::getMethod( const OUString & rName ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { MutexGuard aGuard( getMutexAccess() ); if (! _pSortedMemberInit) @@ -941,7 +941,7 @@ Reference< XIdlMethod > InterfaceIdlClassImpl::getMethod( const OUString & rName } Reference< XIdlField > InterfaceIdlClassImpl::getField( const OUString & rName ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { MutexGuard aGuard( getMutexAccess() ); if (! _pSortedMemberInit) @@ -971,7 +971,7 @@ Reference< XIdlField > InterfaceIdlClassImpl::getField( const OUString & rName ) } void InterfaceIdlClassImpl::createObject( Any & rObj ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { // interfaces cannot be constructed rObj.clear(); |