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 | |
parent | 6fc2bd0094a23aafadeef3f4a8c2803d621a588d (diff) |
cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
Diffstat (limited to 'stoc')
30 files changed, 874 insertions, 874 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(); diff --git a/stoc/source/defaultregistry/defaultregistry.cxx b/stoc/source/defaultregistry/defaultregistry.cxx index a1cb23112b42..2fae85a80f99 100644 --- a/stoc/source/defaultregistry/defaultregistry.cxx +++ b/stoc/source/defaultregistry/defaultregistry.cxx @@ -56,28 +56,28 @@ public: ~NestedRegistryImpl(); // XServiceInfo - virtual OUString SAL_CALL getImplementationName( ) throw(RuntimeException); - virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw(RuntimeException); - virtual Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw(RuntimeException); + virtual OUString SAL_CALL getImplementationName( ) throw(RuntimeException, std::exception); + virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw(RuntimeException, std::exception); + virtual Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw(RuntimeException, std::exception); // XInitialization virtual void SAL_CALL initialize( const Sequence< Any >& aArguments ) - throw(Exception, RuntimeException); + throw(Exception, RuntimeException, std::exception); // XSimpleRegistry - virtual OUString SAL_CALL getURL() throw(RuntimeException); - virtual void SAL_CALL open( const OUString& rURL, sal_Bool bReadOnly, sal_Bool bCreate ) throw(InvalidRegistryException, RuntimeException); - virtual sal_Bool SAL_CALL isValid( ) throw(RuntimeException); - virtual void SAL_CALL close( ) throw(InvalidRegistryException, RuntimeException); - virtual void SAL_CALL destroy( ) throw(InvalidRegistryException, RuntimeException); - virtual Reference< XRegistryKey > SAL_CALL getRootKey( ) throw(InvalidRegistryException, RuntimeException); - virtual sal_Bool SAL_CALL isReadOnly( ) throw(InvalidRegistryException, RuntimeException); - virtual void SAL_CALL mergeKey( const OUString& aKeyName, const OUString& aUrl ) throw(InvalidRegistryException, MergeConflictException, RuntimeException); + virtual OUString SAL_CALL getURL() throw(RuntimeException, std::exception); + virtual void SAL_CALL open( const OUString& rURL, sal_Bool bReadOnly, sal_Bool bCreate ) throw(InvalidRegistryException, RuntimeException, std::exception); + virtual sal_Bool SAL_CALL isValid( ) throw(RuntimeException, std::exception); + virtual void SAL_CALL close( ) throw(InvalidRegistryException, RuntimeException, std::exception); + virtual void SAL_CALL destroy( ) throw(InvalidRegistryException, RuntimeException, std::exception); + virtual Reference< XRegistryKey > SAL_CALL getRootKey( ) throw(InvalidRegistryException, RuntimeException, std::exception); + virtual sal_Bool SAL_CALL isReadOnly( ) throw(InvalidRegistryException, RuntimeException, std::exception); + virtual void SAL_CALL mergeKey( const OUString& aKeyName, const OUString& aUrl ) throw(InvalidRegistryException, MergeConflictException, RuntimeException, std::exception); // XEnumerationAccess - virtual Reference< XEnumeration > SAL_CALL createEnumeration( ) throw (RuntimeException); - virtual Type SAL_CALL getElementType( ) throw (RuntimeException); - virtual sal_Bool SAL_CALL hasElements( ) throw (RuntimeException); + virtual Reference< XEnumeration > SAL_CALL createEnumeration( ) throw (RuntimeException, std::exception); + virtual Type SAL_CALL getElementType( ) throw (RuntimeException, std::exception); + virtual sal_Bool SAL_CALL hasElements( ) throw (RuntimeException, std::exception); friend class NestedKeyImpl; protected: @@ -104,35 +104,35 @@ public: ~NestedKeyImpl(); // XRegistryKey - virtual OUString SAL_CALL getKeyName() throw(RuntimeException); - virtual sal_Bool SAL_CALL isReadOnly( ) throw(InvalidRegistryException, RuntimeException); - virtual sal_Bool SAL_CALL isValid( ) throw(RuntimeException); - virtual RegistryKeyType SAL_CALL getKeyType( const OUString& rKeyName ) throw(InvalidRegistryException, RuntimeException); - virtual RegistryValueType SAL_CALL getValueType( ) throw(InvalidRegistryException, RuntimeException); - virtual sal_Int32 SAL_CALL getLongValue( ) throw(InvalidRegistryException, InvalidValueException, RuntimeException); - virtual void SAL_CALL setLongValue( sal_Int32 value ) throw(InvalidRegistryException, RuntimeException); - virtual Sequence< sal_Int32 > SAL_CALL getLongListValue( ) throw(InvalidRegistryException, InvalidValueException, RuntimeException); - virtual void SAL_CALL setLongListValue( const ::com::sun::star::uno::Sequence< sal_Int32 >& seqValue ) throw(InvalidRegistryException, RuntimeException); - virtual OUString SAL_CALL getAsciiValue( ) throw(InvalidRegistryException, InvalidValueException, RuntimeException); - virtual void SAL_CALL setAsciiValue( const OUString& value ) throw(InvalidRegistryException, RuntimeException); - virtual Sequence< OUString > SAL_CALL getAsciiListValue( ) throw(InvalidRegistryException, InvalidValueException, RuntimeException); - virtual void SAL_CALL setAsciiListValue( const ::com::sun::star::uno::Sequence< OUString >& seqValue ) throw(InvalidRegistryException, RuntimeException); - virtual OUString SAL_CALL getStringValue( ) throw(InvalidRegistryException, InvalidValueException, RuntimeException); - virtual void SAL_CALL setStringValue( const OUString& value ) throw(InvalidRegistryException, RuntimeException); - virtual Sequence< OUString > SAL_CALL getStringListValue( ) throw(InvalidRegistryException, InvalidValueException, RuntimeException); - virtual void SAL_CALL setStringListValue( const ::com::sun::star::uno::Sequence< OUString >& seqValue ) throw(InvalidRegistryException, RuntimeException); - virtual Sequence< sal_Int8 > SAL_CALL getBinaryValue( ) throw(InvalidRegistryException, InvalidValueException, RuntimeException); - virtual void SAL_CALL setBinaryValue( const ::com::sun::star::uno::Sequence< sal_Int8 >& value ) throw(InvalidRegistryException, RuntimeException); - virtual Reference< XRegistryKey > SAL_CALL openKey( const OUString& aKeyName ) throw(InvalidRegistryException, RuntimeException); - virtual Reference< XRegistryKey > SAL_CALL createKey( const OUString& aKeyName ) throw(InvalidRegistryException, RuntimeException); - virtual void SAL_CALL closeKey( ) throw(InvalidRegistryException, RuntimeException); - virtual void SAL_CALL deleteKey( const OUString& rKeyName ) throw(InvalidRegistryException, RuntimeException); - virtual Sequence< Reference< XRegistryKey > > SAL_CALL openKeys( ) throw(InvalidRegistryException, RuntimeException); - virtual Sequence< OUString > SAL_CALL getKeyNames( ) throw(InvalidRegistryException, RuntimeException); - virtual sal_Bool SAL_CALL createLink( const OUString& aLinkName, const OUString& aLinkTarget ) throw(InvalidRegistryException, RuntimeException); - virtual void SAL_CALL deleteLink( const OUString& rLinkName ) throw(InvalidRegistryException, RuntimeException); - virtual OUString SAL_CALL getLinkTarget( const OUString& rLinkName ) throw(InvalidRegistryException, RuntimeException); - virtual OUString SAL_CALL getResolvedName( const OUString& aKeyName ) throw(InvalidRegistryException, RuntimeException); + virtual OUString SAL_CALL getKeyName() throw(RuntimeException, std::exception); + virtual sal_Bool SAL_CALL isReadOnly( ) throw(InvalidRegistryException, RuntimeException, std::exception); + virtual sal_Bool SAL_CALL isValid( ) throw(RuntimeException, std::exception); + virtual RegistryKeyType SAL_CALL getKeyType( const OUString& rKeyName ) throw(InvalidRegistryException, RuntimeException, std::exception); + virtual RegistryValueType SAL_CALL getValueType( ) throw(InvalidRegistryException, RuntimeException, std::exception); + virtual sal_Int32 SAL_CALL getLongValue( ) throw(InvalidRegistryException, InvalidValueException, RuntimeException, std::exception); + virtual void SAL_CALL setLongValue( sal_Int32 value ) throw(InvalidRegistryException, RuntimeException, std::exception); + virtual Sequence< sal_Int32 > SAL_CALL getLongListValue( ) throw(InvalidRegistryException, InvalidValueException, RuntimeException, std::exception); + virtual void SAL_CALL setLongListValue( const ::com::sun::star::uno::Sequence< sal_Int32 >& seqValue ) throw(InvalidRegistryException, RuntimeException, std::exception); + virtual OUString SAL_CALL getAsciiValue( ) throw(InvalidRegistryException, InvalidValueException, RuntimeException, std::exception); + virtual void SAL_CALL setAsciiValue( const OUString& value ) throw(InvalidRegistryException, RuntimeException, std::exception); + virtual Sequence< OUString > SAL_CALL getAsciiListValue( ) throw(InvalidRegistryException, InvalidValueException, RuntimeException, std::exception); + virtual void SAL_CALL setAsciiListValue( const ::com::sun::star::uno::Sequence< OUString >& seqValue ) throw(InvalidRegistryException, RuntimeException, std::exception); + virtual OUString SAL_CALL getStringValue( ) throw(InvalidRegistryException, InvalidValueException, RuntimeException, std::exception); + virtual void SAL_CALL setStringValue( const OUString& value ) throw(InvalidRegistryException, RuntimeException, std::exception); + virtual Sequence< OUString > SAL_CALL getStringListValue( ) throw(InvalidRegistryException, InvalidValueException, RuntimeException, std::exception); + virtual void SAL_CALL setStringListValue( const ::com::sun::star::uno::Sequence< OUString >& seqValue ) throw(InvalidRegistryException, RuntimeException, std::exception); + virtual Sequence< sal_Int8 > SAL_CALL getBinaryValue( ) throw(InvalidRegistryException, InvalidValueException, RuntimeException, std::exception); + virtual void SAL_CALL setBinaryValue( const ::com::sun::star::uno::Sequence< sal_Int8 >& value ) throw(InvalidRegistryException, RuntimeException, std::exception); + virtual Reference< XRegistryKey > SAL_CALL openKey( const OUString& aKeyName ) throw(InvalidRegistryException, RuntimeException, std::exception); + virtual Reference< XRegistryKey > SAL_CALL createKey( const OUString& aKeyName ) throw(InvalidRegistryException, RuntimeException, std::exception); + virtual void SAL_CALL closeKey( ) throw(InvalidRegistryException, RuntimeException, std::exception); + virtual void SAL_CALL deleteKey( const OUString& rKeyName ) throw(InvalidRegistryException, RuntimeException, std::exception); + virtual Sequence< Reference< XRegistryKey > > SAL_CALL openKeys( ) throw(InvalidRegistryException, RuntimeException, std::exception); + virtual Sequence< OUString > SAL_CALL getKeyNames( ) throw(InvalidRegistryException, RuntimeException, std::exception); + virtual sal_Bool SAL_CALL createLink( const OUString& aLinkName, const OUString& aLinkTarget ) throw(InvalidRegistryException, RuntimeException, std::exception); + virtual void SAL_CALL deleteLink( const OUString& rLinkName ) throw(InvalidRegistryException, RuntimeException, std::exception); + virtual OUString SAL_CALL getLinkTarget( const OUString& rLinkName ) throw(InvalidRegistryException, RuntimeException, std::exception); + virtual OUString SAL_CALL getResolvedName( const OUString& aKeyName ) throw(InvalidRegistryException, RuntimeException, std::exception); protected: void computeChanges(); @@ -271,7 +271,7 @@ OUString NestedKeyImpl::computeName(const OUString& name) } -OUString SAL_CALL NestedKeyImpl::getKeyName() throw(RuntimeException) +OUString SAL_CALL NestedKeyImpl::getKeyName() throw(RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); return m_name; @@ -279,7 +279,7 @@ OUString SAL_CALL NestedKeyImpl::getKeyName() throw(RuntimeException) sal_Bool SAL_CALL NestedKeyImpl::isReadOnly( ) - throw(InvalidRegistryException, RuntimeException) + throw(InvalidRegistryException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); computeChanges(); @@ -291,7 +291,7 @@ sal_Bool SAL_CALL NestedKeyImpl::isReadOnly( ) } -sal_Bool SAL_CALL NestedKeyImpl::isValid( ) throw(RuntimeException) +sal_Bool SAL_CALL NestedKeyImpl::isValid( ) throw(RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); return ((m_localKey.is() && m_localKey->isValid()) || @@ -300,7 +300,7 @@ sal_Bool SAL_CALL NestedKeyImpl::isValid( ) throw(RuntimeException) RegistryKeyType SAL_CALL NestedKeyImpl::getKeyType( const OUString& rKeyName ) - throw(InvalidRegistryException, RuntimeException) + throw(InvalidRegistryException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); computeChanges(); @@ -319,7 +319,7 @@ RegistryKeyType SAL_CALL NestedKeyImpl::getKeyType( const OUString& rKeyName ) RegistryValueType SAL_CALL NestedKeyImpl::getValueType( ) - throw(InvalidRegistryException, RuntimeException) + throw(InvalidRegistryException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); computeChanges(); @@ -338,7 +338,7 @@ RegistryValueType SAL_CALL NestedKeyImpl::getValueType( ) sal_Int32 SAL_CALL NestedKeyImpl::getLongValue( ) - throw(InvalidRegistryException, InvalidValueException, RuntimeException) + throw(InvalidRegistryException, InvalidValueException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); computeChanges(); @@ -359,7 +359,7 @@ sal_Int32 SAL_CALL NestedKeyImpl::getLongValue( ) void SAL_CALL NestedKeyImpl::setLongValue( sal_Int32 value ) - throw(InvalidRegistryException, RuntimeException) + throw(InvalidRegistryException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); computeChanges(); @@ -383,7 +383,7 @@ void SAL_CALL NestedKeyImpl::setLongValue( sal_Int32 value ) Sequence< sal_Int32 > SAL_CALL NestedKeyImpl::getLongListValue( ) - throw(InvalidRegistryException, InvalidValueException, RuntimeException) + throw(InvalidRegistryException, InvalidValueException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); computeChanges(); @@ -404,7 +404,7 @@ Sequence< sal_Int32 > SAL_CALL NestedKeyImpl::getLongListValue( ) void SAL_CALL NestedKeyImpl::setLongListValue( const Sequence< sal_Int32 >& seqValue ) - throw(InvalidRegistryException, RuntimeException) + throw(InvalidRegistryException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); computeChanges(); @@ -428,7 +428,7 @@ void SAL_CALL NestedKeyImpl::setLongListValue( const Sequence< sal_Int32 >& seqV OUString SAL_CALL NestedKeyImpl::getAsciiValue( ) - throw(InvalidRegistryException, InvalidValueException, RuntimeException) + throw(InvalidRegistryException, InvalidValueException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); computeChanges(); @@ -449,7 +449,7 @@ OUString SAL_CALL NestedKeyImpl::getAsciiValue( ) void SAL_CALL NestedKeyImpl::setAsciiValue( const OUString& value ) - throw(InvalidRegistryException, RuntimeException) + throw(InvalidRegistryException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); computeChanges(); @@ -473,7 +473,7 @@ void SAL_CALL NestedKeyImpl::setAsciiValue( const OUString& value ) Sequence< OUString > SAL_CALL NestedKeyImpl::getAsciiListValue( ) - throw(InvalidRegistryException, InvalidValueException, RuntimeException) + throw(InvalidRegistryException, InvalidValueException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); computeChanges(); @@ -494,7 +494,7 @@ Sequence< OUString > SAL_CALL NestedKeyImpl::getAsciiListValue( ) void SAL_CALL NestedKeyImpl::setAsciiListValue( const Sequence< OUString >& seqValue ) - throw(InvalidRegistryException, RuntimeException) + throw(InvalidRegistryException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); computeChanges(); @@ -518,7 +518,7 @@ void SAL_CALL NestedKeyImpl::setAsciiListValue( const Sequence< OUString >& seqV OUString SAL_CALL NestedKeyImpl::getStringValue( ) - throw(InvalidRegistryException, InvalidValueException, RuntimeException) + throw(InvalidRegistryException, InvalidValueException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); computeChanges(); @@ -539,7 +539,7 @@ OUString SAL_CALL NestedKeyImpl::getStringValue( ) void SAL_CALL NestedKeyImpl::setStringValue( const OUString& value ) - throw(InvalidRegistryException, RuntimeException) + throw(InvalidRegistryException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); computeChanges(); @@ -563,7 +563,7 @@ void SAL_CALL NestedKeyImpl::setStringValue( const OUString& value ) Sequence< OUString > SAL_CALL NestedKeyImpl::getStringListValue( ) - throw(InvalidRegistryException, InvalidValueException, RuntimeException) + throw(InvalidRegistryException, InvalidValueException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); computeChanges(); @@ -584,7 +584,7 @@ Sequence< OUString > SAL_CALL NestedKeyImpl::getStringListValue( ) void SAL_CALL NestedKeyImpl::setStringListValue( const Sequence< OUString >& seqValue ) - throw(InvalidRegistryException, RuntimeException) + throw(InvalidRegistryException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); computeChanges(); @@ -608,7 +608,7 @@ void SAL_CALL NestedKeyImpl::setStringListValue( const Sequence< OUString >& seq Sequence< sal_Int8 > SAL_CALL NestedKeyImpl::getBinaryValue( ) - throw(InvalidRegistryException, InvalidValueException, RuntimeException) + throw(InvalidRegistryException, InvalidValueException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); computeChanges(); @@ -629,7 +629,7 @@ Sequence< sal_Int8 > SAL_CALL NestedKeyImpl::getBinaryValue( ) void SAL_CALL NestedKeyImpl::setBinaryValue( const Sequence< sal_Int8 >& value ) - throw(InvalidRegistryException, RuntimeException) + throw(InvalidRegistryException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); computeChanges(); @@ -653,7 +653,7 @@ void SAL_CALL NestedKeyImpl::setBinaryValue( const Sequence< sal_Int8 >& value ) Reference< XRegistryKey > SAL_CALL NestedKeyImpl::openKey( const OUString& aKeyName ) - throw(InvalidRegistryException, RuntimeException) + throw(InvalidRegistryException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); if ( !m_localKey.is() && !m_defaultKey.is() ) @@ -689,7 +689,7 @@ Reference< XRegistryKey > SAL_CALL NestedKeyImpl::openKey( const OUString& aKeyN Reference< XRegistryKey > SAL_CALL NestedKeyImpl::createKey( const OUString& aKeyName ) - throw(InvalidRegistryException, RuntimeException) + throw(InvalidRegistryException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); if ( (!m_localKey.is() && !m_defaultKey.is()) || @@ -747,7 +747,7 @@ Reference< XRegistryKey > SAL_CALL NestedKeyImpl::createKey( const OUString& aKe void SAL_CALL NestedKeyImpl::closeKey( ) - throw(InvalidRegistryException, RuntimeException) + throw(InvalidRegistryException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); if ( m_localKey.is() && m_localKey->isValid() ) @@ -762,7 +762,7 @@ void SAL_CALL NestedKeyImpl::closeKey( ) void SAL_CALL NestedKeyImpl::deleteKey( const OUString& rKeyName ) - throw(InvalidRegistryException, RuntimeException) + throw(InvalidRegistryException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); if ( m_localKey.is() && m_localKey->isValid() && @@ -785,7 +785,7 @@ void SAL_CALL NestedKeyImpl::deleteKey( const OUString& rKeyName ) Sequence< Reference< XRegistryKey > > SAL_CALL NestedKeyImpl::openKeys( ) - throw(InvalidRegistryException, RuntimeException) + throw(InvalidRegistryException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); if ( !m_localKey.is() && !m_defaultKey.is() ) @@ -865,7 +865,7 @@ Sequence< Reference< XRegistryKey > > SAL_CALL NestedKeyImpl::openKeys( ) Sequence< OUString > SAL_CALL NestedKeyImpl::getKeyNames( ) - throw(InvalidRegistryException, RuntimeException) + throw(InvalidRegistryException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); if ( !m_localKey.is() && !m_defaultKey.is() ) @@ -932,7 +932,7 @@ Sequence< OUString > SAL_CALL NestedKeyImpl::getKeyNames( ) sal_Bool SAL_CALL NestedKeyImpl::createLink( const OUString& aLinkName, const OUString& aLinkTarget ) - throw(InvalidRegistryException, RuntimeException) + throw(InvalidRegistryException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); @@ -990,7 +990,7 @@ sal_Bool SAL_CALL NestedKeyImpl::createLink( const OUString& aLinkName, const OU void SAL_CALL NestedKeyImpl::deleteLink( const OUString& rLinkName ) - throw(InvalidRegistryException, RuntimeException) + throw(InvalidRegistryException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); if ( !m_localKey.is() && !m_defaultKey.is() ) @@ -1036,7 +1036,7 @@ void SAL_CALL NestedKeyImpl::deleteLink( const OUString& rLinkName ) OUString SAL_CALL NestedKeyImpl::getLinkTarget( const OUString& rLinkName ) - throw(InvalidRegistryException, RuntimeException) + throw(InvalidRegistryException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); if ( !m_localKey.is() && !m_defaultKey.is() ) @@ -1090,7 +1090,7 @@ OUString SAL_CALL NestedKeyImpl::getLinkTarget( const OUString& rLinkName ) OUString SAL_CALL NestedKeyImpl::getResolvedName( const OUString& aKeyName ) - throw(InvalidRegistryException, RuntimeException) + throw(InvalidRegistryException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_pRegistry->m_mutex ); if ( !m_localKey.is() && !m_defaultKey.is() ) @@ -1129,21 +1129,21 @@ public: : m_xReg1( r1 ) , m_xReg2( r2 ) {} public: - virtual sal_Bool SAL_CALL hasMoreElements( ) throw (RuntimeException); - virtual Any SAL_CALL nextElement( ) throw (NoSuchElementException, WrappedTargetException, RuntimeException); + virtual sal_Bool SAL_CALL hasMoreElements( ) throw (RuntimeException, std::exception); + virtual Any SAL_CALL nextElement( ) throw (NoSuchElementException, WrappedTargetException, RuntimeException, std::exception); private: Reference< XSimpleRegistry > m_xReg1; Reference< XSimpleRegistry > m_xReg2; }; -sal_Bool RegistryEnumueration::hasMoreElements( ) throw (RuntimeException) +sal_Bool RegistryEnumueration::hasMoreElements( ) throw (RuntimeException, std::exception) { return m_xReg1.is() || m_xReg2.is(); } Any RegistryEnumueration::nextElement( ) - throw (NoSuchElementException, WrappedTargetException, RuntimeException) + throw (NoSuchElementException, WrappedTargetException, RuntimeException, std::exception) { Any a; if( m_xReg1.is() ) @@ -1165,18 +1165,18 @@ Any RegistryEnumueration::nextElement( ) } -Reference< XEnumeration > NestedRegistryImpl::createEnumeration( ) throw (RuntimeException) +Reference< XEnumeration > NestedRegistryImpl::createEnumeration( ) throw (RuntimeException, std::exception) { MutexGuard guard( m_mutex ); return new RegistryEnumueration( m_localReg, m_defaultReg ); } -Type NestedRegistryImpl::getElementType( ) throw (RuntimeException) +Type NestedRegistryImpl::getElementType( ) throw (RuntimeException, std::exception) { return getCppuType( &m_localReg ); } -sal_Bool SAL_CALL NestedRegistryImpl::hasElements( ) throw (RuntimeException) +sal_Bool SAL_CALL NestedRegistryImpl::hasElements( ) throw (RuntimeException, std::exception) { MutexGuard guard( m_mutex ); return m_localReg.is() || m_defaultReg.is(); @@ -1186,19 +1186,19 @@ sal_Bool SAL_CALL NestedRegistryImpl::hasElements( ) throw (RuntimeException) OUString SAL_CALL NestedRegistryImpl::getImplementationName( ) - throw(RuntimeException) + throw(RuntimeException, std::exception) { return OUString("com.sun.star.comp.stoc.NestedRegistry"); } sal_Bool SAL_CALL NestedRegistryImpl::supportsService( const OUString& ServiceName ) - throw(RuntimeException) + throw(RuntimeException, std::exception) { return cppu::supportsService(this, ServiceName); } Sequence<OUString> SAL_CALL NestedRegistryImpl::getSupportedServiceNames( ) - throw(RuntimeException) + throw(RuntimeException, std::exception) { Sequence< OUString > seqNames(1); seqNames[0] = "com.sun.star.registry.NestedRegistry"; @@ -1207,7 +1207,7 @@ Sequence<OUString> SAL_CALL NestedRegistryImpl::getSupportedServiceNames( ) void SAL_CALL NestedRegistryImpl::initialize( const Sequence< Any >& aArguments ) - throw( Exception, RuntimeException ) + throw( Exception, RuntimeException, std::exception ) { Guard< Mutex > aGuard( m_mutex ); if ( (aArguments.getLength() == 2) && @@ -1222,7 +1222,7 @@ void SAL_CALL NestedRegistryImpl::initialize( const Sequence< Any >& aArguments } -OUString SAL_CALL NestedRegistryImpl::getURL() throw(RuntimeException) +OUString SAL_CALL NestedRegistryImpl::getURL() throw(RuntimeException, std::exception) { Guard< Mutex > aGuard( m_mutex ); try @@ -1239,7 +1239,7 @@ OUString SAL_CALL NestedRegistryImpl::getURL() throw(RuntimeException) void SAL_CALL NestedRegistryImpl::open( const OUString&, sal_Bool, sal_Bool ) - throw(InvalidRegistryException, RuntimeException) + throw(InvalidRegistryException, RuntimeException, std::exception) { throw InvalidRegistryException( OUString("the 'open' method is not specified for a nested registry"), @@ -1247,7 +1247,7 @@ void SAL_CALL NestedRegistryImpl::open( const OUString&, sal_Bool, sal_Bool ) } -sal_Bool SAL_CALL NestedRegistryImpl::isValid( ) throw(RuntimeException) +sal_Bool SAL_CALL NestedRegistryImpl::isValid( ) throw(RuntimeException, std::exception) { Guard< Mutex > aGuard( m_mutex ); try @@ -1265,7 +1265,7 @@ sal_Bool SAL_CALL NestedRegistryImpl::isValid( ) throw(RuntimeException) void SAL_CALL NestedRegistryImpl::close( ) - throw(InvalidRegistryException, RuntimeException) + throw(InvalidRegistryException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_mutex ); if ( m_localReg.is() && m_localReg->isValid() ) @@ -1280,7 +1280,7 @@ void SAL_CALL NestedRegistryImpl::close( ) void SAL_CALL NestedRegistryImpl::destroy( ) - throw(InvalidRegistryException, RuntimeException) + throw(InvalidRegistryException, RuntimeException, std::exception) { throw InvalidRegistryException( OUString("the 'destroy' method is not specified for a nested registry"), @@ -1289,7 +1289,7 @@ void SAL_CALL NestedRegistryImpl::destroy( ) Reference< XRegistryKey > SAL_CALL NestedRegistryImpl::getRootKey( ) - throw(InvalidRegistryException, RuntimeException) + throw(InvalidRegistryException, RuntimeException, std::exception) { Reference<XRegistryKey> tmpKey; @@ -1320,7 +1320,7 @@ Reference< XRegistryKey > SAL_CALL NestedRegistryImpl::getRootKey( ) sal_Bool SAL_CALL NestedRegistryImpl::isReadOnly( ) - throw(InvalidRegistryException, RuntimeException) + throw(InvalidRegistryException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_mutex ); try @@ -1337,7 +1337,7 @@ sal_Bool SAL_CALL NestedRegistryImpl::isReadOnly( ) void SAL_CALL NestedRegistryImpl::mergeKey( const OUString& aKeyName, const OUString& aUrl ) - throw(InvalidRegistryException, MergeConflictException, RuntimeException) + throw(InvalidRegistryException, MergeConflictException, RuntimeException, std::exception) { Guard< Mutex > aGuard( m_mutex ); if ( m_localReg.is() && m_localReg->isValid() ) diff --git a/stoc/source/implementationregistration/implreg.cxx b/stoc/source/implementationregistration/implreg.cxx index 3acc0733f646..292e18890798 100644 --- a/stoc/source/implementationregistration/implreg.cxx +++ b/stoc/source/implementationregistration/implreg.cxx @@ -1212,29 +1212,29 @@ public: ~ImplementationRegistration(); // XServiceInfo - OUString SAL_CALL getImplementationName() throw(RuntimeException); - sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw(RuntimeException); - Sequence< OUString > SAL_CALL getSupportedServiceNames(void) throw(RuntimeException); + OUString SAL_CALL getImplementationName() throw(RuntimeException, std::exception); + sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw(RuntimeException, std::exception); + Sequence< OUString > SAL_CALL getSupportedServiceNames(void) throw(RuntimeException, std::exception); // XImplementationRegistration virtual void SAL_CALL registerImplementation( const OUString& implementationLoader, const OUString& location, const Reference < XSimpleRegistry > & xReg) - throw( CannotRegisterImplementationException, RuntimeException ); + throw( CannotRegisterImplementationException, RuntimeException, std::exception ); virtual sal_Bool SAL_CALL revokeImplementation( const OUString& location, const Reference < XSimpleRegistry >& xReg) - throw( RuntimeException ); + throw( RuntimeException, std::exception ); virtual Sequence< OUString > SAL_CALL getImplementations( const OUString& implementationLoader, const OUString& location) - throw( RuntimeException ); + throw( RuntimeException, std::exception ); virtual Sequence< OUString > SAL_CALL checkInstantiation( const OUString& implementationName) - throw( RuntimeException ); + throw( RuntimeException, std::exception ); // XImplementationRegistration2 virtual void SAL_CALL registerImplementationWithLocation( @@ -1242,12 +1242,12 @@ public: const OUString& location, const OUString& registeredLocation, const Reference < XSimpleRegistry > & xReg) - throw( CannotRegisterImplementationException, RuntimeException ); + throw( CannotRegisterImplementationException, RuntimeException, std::exception ); // XInitialization virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) - throw( ::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException); + throw( ::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception); private: // helper methods void prepareRegister( @@ -1296,19 +1296,19 @@ ImplementationRegistration::ImplementationRegistration( const Reference < XCompo ImplementationRegistration::~ImplementationRegistration() {} // XServiceInfo -OUString ImplementationRegistration::getImplementationName() throw(RuntimeException) +OUString ImplementationRegistration::getImplementationName() throw(RuntimeException, std::exception) { return OUString("com.sun.star.comp.stoc.ImplementationRegistration"); } // XServiceInfo -sal_Bool ImplementationRegistration::supportsService(const OUString& ServiceName) throw(RuntimeException) +sal_Bool ImplementationRegistration::supportsService(const OUString& ServiceName) throw(RuntimeException, std::exception) { return cppu::supportsService(this, ServiceName); } // XServiceInfo -Sequence< OUString > ImplementationRegistration::getSupportedServiceNames(void) throw(RuntimeException) +Sequence< OUString > ImplementationRegistration::getSupportedServiceNames(void) throw(RuntimeException, std::exception) { Sequence< OUString > seqNames(1); seqNames[0] = "com.sun.star.registry.ImplementationRegistration"; @@ -1344,7 +1344,7 @@ Reference< XSimpleRegistry > ImplementationRegistration::getRegistryFromServiceM void ImplementationRegistration::initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArgs ) - throw( ::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException) + throw( ::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) { if( aArgs.getLength() != 4 ) { @@ -1438,7 +1438,7 @@ void ImplementationRegistration::registerImplementationWithLocation( const OUString& locationUrl, const OUString& registeredLocationUrl, const Reference < XSimpleRegistry > & xReg) - throw( CannotRegisterImplementationException, RuntimeException ) + throw( CannotRegisterImplementationException, RuntimeException, std::exception ) { prepareRegister( implementationLoaderUrl, locationUrl, registeredLocationUrl, xReg); @@ -1543,7 +1543,7 @@ void ImplementationRegistration::registerImplementation( const OUString& implementationLoaderUrl, const OUString& locationUrl, const Reference < XSimpleRegistry > & xReg) - throw( CannotRegisterImplementationException, RuntimeException ) + throw( CannotRegisterImplementationException, RuntimeException, std::exception ) { prepareRegister(implementationLoaderUrl, locationUrl, locationUrl, xReg); } @@ -1554,7 +1554,7 @@ void ImplementationRegistration::registerImplementation( sal_Bool ImplementationRegistration::revokeImplementation(const OUString& location, const Reference < XSimpleRegistry >& xReg) - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { sal_Bool ret = sal_False; @@ -1603,7 +1603,7 @@ sal_Bool ImplementationRegistration::revokeImplementation(const OUString& locati Sequence< OUString > ImplementationRegistration::getImplementations( const OUString & implementationLoaderUrl, const OUString & locationUrl) - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { OUString activatorName; @@ -1684,7 +1684,7 @@ Sequence< OUString > ImplementationRegistration::getImplementations( // virtual function checkInstantiation of XImplementationRegistration Sequence< OUString > ImplementationRegistration::checkInstantiation(const OUString&) - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { OSL_FAIL( "ImplementationRegistration::checkInstantiation not implemented" ); return Sequence<OUString>(); diff --git a/stoc/source/inspect/introspection.cxx b/stoc/source/inspect/introspection.cxx index 80e84fc20fd0..ffb7243c9de3 100644 --- a/stoc/source/inspect/introspection.cxx +++ b/stoc/source/inspect/introspection.cxx @@ -719,32 +719,32 @@ public: // Methoden von XIntrospectionAccess virtual sal_Int32 SAL_CALL getSuppliedMethodConcepts(void) - throw( RuntimeException ); + throw( RuntimeException, std::exception ); virtual sal_Int32 SAL_CALL getSuppliedPropertyConcepts(void) - throw( RuntimeException ); + throw( RuntimeException, std::exception ); virtual Property SAL_CALL getProperty(const OUString& Name, sal_Int32 PropertyConcepts) - throw( NoSuchElementException, RuntimeException ); + throw( NoSuchElementException, RuntimeException, std::exception ); virtual sal_Bool SAL_CALL hasProperty(const OUString& Name, sal_Int32 PropertyConcepts) - throw( RuntimeException ); + throw( RuntimeException, std::exception ); virtual Sequence< Property > SAL_CALL getProperties(sal_Int32 PropertyConcepts) - throw( RuntimeException ); + throw( RuntimeException, std::exception ); virtual Reference<XIdlMethod> SAL_CALL getMethod(const OUString& Name, sal_Int32 MethodConcepts) - throw( NoSuchMethodException, RuntimeException ); + throw( NoSuchMethodException, RuntimeException, std::exception ); virtual sal_Bool SAL_CALL hasMethod(const OUString& Name, sal_Int32 MethodConcepts) - throw( RuntimeException ); + throw( RuntimeException, std::exception ); virtual Sequence< Reference<XIdlMethod> > SAL_CALL getMethods(sal_Int32 MethodConcepts) - throw( RuntimeException ); + throw( RuntimeException, std::exception ); virtual Sequence< Type > SAL_CALL getSupportedListeners(void) - throw( RuntimeException ); + throw( RuntimeException, std::exception ); using OWeakObject::queryAdapter; virtual Reference<XInterface> SAL_CALL queryAdapter( const Type& rType ) - throw( IllegalTypeException, RuntimeException ); + throw( IllegalTypeException, RuntimeException, std::exception ); // Methoden von XMaterialHolder - virtual Any SAL_CALL getMaterial(void) throw(RuntimeException); + virtual Any SAL_CALL getMaterial(void) throw(RuntimeException, std::exception); // Methoden von XExactName - virtual OUString SAL_CALL getExactName( const OUString& rApproximateName ) throw( RuntimeException ); + virtual OUString SAL_CALL getExactName( const OUString& rApproximateName ) throw( RuntimeException, std::exception ); }; ImplIntrospectionAccess::ImplIntrospectionAccess @@ -805,78 +805,78 @@ public: rtl::Reference< IntrospectionAccessStatic_Impl > const & pStaticImpl_ ); // Methoden von XInterface - virtual Any SAL_CALL queryInterface( const Type& rType ) throw( RuntimeException ); + virtual Any SAL_CALL queryInterface( const Type& rType ) throw( RuntimeException, std::exception ); virtual void SAL_CALL acquire() throw() { OWeakObject::acquire(); } virtual void SAL_CALL release() throw() { OWeakObject::release(); } // Methoden von XPropertySet - virtual Reference<XPropertySetInfo> SAL_CALL getPropertySetInfo() throw( RuntimeException ); + virtual Reference<XPropertySetInfo> SAL_CALL getPropertySetInfo() throw( RuntimeException, std::exception ); virtual void SAL_CALL setPropertyValue(const OUString& aPropertyName, const Any& aValue) - throw( UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException ); + throw( UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException, std::exception ); virtual Any SAL_CALL getPropertyValue(const OUString& aPropertyName) - throw( UnknownPropertyException, WrappedTargetException, RuntimeException ); + throw( UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception ); virtual void SAL_CALL addPropertyChangeListener(const OUString& aPropertyName, const Reference<XPropertyChangeListener>& aListener) - throw( UnknownPropertyException, WrappedTargetException, RuntimeException ); + throw( UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception ); virtual void SAL_CALL removePropertyChangeListener(const OUString& aPropertyName, const Reference<XPropertyChangeListener>& aListener) - throw( UnknownPropertyException, WrappedTargetException, RuntimeException ); + throw( UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception ); virtual void SAL_CALL addVetoableChangeListener(const OUString& aPropertyName, const Reference<XVetoableChangeListener>& aListener) - throw( UnknownPropertyException, WrappedTargetException, RuntimeException ); + throw( UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception ); virtual void SAL_CALL removeVetoableChangeListener(const OUString& aPropertyName, const Reference<XVetoableChangeListener>& aListener) - throw( UnknownPropertyException, WrappedTargetException, RuntimeException ); + throw( UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception ); // Methoden von XFastPropertySet virtual void SAL_CALL setFastPropertyValue(sal_Int32 nHandle, const Any& aValue) - throw( UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException ); + throw( UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException, std::exception ); virtual Any SAL_CALL getFastPropertyValue(sal_Int32 nHandle) - throw( UnknownPropertyException, WrappedTargetException, RuntimeException ); + throw( UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception ); // Methoden von XPropertySetInfo - virtual Sequence< Property > SAL_CALL getProperties(void) throw( RuntimeException ); - virtual Property SAL_CALL getPropertyByName(const OUString& Name) throw( RuntimeException ); - virtual sal_Bool SAL_CALL hasPropertyByName(const OUString& Name) throw( RuntimeException ); + virtual Sequence< Property > SAL_CALL getProperties(void) throw( RuntimeException, std::exception ); + virtual Property SAL_CALL getPropertyByName(const OUString& Name) throw( RuntimeException, std::exception ); + virtual sal_Bool SAL_CALL hasPropertyByName(const OUString& Name) throw( RuntimeException, std::exception ); // Methoden von XElementAccess - virtual Type SAL_CALL getElementType(void) throw( RuntimeException ); - virtual sal_Bool SAL_CALL hasElements(void) throw( RuntimeException ); + virtual Type SAL_CALL getElementType(void) throw( RuntimeException, std::exception ); + virtual sal_Bool SAL_CALL hasElements(void) throw( RuntimeException, std::exception ); // Methoden von XNameAccess virtual Any SAL_CALL getByName(const OUString& Name) - throw( NoSuchElementException, WrappedTargetException, RuntimeException ); - virtual Sequence< OUString > SAL_CALL getElementNames(void) throw( RuntimeException ); - virtual sal_Bool SAL_CALL hasByName(const OUString& Name) throw( RuntimeException ); + throw( NoSuchElementException, WrappedTargetException, RuntimeException, std::exception ); + virtual Sequence< OUString > SAL_CALL getElementNames(void) throw( RuntimeException, std::exception ); + virtual sal_Bool SAL_CALL hasByName(const OUString& Name) throw( RuntimeException, std::exception ); // Methoden von XNameContainer virtual void SAL_CALL insertByName(const OUString& Name, const Any& Element) - throw( IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException ); + throw( IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException, std::exception ); virtual void SAL_CALL replaceByName(const OUString& Name, const Any& Element) - throw( IllegalArgumentException, NoSuchElementException, WrappedTargetException, RuntimeException ); + throw( IllegalArgumentException, NoSuchElementException, WrappedTargetException, RuntimeException, std::exception ); virtual void SAL_CALL removeByName(const OUString& Name) - throw( NoSuchElementException, WrappedTargetException, RuntimeException ); + throw( NoSuchElementException, WrappedTargetException, RuntimeException, std::exception ); // Methoden von XIndexAccess - virtual sal_Int32 SAL_CALL getCount(void) throw( RuntimeException ); + virtual sal_Int32 SAL_CALL getCount(void) throw( RuntimeException, std::exception ); virtual Any SAL_CALL getByIndex(sal_Int32 Index) - throw( IndexOutOfBoundsException, WrappedTargetException, RuntimeException ); + throw( IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception ); // Methoden von XIndexContainer virtual void SAL_CALL insertByIndex(sal_Int32 Index, const Any& Element) - throw( IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException ); + throw( IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception ); virtual void SAL_CALL replaceByIndex(sal_Int32 Index, const Any& Element) - throw( IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException ); + throw( IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception ); virtual void SAL_CALL removeByIndex(sal_Int32 Index) - throw( IndexOutOfBoundsException, WrappedTargetException, RuntimeException ); + throw( IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception ); // Methoden von XEnumerationAccess - virtual Reference<XEnumeration> SAL_CALL createEnumeration(void) throw( RuntimeException ); + virtual Reference<XEnumeration> SAL_CALL createEnumeration(void) throw( RuntimeException, std::exception ); // Methoden von XIdlArray virtual void SAL_CALL realloc(Any& array, sal_Int32 length) - throw( IllegalArgumentException, RuntimeException ); - virtual sal_Int32 SAL_CALL getLen(const Any& array) throw( IllegalArgumentException, RuntimeException ); + throw( IllegalArgumentException, RuntimeException, std::exception ); + virtual sal_Int32 SAL_CALL getLen(const Any& array) throw( IllegalArgumentException, RuntimeException, std::exception ); virtual Any SAL_CALL get(const Any& array, sal_Int32 index) - throw( IllegalArgumentException, ArrayIndexOutOfBoundsException, RuntimeException ); + throw( IllegalArgumentException, ArrayIndexOutOfBoundsException, RuntimeException, std::exception ); virtual void SAL_CALL set(Any& array, sal_Int32 index, const Any& value) - throw( IllegalArgumentException, ArrayIndexOutOfBoundsException, RuntimeException ); + throw( IllegalArgumentException, ArrayIndexOutOfBoundsException, RuntimeException, std::exception ); }; ImplIntrospectionAdapter::ImplIntrospectionAdapter( ImplIntrospectionAccess* pAccess_, @@ -902,7 +902,7 @@ ImplIntrospectionAdapter::ImplIntrospectionAdapter( ImplIntrospectionAccess* pAc // Methoden von XInterface Any SAL_CALL ImplIntrospectionAdapter::queryInterface( const Type& rType ) - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { Any aRet( ::cppu::queryInterface( rType, @@ -937,25 +937,25 @@ Any SAL_CALL ImplIntrospectionAdapter::queryInterface( const Type& rType ) // Methoden von XPropertySet Reference<XPropertySetInfo> ImplIntrospectionAdapter::getPropertySetInfo(void) - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { return (XPropertySetInfo *)this; } void ImplIntrospectionAdapter::setPropertyValue(const OUString& aPropertyName, const Any& aValue) - throw( UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException ) + throw( UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException, std::exception ) { mpStaticImpl->setPropertyValue( mrInspectedObject, aPropertyName, aValue ); } Any ImplIntrospectionAdapter::getPropertyValue(const OUString& aPropertyName) - throw( UnknownPropertyException, WrappedTargetException, RuntimeException ) + throw( UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception ) { return mpStaticImpl->getPropertyValue( mrInspectedObject, aPropertyName ); } void ImplIntrospectionAdapter::addPropertyChangeListener(const OUString& aPropertyName, const Reference<XPropertyChangeListener>& aListener) - throw( UnknownPropertyException, WrappedTargetException, RuntimeException ) + throw( UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception ) { if( mxIface.is() ) { @@ -968,7 +968,7 @@ void ImplIntrospectionAdapter::addPropertyChangeListener(const OUString& aProper } void ImplIntrospectionAdapter::removePropertyChangeListener(const OUString& aPropertyName, const Reference<XPropertyChangeListener>& aListener) - throw( UnknownPropertyException, WrappedTargetException, RuntimeException ) + throw( UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception ) { if( mxIface.is() ) { @@ -981,7 +981,7 @@ void ImplIntrospectionAdapter::removePropertyChangeListener(const OUString& aPro } void ImplIntrospectionAdapter::addVetoableChangeListener(const OUString& aPropertyName, const Reference<XVetoableChangeListener>& aListener) - throw( UnknownPropertyException, WrappedTargetException, RuntimeException ) + throw( UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception ) { if( mxIface.is() ) { @@ -994,7 +994,7 @@ void ImplIntrospectionAdapter::addVetoableChangeListener(const OUString& aProper } void ImplIntrospectionAdapter::removeVetoableChangeListener(const OUString& aPropertyName, const Reference<XVetoableChangeListener>& aListener) - throw( UnknownPropertyException, WrappedTargetException, RuntimeException ) + throw( UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception ) { if( mxIface.is() ) { @@ -1008,143 +1008,143 @@ void ImplIntrospectionAdapter::removeVetoableChangeListener(const OUString& aPro // Methoden von XFastPropertySet void ImplIntrospectionAdapter::setFastPropertyValue(sal_Int32, const Any&) - throw( UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException ) + throw( UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException, std::exception ) { } Any ImplIntrospectionAdapter::getFastPropertyValue(sal_Int32) - throw( UnknownPropertyException, WrappedTargetException, RuntimeException ) + throw( UnknownPropertyException, WrappedTargetException, RuntimeException, std::exception ) { return Any(); } // Methoden von XPropertySetInfo -Sequence< Property > ImplIntrospectionAdapter::getProperties(void) throw( RuntimeException ) +Sequence< Property > ImplIntrospectionAdapter::getProperties(void) throw( RuntimeException, std::exception ) { return mpStaticImpl->getProperties(); } Property ImplIntrospectionAdapter::getPropertyByName(const OUString& Name) - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { return mpAccess->getProperty( Name, PropertyConcept::ALL ); } sal_Bool ImplIntrospectionAdapter::hasPropertyByName(const OUString& Name) - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { return mpAccess->hasProperty( Name, PropertyConcept::ALL ); } // Methoden von XElementAccess -Type ImplIntrospectionAdapter::getElementType(void) throw( RuntimeException ) +Type ImplIntrospectionAdapter::getElementType(void) throw( RuntimeException, std::exception ) { return mxObjElementAccess->getElementType(); } -sal_Bool ImplIntrospectionAdapter::hasElements(void) throw( RuntimeException ) +sal_Bool ImplIntrospectionAdapter::hasElements(void) throw( RuntimeException, std::exception ) { return mxObjElementAccess->hasElements(); } // Methoden von XNameAccess Any ImplIntrospectionAdapter::getByName(const OUString& Name) - throw( NoSuchElementException, WrappedTargetException, RuntimeException ) + throw( NoSuchElementException, WrappedTargetException, RuntimeException, std::exception ) { return mxObjNameAccess->getByName( Name ); } Sequence< OUString > ImplIntrospectionAdapter::getElementNames(void) - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { return mxObjNameAccess->getElementNames(); } sal_Bool ImplIntrospectionAdapter::hasByName(const OUString& Name) - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { return mxObjNameAccess->hasByName( Name ); } // Methoden von XNameContainer void ImplIntrospectionAdapter::insertByName(const OUString& Name, const Any& Element) - throw( IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException ) + throw( IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException, std::exception ) { mxObjNameContainer->insertByName( Name, Element ); } void ImplIntrospectionAdapter::replaceByName(const OUString& Name, const Any& Element) - throw( IllegalArgumentException, NoSuchElementException, WrappedTargetException, RuntimeException ) + throw( IllegalArgumentException, NoSuchElementException, WrappedTargetException, RuntimeException, std::exception ) { mxObjNameContainer->replaceByName( Name, Element ); } void ImplIntrospectionAdapter::removeByName(const OUString& Name) - throw( NoSuchElementException, WrappedTargetException, RuntimeException ) + throw( NoSuchElementException, WrappedTargetException, RuntimeException, std::exception ) { mxObjNameContainer->removeByName( Name ); } // Methoden von XIndexAccess // Schon in XNameAccess: virtual Reference<XIdlClass> getElementType(void) const -sal_Int32 ImplIntrospectionAdapter::getCount(void) throw( RuntimeException ) +sal_Int32 ImplIntrospectionAdapter::getCount(void) throw( RuntimeException, std::exception ) { return mxObjIndexAccess->getCount(); } Any ImplIntrospectionAdapter::getByIndex(sal_Int32 Index) - throw( IndexOutOfBoundsException, WrappedTargetException, RuntimeException ) + throw( IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception ) { return mxObjIndexAccess->getByIndex( Index ); } // Methoden von XIndexContainer void ImplIntrospectionAdapter::insertByIndex(sal_Int32 Index, const Any& Element) - throw( IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException ) + throw( IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception ) { mxObjIndexContainer->insertByIndex( Index, Element ); } void ImplIntrospectionAdapter::replaceByIndex(sal_Int32 Index, const Any& Element) - throw( IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException ) + throw( IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception ) { mxObjIndexContainer->replaceByIndex( Index, Element ); } void ImplIntrospectionAdapter::removeByIndex(sal_Int32 Index) - throw( IndexOutOfBoundsException, WrappedTargetException, RuntimeException ) + throw( IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception ) { mxObjIndexContainer->removeByIndex( Index ); } // Methoden von XEnumerationAccess // Schon in XNameAccess: virtual Reference<XIdlClass> getElementType(void) const; -Reference<XEnumeration> ImplIntrospectionAdapter::createEnumeration(void) throw( RuntimeException ) +Reference<XEnumeration> ImplIntrospectionAdapter::createEnumeration(void) throw( RuntimeException, std::exception ) { return mxObjEnumerationAccess->createEnumeration(); } // Methoden von XIdlArray void ImplIntrospectionAdapter::realloc(Any& array, sal_Int32 length) - throw( IllegalArgumentException, RuntimeException ) + throw( IllegalArgumentException, RuntimeException, std::exception ) { mxObjIdlArray->realloc( array, length ); } sal_Int32 ImplIntrospectionAdapter::getLen(const Any& array) - throw( IllegalArgumentException, RuntimeException ) + throw( IllegalArgumentException, RuntimeException, std::exception ) { return mxObjIdlArray->getLen( array ); } Any ImplIntrospectionAdapter::get(const Any& array, sal_Int32 index) - throw( IllegalArgumentException, ArrayIndexOutOfBoundsException, RuntimeException ) + throw( IllegalArgumentException, ArrayIndexOutOfBoundsException, RuntimeException, std::exception ) { return mxObjIdlArray->get( array, index ); } void ImplIntrospectionAdapter::set(Any& array, sal_Int32 index, const Any& value) - throw( IllegalArgumentException, ArrayIndexOutOfBoundsException, RuntimeException ) + throw( IllegalArgumentException, ArrayIndexOutOfBoundsException, RuntimeException, std::exception ) { mxObjIdlArray->set( array, index, value ); } @@ -1156,7 +1156,7 @@ void ImplIntrospectionAdapter::set(Any& array, sal_Int32 index, const Any& value // Methoden von XIntrospectionAccess sal_Int32 ImplIntrospectionAccess::getSuppliedMethodConcepts(void) - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { return MethodConcept::DANGEROUS | PROPERTY | @@ -1167,7 +1167,7 @@ sal_Int32 ImplIntrospectionAccess::getSuppliedMethodConcepts(void) } sal_Int32 ImplIntrospectionAccess::getSuppliedPropertyConcepts(void) - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { return PropertyConcept::DANGEROUS | PROPERTYSET | @@ -1176,7 +1176,7 @@ sal_Int32 ImplIntrospectionAccess::getSuppliedPropertyConcepts(void) } Property ImplIntrospectionAccess::getProperty(const OUString& Name, sal_Int32 PropertyConcepts) - throw( NoSuchElementException, RuntimeException ) + throw( NoSuchElementException, RuntimeException, std::exception ) { Property aRet; sal_Int32 i = mpStaticImpl->getPropertyIndex( Name ); @@ -1197,7 +1197,7 @@ Property ImplIntrospectionAccess::getProperty(const OUString& Name, sal_Int32 Pr } sal_Bool ImplIntrospectionAccess::hasProperty(const OUString& Name, sal_Int32 PropertyConcepts) - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { sal_Int32 i = mpStaticImpl->getPropertyIndex( Name ); sal_Bool bRet = sal_False; @@ -1211,7 +1211,7 @@ sal_Bool ImplIntrospectionAccess::hasProperty(const OUString& Name, sal_Int32 Pr } Sequence< Property > ImplIntrospectionAccess::getProperties(sal_Int32 PropertyConcepts) - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { // Wenn alle unterstuetzten Konzepte gefordert werden, Sequence einfach durchreichen sal_Int32 nAllSupportedMask = PROPERTYSET | @@ -1268,7 +1268,7 @@ Sequence< Property > ImplIntrospectionAccess::getProperties(sal_Int32 PropertyCo } Reference<XIdlMethod> ImplIntrospectionAccess::getMethod(const OUString& Name, sal_Int32 MethodConcepts) - throw( NoSuchMethodException, RuntimeException ) + throw( NoSuchMethodException, RuntimeException, std::exception ) { Reference<XIdlMethod> xRet; sal_Int32 i = mpStaticImpl->getMethodIndex( Name ); @@ -1288,7 +1288,7 @@ Reference<XIdlMethod> ImplIntrospectionAccess::getMethod(const OUString& Name, s } sal_Bool ImplIntrospectionAccess::hasMethod(const OUString& Name, sal_Int32 MethodConcepts) - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { sal_Int32 i = mpStaticImpl->getMethodIndex( Name ); sal_Bool bRet = sal_False; @@ -1302,7 +1302,7 @@ sal_Bool ImplIntrospectionAccess::hasMethod(const OUString& Name, sal_Int32 Meth } Sequence< Reference<XIdlMethod> > ImplIntrospectionAccess::getMethods(sal_Int32 MethodConcepts) - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { ImplIntrospectionAccess* pThis = (ImplIntrospectionAccess*)this; // const umgehen @@ -1382,13 +1382,13 @@ Sequence< Reference<XIdlMethod> > ImplIntrospectionAccess::getMethods(sal_Int32 } Sequence< Type > ImplIntrospectionAccess::getSupportedListeners(void) - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { return mpStaticImpl->getSupportedListeners(); } Reference<XInterface> SAL_CALL ImplIntrospectionAccess::queryAdapter( const Type& rType ) - throw( IllegalTypeException, RuntimeException ) + throw( IllegalTypeException, RuntimeException, std::exception ) { // Gibt es schon einen Adapter? Reference< XInterface > xAdapter( maAdapter ); @@ -1404,7 +1404,7 @@ Reference<XInterface> SAL_CALL ImplIntrospectionAccess::queryAdapter( const Type } // Methoden von XMaterialHolder -Any ImplIntrospectionAccess::getMaterial(void) throw(RuntimeException) +Any ImplIntrospectionAccess::getMaterial(void) throw(RuntimeException, std::exception) { return maInspectedObject; } @@ -1420,7 +1420,7 @@ OUString toLower( OUString aUStr ) } // Methoden von XExactName -OUString ImplIntrospectionAccess::getExactName( const OUString& rApproximateName ) throw( RuntimeException ) +OUString ImplIntrospectionAccess::getExactName( const OUString& rApproximateName ) throw( RuntimeException, std::exception ) { OUString aRetStr; LowerToExactNameMap::iterator aIt = @@ -1619,28 +1619,28 @@ public: ImplIntrospection( const Reference<XMultiServiceFactory> & rXSMgr ); // Methoden von XInterface - virtual Any SAL_CALL queryInterface( const Type& rType ) throw( RuntimeException ); + virtual Any SAL_CALL queryInterface( const Type& rType ) throw( RuntimeException, std::exception ); virtual void SAL_CALL acquire() throw() { OComponentHelper::acquire(); } virtual void SAL_CALL release() throw() { OComponentHelper::release(); } // XTypeProvider - Sequence< Type > SAL_CALL getTypes( ) throw( RuntimeException ); - Sequence<sal_Int8> SAL_CALL getImplementationId( ) throw( RuntimeException ); + Sequence< Type > SAL_CALL getTypes( ) throw( RuntimeException, std::exception ); + Sequence<sal_Int8> SAL_CALL getImplementationId( ) throw( RuntimeException, std::exception ); // XServiceInfo - OUString SAL_CALL getImplementationName() throw(); - sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw(); - Sequence< OUString > SAL_CALL getSupportedServiceNames(void) throw(); + OUString SAL_CALL getImplementationName() throw(std::exception); + sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw(std::exception); + Sequence< OUString > SAL_CALL getSupportedServiceNames(void) throw(std::exception); static OUString SAL_CALL getImplementationName_Static( ); static Sequence< OUString > SAL_CALL getSupportedServiceNames_Static(void) throw(); // Methoden von XIntrospection virtual Reference<XIntrospectionAccess> SAL_CALL inspect(const Any& aToInspectObj) - throw( RuntimeException ); + throw( RuntimeException, std::exception ); protected: // 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); }; enum MethodType @@ -1695,7 +1695,7 @@ ImplIntrospection::ImplIntrospection( const Reference<XMultiServiceFactory> & rX } // XComponent -void ImplIntrospection::dispose() throw(::com::sun::star::uno::RuntimeException) +void ImplIntrospection::dispose() throw(::com::sun::star::uno::RuntimeException, std::exception) { OComponentHelper::dispose(); @@ -1721,7 +1721,7 @@ void ImplIntrospection::dispose() throw(::com::sun::star::uno::RuntimeException) // XInterface Any ImplIntrospection::queryInterface( const Type & rType ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { Any aRet( ::cppu::queryInterface( rType, @@ -1733,7 +1733,7 @@ Any ImplIntrospection::queryInterface( const Type & rType ) // XTypeProvider Sequence< Type > ImplIntrospection::getTypes() - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { static OTypeCollection * s_pTypes = 0; if (! s_pTypes) @@ -1752,7 +1752,7 @@ Sequence< Type > ImplIntrospection::getTypes() } Sequence< sal_Int8 > ImplIntrospection::getImplementationId() - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { static OImplementationId * s_pId = 0; if (! s_pId) @@ -1769,19 +1769,19 @@ Sequence< sal_Int8 > ImplIntrospection::getImplementationId() // XServiceInfo -OUString ImplIntrospection::getImplementationName() throw() +OUString ImplIntrospection::getImplementationName() throw(std::exception) { return getImplementationName_Static(); } // XServiceInfo -sal_Bool ImplIntrospection::supportsService(const OUString& ServiceName) throw() +sal_Bool ImplIntrospection::supportsService(const OUString& ServiceName) throw(std::exception) { return cppu::supportsService(this, ServiceName); } // XServiceInfo -Sequence< OUString > ImplIntrospection::getSupportedServiceNames(void) throw() +Sequence< OUString > ImplIntrospection::getSupportedServiceNames(void) throw(std::exception) { return getSupportedServiceNames_Static(); } @@ -1805,7 +1805,7 @@ Sequence< OUString > ImplIntrospection::getSupportedServiceNames_Static(void) th // Methoden von XIntrospection Reference<XIntrospectionAccess> ImplIntrospection::inspect(const Any& aToInspectObj) - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { Reference<XIntrospectionAccess> xAccess; diff --git a/stoc/source/invocation/invocation.cxx b/stoc/source/invocation/invocation.cxx index 25930907b18c..620ed6d3661c 100644 --- a/stoc/source/invocation/invocation.cxx +++ b/stoc/source/invocation/invocation.cxx @@ -104,101 +104,101 @@ public: virtual ~Invocation_Impl(); // XInterface - virtual Any SAL_CALL queryInterface( const Type & aType) throw( RuntimeException ); + virtual Any SAL_CALL queryInterface( const Type & aType) throw( RuntimeException, std::exception ); virtual void SAL_CALL acquire() throw() { OWeakObject::acquire(); } virtual void SAL_CALL release() throw() { OWeakObject::release(); } // XTypeProvider virtual Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) - throw(RuntimeException); + throw(RuntimeException, std::exception); virtual Sequence< sal_Int8 > SAL_CALL getImplementationId( ) - throw( RuntimeException); + throw( RuntimeException, std::exception); // Methoden von XMaterialHolder - virtual Any SAL_CALL getMaterial(void) throw(RuntimeException); + virtual Any SAL_CALL getMaterial(void) throw(RuntimeException, std::exception); // ? XTool virtual void SAL_CALL setMaterial( const Any& rMaterial ); // XInvocation - virtual Reference<XIntrospectionAccess> SAL_CALL getIntrospection(void) throw( RuntimeException ); + virtual Reference<XIntrospectionAccess> SAL_CALL getIntrospection(void) throw( RuntimeException, std::exception ); virtual Any SAL_CALL invoke(const OUString& FunctionName, const Sequence< Any >& Params, Sequence< sal_Int16 >& OutParamIndex, Sequence< Any >& OutParam) - throw( IllegalArgumentException, CannotConvertException, InvocationTargetException, RuntimeException ); + throw( IllegalArgumentException, CannotConvertException, InvocationTargetException, RuntimeException, std::exception ); virtual void SAL_CALL setValue(const OUString& PropertyName, const Any& Value) - throw( UnknownPropertyException, CannotConvertException, InvocationTargetException, RuntimeException ); + throw( UnknownPropertyException, CannotConvertException, InvocationTargetException, RuntimeException, std::exception ); virtual Any SAL_CALL getValue(const OUString& PropertyName) - throw( UnknownPropertyException, RuntimeException ); - virtual sal_Bool SAL_CALL hasMethod(const OUString& Name) throw( RuntimeException ); - virtual sal_Bool SAL_CALL hasProperty(const OUString& Name) throw( RuntimeException ); + throw( UnknownPropertyException, RuntimeException, std::exception ); + virtual sal_Bool SAL_CALL hasMethod(const OUString& Name) throw( RuntimeException, std::exception ); + virtual sal_Bool SAL_CALL hasProperty(const OUString& Name) throw( RuntimeException, std::exception ); // XInvocation2 virtual Sequence< OUString > SAL_CALL getMemberNames( ) - throw( RuntimeException ); + throw( RuntimeException, std::exception ); virtual Sequence< InvocationInfo > SAL_CALL getInfo( ) - throw( RuntimeException ); + throw( RuntimeException, std::exception ); virtual InvocationInfo SAL_CALL getInfoForName( const OUString& aName, sal_Bool bExact ) - throw( IllegalArgumentException, RuntimeException ); + throw( IllegalArgumentException, RuntimeException, std::exception ); // All Access and Container methods are not thread save // XElementAccess - virtual Type SAL_CALL getElementType(void) throw( RuntimeException ) + virtual Type SAL_CALL getElementType(void) throw( RuntimeException, std::exception ) { return _xElementAccess->getElementType(); } - virtual sal_Bool SAL_CALL hasElements(void) throw( RuntimeException ) + virtual sal_Bool SAL_CALL hasElements(void) throw( RuntimeException, std::exception ) { return _xElementAccess->hasElements(); } // XNameContainer virtual void SAL_CALL insertByName( const OUString& Name, const Any& Element ) - throw( IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException ) + throw( IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException, std::exception ) { _xNameContainer->insertByName( Name, Element ); } virtual void SAL_CALL replaceByName( const OUString& Name, const Any& Element ) - throw( IllegalArgumentException, NoSuchElementException, WrappedTargetException, RuntimeException ) + throw( IllegalArgumentException, NoSuchElementException, WrappedTargetException, RuntimeException, std::exception ) { _xNameContainer->replaceByName( Name, Element ); } virtual void SAL_CALL removeByName( const OUString& Name ) - throw( NoSuchElementException, WrappedTargetException, RuntimeException ) + throw( NoSuchElementException, WrappedTargetException, RuntimeException, std::exception ) { _xNameContainer->removeByName( Name ); } // XNameAccess virtual Any SAL_CALL getByName( const OUString& Name ) - throw( NoSuchElementException, WrappedTargetException, RuntimeException ) + throw( NoSuchElementException, WrappedTargetException, RuntimeException, std::exception ) { return _xNameAccess->getByName( Name ); } - virtual Sequence<OUString> SAL_CALL getElementNames(void) throw( RuntimeException ) + virtual Sequence<OUString> SAL_CALL getElementNames(void) throw( RuntimeException, std::exception ) { return _xNameAccess->getElementNames(); } - virtual sal_Bool SAL_CALL hasByName( const OUString& Name ) throw( RuntimeException ) + virtual sal_Bool SAL_CALL hasByName( const OUString& Name ) throw( RuntimeException, std::exception ) { return _xNameAccess->hasByName( Name ); } // XIndexContainer virtual void SAL_CALL insertByIndex( sal_Int32 Index, const Any& Element ) - throw( IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException ) + throw( IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception ) { _xIndexContainer->insertByIndex( Index, Element ); } virtual void SAL_CALL replaceByIndex( sal_Int32 Index, const Any& Element ) - throw( IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException ) + throw( IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception ) { _xIndexContainer->replaceByIndex( Index, Element ); } virtual void SAL_CALL removeByIndex( sal_Int32 Index ) - throw( IndexOutOfBoundsException, WrappedTargetException, RuntimeException ) + throw( IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception ) { _xIndexContainer->removeByIndex( Index ); } // XIndexAccess - virtual sal_Int32 SAL_CALL getCount(void) throw( RuntimeException ) + virtual sal_Int32 SAL_CALL getCount(void) throw( RuntimeException, std::exception ) { return _xIndexAccess->getCount(); } virtual Any SAL_CALL getByIndex( sal_Int32 Index ) - throw( IndexOutOfBoundsException, WrappedTargetException, RuntimeException ) + throw( IndexOutOfBoundsException, WrappedTargetException, RuntimeException, std::exception ) { return _xIndexAccess->getByIndex( Index ); } // XEnumerationAccess - virtual Reference<XEnumeration> SAL_CALL createEnumeration(void) throw( RuntimeException ) + virtual Reference<XEnumeration> SAL_CALL createEnumeration(void) throw( RuntimeException, std::exception ) { return _xEnumerationAccess->createEnumeration(); } // XExactName - virtual OUString SAL_CALL getExactName( const OUString& rApproximateName ) throw( RuntimeException ); + virtual OUString SAL_CALL getExactName( const OUString& rApproximateName ) throw( RuntimeException, std::exception ); @@ -259,7 +259,7 @@ Invocation_Impl::~Invocation_Impl() {} Any SAL_CALL Invocation_Impl::queryInterface( const Type & aType ) - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { // PropertySet-Implementation Any a = ::cppu::queryInterface( aType, @@ -330,7 +330,7 @@ Any SAL_CALL Invocation_Impl::queryInterface( const Type & aType ) -Any Invocation_Impl::getMaterial(void) throw(RuntimeException) +Any Invocation_Impl::getMaterial(void) throw(RuntimeException, std::exception) { // AB, 12.2.1999 Sicherstellen, dass das Material wenn moeglich // aus der direkten Invocation bzw. von der Introspection geholt @@ -443,7 +443,7 @@ void Invocation_Impl::setMaterial( const Any& rMaterial ) OUString Invocation_Impl::getExactName( const OUString& rApproximateName ) - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { if (_xENDirect.is()) return _xENDirect->getExactName( rApproximateName ); @@ -458,7 +458,7 @@ OUString Invocation_Impl::getExactName( const OUString& rApproximateName ) Reference<XIntrospectionAccess> Invocation_Impl::getIntrospection(void) - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { if( _xDirect.is() ) return _xDirect->getIntrospection(); @@ -468,7 +468,7 @@ Reference<XIntrospectionAccess> Invocation_Impl::getIntrospection(void) sal_Bool Invocation_Impl::hasMethod( const OUString& Name ) - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { if (_xDirect.is()) return _xDirect->hasMethod( Name ); @@ -479,7 +479,7 @@ sal_Bool Invocation_Impl::hasMethod( const OUString& Name ) sal_Bool Invocation_Impl::hasProperty( const OUString& Name ) - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { if (_xDirect.is()) return _xDirect->hasProperty( Name ); @@ -495,7 +495,7 @@ sal_Bool Invocation_Impl::hasProperty( const OUString& Name ) Any Invocation_Impl::getValue( const OUString& PropertyName ) - throw( UnknownPropertyException, RuntimeException ) + throw( UnknownPropertyException, RuntimeException, std::exception ) { if (_xDirect.is()) return _xDirect->getValue( PropertyName ); @@ -531,7 +531,7 @@ Any Invocation_Impl::getValue( const OUString& PropertyName ) void Invocation_Impl::setValue( const OUString& PropertyName, const Any& Value ) - throw( UnknownPropertyException, CannotConvertException, InvocationTargetException, RuntimeException ) + throw( UnknownPropertyException, CannotConvertException, InvocationTargetException, RuntimeException, std::exception ) { if (_xDirect.is()) _xDirect->setValue( PropertyName, Value ); @@ -611,7 +611,7 @@ void Invocation_Impl::setValue( const OUString& PropertyName, const Any& Value ) Any Invocation_Impl::invoke( const OUString& FunctionName, const Sequence<Any>& InParams, Sequence<sal_Int16>& OutIndices, Sequence<Any>& OutParams ) - throw( IllegalArgumentException, CannotConvertException, InvocationTargetException, RuntimeException ) + throw( IllegalArgumentException, CannotConvertException, InvocationTargetException, RuntimeException, std::exception ) { if (_xDirect.is()) return _xDirect->invoke( FunctionName, InParams, OutIndices, OutParams ); @@ -846,7 +846,7 @@ void Invocation_Impl::getInfoSequenceImpl // XInvocation2 Sequence< OUString > SAL_CALL Invocation_Impl::getMemberNames( ) - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { if( _xDirect2.is() ) { @@ -858,7 +858,7 @@ Sequence< OUString > SAL_CALL Invocation_Impl::getMemberNames( ) } Sequence< InvocationInfo > SAL_CALL Invocation_Impl::getInfo( ) - throw( RuntimeException ) + throw( RuntimeException, std::exception ) { if( _xDirect2.is() ) { @@ -870,7 +870,7 @@ Sequence< InvocationInfo > SAL_CALL Invocation_Impl::getInfo( ) } InvocationInfo SAL_CALL Invocation_Impl::getInfoForName( const OUString& aName, sal_Bool bExact ) - throw( IllegalArgumentException, RuntimeException ) + throw( IllegalArgumentException, RuntimeException, std::exception ) { if( _xDirect2.is() ) { @@ -982,7 +982,7 @@ void Invocation_Impl::fillInfoForMethod // XTypeProvider -Sequence< Type > SAL_CALL Invocation_Impl::getTypes(void) throw( RuntimeException ) +Sequence< Type > SAL_CALL Invocation_Impl::getTypes(void) throw( RuntimeException, std::exception ) { static Sequence< Type > const * s_pTypes = 0; if (! s_pTypes) @@ -1048,7 +1048,7 @@ Sequence< Type > SAL_CALL Invocation_Impl::getTypes(void) throw( RuntimeExceptio return *s_pTypes; } -Sequence< sal_Int8 > SAL_CALL Invocation_Impl::getImplementationId( ) throw( RuntimeException) +Sequence< sal_Int8 > SAL_CALL Invocation_Impl::getImplementationId( ) throw( RuntimeException, std::exception) { static OImplementationId *pId = 0; if( ! pId ) @@ -1074,14 +1074,14 @@ public: virtual ~InvocationService(); // XServiceInfo - OUString SAL_CALL getImplementationName() throw( RuntimeException ); - sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw( RuntimeException ); - Sequence< OUString > SAL_CALL getSupportedServiceNames(void) throw( RuntimeException ); + OUString SAL_CALL getImplementationName() throw( RuntimeException, std::exception ); + sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw( RuntimeException, std::exception ); + Sequence< OUString > SAL_CALL getSupportedServiceNames(void) throw( RuntimeException, std::exception ); // XSingleServiceFactory - Reference<XInterface> SAL_CALL createInstance(void) throw( Exception, RuntimeException ); + Reference<XInterface> SAL_CALL createInstance(void) throw( Exception, RuntimeException, std::exception ); Reference<XInterface> SAL_CALL createInstanceWithArguments( - const Sequence<Any>& rArguments ) throw( Exception, RuntimeException ); + const Sequence<Any>& rArguments ) throw( Exception, RuntimeException, std::exception ); private: Reference<XComponentContext> mxCtx; Reference<XMultiComponentFactory> mxSMgr; @@ -1106,25 +1106,25 @@ InvocationService::InvocationService( const Reference<XComponentContext> & xCtx InvocationService::~InvocationService() {} // XServiceInfo -OUString InvocationService::getImplementationName() throw( RuntimeException ) +OUString InvocationService::getImplementationName() throw( RuntimeException, std::exception ) { return inv_getImplementationName(); } // XServiceInfo -sal_Bool InvocationService::supportsService(const OUString& ServiceName) throw( RuntimeException ) +sal_Bool InvocationService::supportsService(const OUString& ServiceName) throw( RuntimeException, std::exception ) { return cppu::supportsService(this, ServiceName); } // XServiceInfo -Sequence< OUString > InvocationService::getSupportedServiceNames(void) throw( RuntimeException ) +Sequence< OUString > InvocationService::getSupportedServiceNames(void) throw( RuntimeException, std::exception ) { return inv_getSupportedServiceNames(); } -Reference<XInterface> InvocationService::createInstance(void) throw( Exception, RuntimeException ) +Reference<XInterface> InvocationService::createInstance(void) throw( Exception, RuntimeException, std::exception ) { //TODO:throw( Exception("no default construction of invocation adapter possible!", *this) ); return Reference<XInterface>(); // dummy @@ -1132,7 +1132,7 @@ Reference<XInterface> InvocationService::createInstance(void) throw( Exception, Reference<XInterface> InvocationService::createInstanceWithArguments( - const Sequence<Any>& rArguments ) throw( Exception, RuntimeException ) + const Sequence<Any>& rArguments ) throw( Exception, RuntimeException, std::exception ) { if (rArguments.getLength() == 1) { diff --git a/stoc/source/invocation_adapterfactory/iafactory.cxx b/stoc/source/invocation_adapterfactory/iafactory.cxx index 57ebb18105e8..596f9bd32645 100644 --- a/stoc/source/invocation_adapterfactory/iafactory.cxx +++ b/stoc/source/invocation_adapterfactory/iafactory.cxx @@ -109,21 +109,21 @@ public: // XServiceInfo virtual OUString SAL_CALL getImplementationName() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual sal_Bool SAL_CALL supportsService( const OUString & rServiceName ) - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() - throw (RuntimeException); + throw (RuntimeException, std::exception); // XInvocationAdapterFactory virtual Reference< XInterface > SAL_CALL createAdapter( const Reference< script::XInvocation > & xReceiver, const Type & rType ) - throw (RuntimeException); + throw (RuntimeException, std::exception); // XInvocationAdapterFactory2 virtual Reference< XInterface > SAL_CALL createAdapter( const Reference< script::XInvocation > & xReceiver, const Sequence< Type > & rTypes ) - throw (RuntimeException); + throw (RuntimeException, std::exception); }; struct AdapterImpl; @@ -831,7 +831,7 @@ static inline AdapterImpl * lookup_adapter( Reference< XInterface > FactoryImpl::createAdapter( const Reference< script::XInvocation > & xReceiver, const Sequence< Type > & rTypes ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { Reference< XInterface > xRet; if (xReceiver.is() && rTypes.getLength()) @@ -892,7 +892,7 @@ Reference< XInterface > FactoryImpl::createAdapter( Reference< XInterface > FactoryImpl::createAdapter( const Reference< script::XInvocation > & xReceiver, const Type & rType ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return createAdapter( xReceiver, Sequence< Type >( &rType, 1 ) ); } @@ -900,19 +900,19 @@ Reference< XInterface > FactoryImpl::createAdapter( // XServiceInfo OUString FactoryImpl::getImplementationName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return invadp_getImplementationName(); } sal_Bool FactoryImpl::supportsService( const OUString & rServiceName ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return cppu::supportsService(this, rServiceName); } Sequence< OUString > FactoryImpl::getSupportedServiceNames() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return invadp_getSupportedServiceNames(); } diff --git a/stoc/source/javaloader/javaloader.cxx b/stoc/source/javaloader/javaloader.cxx index 164006f45b54..56c0feb18ee5 100644 --- a/stoc/source/javaloader/javaloader.cxx +++ b/stoc/source/javaloader/javaloader.cxx @@ -105,21 +105,21 @@ public: public: // XServiceInfo - virtual OUString SAL_CALL getImplementationName() throw(RuntimeException); + virtual OUString SAL_CALL getImplementationName() throw(RuntimeException, std::exception); virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) - throw(RuntimeException); + throw(RuntimeException, std::exception); virtual Sequence<OUString> SAL_CALL getSupportedServiceNames() - throw(RuntimeException); + throw(RuntimeException, std::exception); // XImplementationLoader virtual css::uno::Reference<XInterface> SAL_CALL activate( const OUString& implementationName, const OUString& implementationLoaderUrl, const OUString& locationUrl, const css::uno::Reference<XRegistryKey>& xKey) - throw(CannotActivateFactoryException, RuntimeException); + throw(CannotActivateFactoryException, RuntimeException, std::exception); virtual sal_Bool SAL_CALL writeRegistryInfo( const css::uno::Reference<XRegistryKey>& xKey, const OUString& implementationLoaderUrl, const OUString& locationUrl) - throw(CannotRegisterImplementationException, RuntimeException); + throw(CannotRegisterImplementationException, RuntimeException, std::exception); }; const css::uno::Reference<XImplementationLoader> & JavaComponentLoader::getJavaLoader() @@ -316,19 +316,19 @@ JavaComponentLoader::~JavaComponentLoader() throw() // XServiceInfo OUString SAL_CALL JavaComponentLoader::getImplementationName() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return loader_getImplementationName(); } sal_Bool SAL_CALL JavaComponentLoader::supportsService(const OUString & ServiceName) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return cppu::supportsService(this, ServiceName); } Sequence<OUString> SAL_CALL JavaComponentLoader::getSupportedServiceNames() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return loader_getSupportedServiceNames(); } @@ -339,7 +339,7 @@ Sequence<OUString> SAL_CALL JavaComponentLoader::getSupportedServiceNames() sal_Bool SAL_CALL JavaComponentLoader::writeRegistryInfo( const css::uno::Reference<XRegistryKey> & xKey, const OUString & blabla, const OUString & rLibName) - throw(CannotRegisterImplementationException, RuntimeException) + throw(CannotRegisterImplementationException, RuntimeException, std::exception) { const css::uno::Reference<XImplementationLoader> & loader = getJavaLoader(); if (loader.is()) @@ -353,7 +353,7 @@ sal_Bool SAL_CALL JavaComponentLoader::writeRegistryInfo( css::uno::Reference<XInterface> SAL_CALL JavaComponentLoader::activate( const OUString & rImplName, const OUString & blabla, const OUString & rLibName, const css::uno::Reference<XRegistryKey> & xKey) - throw(CannotActivateFactoryException, RuntimeException) + throw(CannotActivateFactoryException, RuntimeException, std::exception) { const css::uno::Reference<XImplementationLoader> & loader = getJavaLoader(); if (loader.is()) diff --git a/stoc/source/javavm/interact.cxx b/stoc/source/javavm/interact.cxx index 236649f542be..f4d033020b43 100644 --- a/stoc/source/javavm/interact.cxx +++ b/stoc/source/javavm/interact.cxx @@ -38,7 +38,7 @@ class AbortContinuation: public: inline AbortContinuation() {} - virtual inline void SAL_CALL select() throw (css::uno::RuntimeException) {} + virtual inline void SAL_CALL select() throw (css::uno::RuntimeException, std::exception) {} private: AbortContinuation(AbortContinuation &); // not implemented @@ -55,7 +55,7 @@ class InteractionRequest::RetryContinuation: public: inline RetryContinuation(): m_bSelected(false) {} - virtual void SAL_CALL select() throw (css::uno::RuntimeException); + virtual void SAL_CALL select() throw (css::uno::RuntimeException, std::exception); bool isSelected() const; @@ -70,7 +70,7 @@ private: }; void SAL_CALL InteractionRequest::RetryContinuation::select() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { osl::MutexGuard aGuard(m_aMutex); m_bSelected = true; @@ -92,14 +92,14 @@ InteractionRequest::InteractionRequest(css::uno::Any const & rRequest): } css::uno::Any SAL_CALL InteractionRequest::getRequest() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return m_aRequest; } css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > SAL_CALL InteractionRequest::getContinuations() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return m_aContinuations; } diff --git a/stoc/source/javavm/interact.hxx b/stoc/source/javavm/interact.hxx index ed1f4e343dbb..609dffaaf13b 100644 --- a/stoc/source/javavm/interact.hxx +++ b/stoc/source/javavm/interact.hxx @@ -40,11 +40,11 @@ public: explicit InteractionRequest(com::sun::star::uno::Any const & rRequest); virtual com::sun::star::uno::Any SAL_CALL getRequest() - throw (com::sun::star::uno::RuntimeException); + throw (com::sun::star::uno::RuntimeException, std::exception); virtual com::sun::star::uno::Sequence< com::sun::star::uno::Reference< com::sun::star::task::XInteractionContinuation > > SAL_CALL - getContinuations() throw (com::sun::star::uno::RuntimeException); + getContinuations() throw (com::sun::star::uno::RuntimeException, std::exception); bool retry() const; diff --git a/stoc/source/javavm/javavm.cxx b/stoc/source/javavm/javavm.cxx index e4eea7da39ae..1f70464ab79b 100644 --- a/stoc/source/javavm/javavm.cxx +++ b/stoc/source/javavm/javavm.cxx @@ -134,7 +134,7 @@ private: virtual inline ~SingletonFactory() {} virtual void SAL_CALL disposing(css::lang::EventObject const &) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); static void dispose(); @@ -176,7 +176,7 @@ css::uno::Reference< css::uno::XInterface > SingletonFactory::getSingleton( } void SAL_CALL SingletonFactory::disposing(css::lang::EventObject const &) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { dispose(); } @@ -586,7 +586,7 @@ JavaVirtualMachine::JavaVirtualMachine( void SAL_CALL JavaVirtualMachine::initialize(css::uno::Sequence< css::uno::Any > const & rArguments) - throw (css::uno::Exception) + throw (css::uno::Exception, std::exception) { osl::MutexGuard aGuard(*this); if (m_bDisposed) @@ -641,21 +641,21 @@ JavaVirtualMachine::initialize(css::uno::Sequence< css::uno::Any > const & } OUString SAL_CALL JavaVirtualMachine::getImplementationName() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return serviceGetImplementationName(); } sal_Bool SAL_CALL JavaVirtualMachine::supportsService(OUString const & rServiceName) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return cppu::supportsService(this, rServiceName); } css::uno::Sequence< OUString > SAL_CALL JavaVirtualMachine::getSupportedServiceNames() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return serviceGetSupportedServiceNames(); } @@ -679,7 +679,7 @@ struct JavaInfoGuard: private boost::noncopyable { css::uno::Any SAL_CALL JavaVirtualMachine::getJavaVM(css::uno::Sequence< sal_Int8 > const & rProcessId) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { osl::MutexGuard aGuard(*this); if (m_bDisposed) @@ -928,7 +928,7 @@ JavaVirtualMachine::getJavaVM(css::uno::Sequence< sal_Int8 > const & rProcessId) } sal_Bool SAL_CALL JavaVirtualMachine::isVMStarted() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { osl::MutexGuard aGuard(*this); if (m_bDisposed) @@ -938,7 +938,7 @@ sal_Bool SAL_CALL JavaVirtualMachine::isVMStarted() } sal_Bool SAL_CALL JavaVirtualMachine::isVMEnabled() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { { osl::MutexGuard aGuard(*this); @@ -957,7 +957,7 @@ sal_Bool SAL_CALL JavaVirtualMachine::isVMEnabled() } sal_Bool SAL_CALL JavaVirtualMachine::isThreadAttached() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { osl::MutexGuard aGuard(*this); if (m_bDisposed) @@ -971,7 +971,7 @@ sal_Bool SAL_CALL JavaVirtualMachine::isThreadAttached() } void SAL_CALL JavaVirtualMachine::registerThread() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { osl::MutexGuard aGuard(*this); if (m_bDisposed) @@ -1004,7 +1004,7 @@ void SAL_CALL JavaVirtualMachine::registerThread() } void SAL_CALL JavaVirtualMachine::revokeThread() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { osl::MutexGuard aGuard(*this); if (m_bDisposed) @@ -1026,7 +1026,7 @@ void SAL_CALL JavaVirtualMachine::revokeThread() void SAL_CALL JavaVirtualMachine::disposing(css::lang::EventObject const & rSource) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { osl::MutexGuard aGuard(*this); if (rSource.Source == m_xInetConfiguration) @@ -1037,12 +1037,12 @@ JavaVirtualMachine::disposing(css::lang::EventObject const & rSource) void SAL_CALL JavaVirtualMachine::elementInserted( css::container::ContainerEvent const &) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) {} void SAL_CALL JavaVirtualMachine::elementRemoved( css::container::ContainerEvent const &) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) {} // If a user changes the setting, for example for proxy settings, then this @@ -1052,7 +1052,7 @@ void SAL_CALL JavaVirtualMachine::elementRemoved( // values. void SAL_CALL JavaVirtualMachine::elementReplaced( css::container::ContainerEvent const & rEvent) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { // TODO Using the new value stored in rEvent is wrong here. If two threads // receive different elementReplaced calls in quick succession, it is diff --git a/stoc/source/javavm/javavm.hxx b/stoc/source/javavm/javavm.hxx index c165d172d23a..adcfe1cc4aac 100644 --- a/stoc/source/javavm/javavm.hxx +++ b/stoc/source/javavm/javavm.hxx @@ -68,56 +68,56 @@ public: virtual void SAL_CALL initialize(com::sun::star::uno::Sequence< com::sun::star::uno::Any > const & rArguments) - throw (com::sun::star::uno::Exception); + throw (com::sun::star::uno::Exception, std::exception); // XServiceInfo virtual OUString SAL_CALL getImplementationName() - throw (com::sun::star::uno::RuntimeException); + throw (com::sun::star::uno::RuntimeException, std::exception); virtual sal_Bool SAL_CALL supportsService(OUString const & rServiceName) - throw (com::sun::star::uno::RuntimeException); + throw (com::sun::star::uno::RuntimeException, std::exception); virtual com::sun::star::uno::Sequence< OUString > SAL_CALL - getSupportedServiceNames() throw (com::sun::star::uno::RuntimeException); + getSupportedServiceNames() throw (com::sun::star::uno::RuntimeException, std::exception); // XJavaVM virtual com::sun::star::uno::Any SAL_CALL getJavaVM(com::sun::star::uno::Sequence< sal_Int8 > const & rProcessId) - throw (com::sun::star::uno::RuntimeException); + throw (com::sun::star::uno::RuntimeException, std::exception); virtual sal_Bool SAL_CALL isVMStarted() - throw (com::sun::star::uno::RuntimeException); + throw (com::sun::star::uno::RuntimeException, std::exception); virtual sal_Bool SAL_CALL isVMEnabled() - throw (com::sun::star::uno::RuntimeException); + throw (com::sun::star::uno::RuntimeException, std::exception); // XJavaThreadRegister_11 virtual sal_Bool SAL_CALL isThreadAttached() - throw (com::sun::star::uno::RuntimeException); + throw (com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL registerThread() - throw (com::sun::star::uno::RuntimeException); + throw (com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL revokeThread() - throw (com::sun::star::uno::RuntimeException); + throw (com::sun::star::uno::RuntimeException, std::exception); // XContainerListener virtual void SAL_CALL disposing(com::sun::star::lang::EventObject const & rSource) - throw (com::sun::star::uno::RuntimeException); + throw (com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL elementInserted(com::sun::star::container::ContainerEvent const & rEvent) - throw (com::sun::star::uno::RuntimeException); + throw (com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL elementRemoved(com::sun::star::container::ContainerEvent const & rEvent) - throw (com::sun::star::uno::RuntimeException); + throw (com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL elementReplaced(com::sun::star::container::ContainerEvent const & rEvent) - throw (com::sun::star::uno::RuntimeException); + throw (com::sun::star::uno::RuntimeException, std::exception); private: JavaVirtualMachine(JavaVirtualMachine &); // not implemented diff --git a/stoc/source/loader/dllcomponentloader.cxx b/stoc/source/loader/dllcomponentloader.cxx index d92ecf4a870c..377df303826c 100644 --- a/stoc/source/loader/dllcomponentloader.cxx +++ b/stoc/source/loader/dllcomponentloader.cxx @@ -62,16 +62,16 @@ public: ~DllComponentLoader(); // XServiceInfo - virtual OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException); - virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) 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& ServiceName ) throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException, std::exception); // XInitialization - virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception); // XImplementationLoader - virtual Reference<XInterface> SAL_CALL activate( const OUString& implementationName, const OUString& implementationLoaderUrl, const OUString& locationUrl, const Reference<XRegistryKey>& xKey ) throw(CannotActivateFactoryException, RuntimeException); - virtual sal_Bool SAL_CALL writeRegistryInfo( const Reference<XRegistryKey>& xKey, const OUString& implementationLoaderUrl, const OUString& locationUrl ) throw(CannotRegisterImplementationException, RuntimeException); + virtual Reference<XInterface> SAL_CALL activate( const OUString& implementationName, const OUString& implementationLoaderUrl, const OUString& locationUrl, const Reference<XRegistryKey>& xKey ) throw(CannotActivateFactoryException, RuntimeException, std::exception); + virtual sal_Bool SAL_CALL writeRegistryInfo( const Reference<XRegistryKey>& xKey, const OUString& implementationLoaderUrl, const OUString& locationUrl ) throw(CannotRegisterImplementationException, RuntimeException, std::exception); private: Reference<XMultiServiceFactory> m_xSMgr; @@ -88,19 +88,19 @@ DllComponentLoader::~DllComponentLoader() {} OUString SAL_CALL DllComponentLoader::getImplementationName( ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return OUString("com.sun.star.comp.stoc.DLLComponentLoader"); } sal_Bool SAL_CALL DllComponentLoader::supportsService( const OUString& ServiceName ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return cppu::supportsService(this, ServiceName); } Sequence<OUString> SAL_CALL DllComponentLoader::getSupportedServiceNames( ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { Sequence< OUString > seqNames(1); seqNames[0] = "com.sun.star.loader.SharedLibrary"; @@ -109,7 +109,7 @@ Sequence<OUString> SAL_CALL DllComponentLoader::getSupportedServiceNames( ) void DllComponentLoader::initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& ) - throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) { OSL_FAIL( "dllcomponentloader::initialize should not be called !" ); // if( aArgs.getLength() != 1 ) @@ -137,7 +137,7 @@ Reference<XInterface> SAL_CALL DllComponentLoader::activate( const OUString & rImplName, const OUString &, const OUString & rLibName, const Reference< XRegistryKey > & ) - throw(CannotActivateFactoryException, RuntimeException) + throw(CannotActivateFactoryException, RuntimeException, std::exception) { return loadSharedLibComponentFactory( cppu::bootstrap_expandUri(rLibName), OUString(), rImplName, m_xSMgr, @@ -149,7 +149,7 @@ Reference<XInterface> SAL_CALL DllComponentLoader::activate( sal_Bool SAL_CALL DllComponentLoader::writeRegistryInfo( const Reference< XRegistryKey > & xKey, const OUString &, const OUString & rLibName ) - throw(CannotRegisterImplementationException, RuntimeException) + throw(CannotRegisterImplementationException, RuntimeException, std::exception) { #ifdef DISABLE_DYNLOADING (void) xKey; diff --git a/stoc/source/namingservice/namingservice.cxx b/stoc/source/namingservice/namingservice.cxx index 96eafee5f86d..8d88c14dc28d 100644 --- a/stoc/source/namingservice/namingservice.cxx +++ b/stoc/source/namingservice/namingservice.cxx @@ -93,20 +93,20 @@ public: // XServiceInfo virtual OUString SAL_CALL getImplementationName() - throw(::com::sun::star::uno::RuntimeException); + throw(::com::sun::star::uno::RuntimeException, std::exception); virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) - throw(::com::sun::star::uno::RuntimeException); + throw(::com::sun::star::uno::RuntimeException, std::exception); virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() - throw(::com::sun::star::uno::RuntimeException); + throw(::com::sun::star::uno::RuntimeException, std::exception); static Sequence< OUString > SAL_CALL getSupportedServiceNames_Static() { OUString aStr( SERVICENAME ); return Sequence< OUString >( &aStr, 1 ); } - virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getRegisteredObject( const OUString& Name ) throw(Exception, RuntimeException); - virtual void SAL_CALL registerObject( const OUString& Name, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Object ) throw(Exception, RuntimeException); - virtual void SAL_CALL revokeObject( const OUString& Name ) throw(Exception, RuntimeException); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getRegisteredObject( const OUString& Name ) throw(Exception, RuntimeException, std::exception); + virtual void SAL_CALL registerObject( const OUString& Name, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Object ) throw(Exception, RuntimeException, std::exception); + virtual void SAL_CALL revokeObject( const OUString& Name ) throw(Exception, RuntimeException, std::exception); }; @@ -124,27 +124,27 @@ NamingService_Impl::~NamingService_Impl() {} // XServiceInfo OUString NamingService_Impl::getImplementationName() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return ns_getImplementationName(); } // XServiceInfo sal_Bool NamingService_Impl::supportsService( const OUString & rServiceName ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return cppu::supportsService(this, rServiceName); } // XServiceInfo Sequence< OUString > NamingService_Impl::getSupportedServiceNames() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return ns_getSupportedServiceNames(); } // XServiceInfo -Reference< XInterface > NamingService_Impl::getRegisteredObject( const OUString& Name ) throw(Exception, RuntimeException) +Reference< XInterface > NamingService_Impl::getRegisteredObject( const OUString& Name ) throw(Exception, RuntimeException, std::exception) { Guard< Mutex > aGuard( aMutex ); Reference< XInterface > xRet; @@ -155,14 +155,14 @@ Reference< XInterface > NamingService_Impl::getRegisteredObject( const OUString& } // XServiceInfo -void NamingService_Impl::registerObject( const OUString& Name, const Reference< XInterface >& Object ) throw(Exception, RuntimeException) +void NamingService_Impl::registerObject( const OUString& Name, const Reference< XInterface >& Object ) throw(Exception, RuntimeException, std::exception) { Guard< Mutex > aGuard( aMutex ); aMap[ Name ] = Object; } // XServiceInfo -void NamingService_Impl::revokeObject( const OUString& Name ) throw(Exception, RuntimeException) +void NamingService_Impl::revokeObject( const OUString& Name ) throw(Exception, RuntimeException, std::exception) { Guard< Mutex > aGuard( aMutex ); aMap.erase( Name ); diff --git a/stoc/source/proxy_factory/proxyfac.cxx b/stoc/source/proxy_factory/proxyfac.cxx index 30d70ca37b50..482af9ca33de 100644 --- a/stoc/source/proxy_factory/proxyfac.cxx +++ b/stoc/source/proxy_factory/proxyfac.cxx @@ -79,16 +79,16 @@ struct FactoryImpl : public ::cppu::WeakImplHelper2< lang::XServiceInfo, // XServiceInfo virtual OUString SAL_CALL getImplementationName() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual sal_Bool SAL_CALL supportsService( const OUString & rServiceName ) - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() - throw (RuntimeException); + throw (RuntimeException, std::exception); // XProxyFactory virtual Reference< XAggregation > SAL_CALL createProxy( Reference< XInterface > const & xTarget ) - throw (RuntimeException); + throw (RuntimeException, std::exception); }; @@ -170,7 +170,7 @@ struct ProxyRoot : public ::cppu::OWeakAggObject { // XAggregation virtual Any SAL_CALL queryAggregation( Type const & rType ) - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual ~ProxyRoot(); inline ProxyRoot( ::rtl::Reference< FactoryImpl > const & factory, @@ -325,7 +325,7 @@ inline ProxyRoot::ProxyRoot( Any ProxyRoot::queryAggregation( Type const & rType ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { Any ret( OWeakAggObject::queryAggregation( rType ) ); if (! ret.hasValue()) @@ -429,7 +429,7 @@ FactoryImpl::~FactoryImpl() {} Reference< XAggregation > FactoryImpl::createProxy( Reference< XInterface > const & xTarget ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return new ProxyRoot( this, xTarget ); } @@ -437,19 +437,19 @@ Reference< XAggregation > FactoryImpl::createProxy( // XServiceInfo OUString FactoryImpl::getImplementationName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return proxyfac_getImplementationName(); } sal_Bool FactoryImpl::supportsService( const OUString & rServiceName ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return cppu::supportsService(this, rServiceName); } Sequence< OUString > FactoryImpl::getSupportedServiceNames() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return proxyfac_getSupportedServiceNames(); } diff --git a/stoc/source/security/access_controller.cxx b/stoc/source/security/access_controller.cxx index f0807942a96a..6cc4f7f6c24d 100644 --- a/stoc/source/security/access_controller.cxx +++ b/stoc/source/security/access_controller.cxx @@ -93,7 +93,7 @@ public: // XAccessControlContext impl virtual void SAL_CALL checkPermission( Any const & perm ) - throw (RuntimeException); + throw (RuntimeException, std::exception); }; inline acc_Intersection::acc_Intersection( @@ -122,7 +122,7 @@ inline Reference< security::XAccessControlContext > acc_Intersection::create( void acc_Intersection::checkPermission( Any const & perm ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { m_x1->checkPermission( perm ); m_x2->checkPermission( perm ); @@ -152,7 +152,7 @@ public: // XAccessControlContext impl virtual void SAL_CALL checkPermission( Any const & perm ) - throw (RuntimeException); + throw (RuntimeException, std::exception); }; inline acc_Union::acc_Union( @@ -181,7 +181,7 @@ inline Reference< security::XAccessControlContext > acc_Union::create( void acc_Union::checkPermission( Any const & perm ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { try { @@ -210,7 +210,7 @@ public: // XAccessControlContext impl virtual void SAL_CALL checkPermission( Any const & perm ) - throw (RuntimeException); + throw (RuntimeException, std::exception); }; inline acc_Policy::acc_Policy( @@ -225,7 +225,7 @@ acc_Policy::~acc_Policy() void acc_Policy::checkPermission( Any const & perm ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { m_permissions.checkPermission( perm ); } @@ -255,7 +255,7 @@ public: // XCurrentContext impl virtual Any SAL_CALL getValueByName( OUString const & name ) - throw (RuntimeException); + throw (RuntimeException, std::exception); }; inline acc_CurrentContext::acc_CurrentContext( @@ -292,7 +292,7 @@ void acc_CurrentContext::release() } Any acc_CurrentContext::getValueByName( OUString const & name ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { if (name == s_acRestriction) { @@ -402,30 +402,30 @@ public: // XInitialization impl virtual void SAL_CALL initialize( Sequence< Any > const & arguments ) - throw (Exception); + throw (Exception, std::exception); // XAccessController impl virtual void SAL_CALL checkPermission( Any const & perm ) - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual Any SAL_CALL doRestricted( Reference< security::XAction > const & xAction, Reference< security::XAccessControlContext > const & xRestriction ) - throw (Exception); + throw (Exception, std::exception); virtual Any SAL_CALL doPrivileged( Reference< security::XAction > const & xAction, Reference< security::XAccessControlContext > const & xRestriction ) - throw (Exception); + throw (Exception, std::exception); virtual Reference< security::XAccessControlContext > SAL_CALL getContext() - throw (RuntimeException); + throw (RuntimeException, std::exception); // XServiceInfo impl virtual OUString SAL_CALL getImplementationName() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual sal_Bool SAL_CALL supportsService( OUString const & serviceName ) - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() - throw (RuntimeException); + throw (RuntimeException, std::exception); }; AccessController::AccessController( Reference< XComponentContext > const & xComponentContext ) @@ -506,7 +506,7 @@ void AccessController::disposing() void AccessController::initialize( Sequence< Any > const & arguments ) - throw (Exception) + throw (Exception, std::exception) { // xxx todo: review for forking // portal forking hack: re-initialize for another user-id @@ -836,7 +836,7 @@ PermissionCollection AccessController::getEffectivePermissions( void AccessController::checkPermission( Any const & perm ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { if (rBHelper.bDisposed) { @@ -866,7 +866,7 @@ void AccessController::checkPermission( Any AccessController::doRestricted( Reference< security::XAction > const & xAction, Reference< security::XAccessControlContext > const & xRestriction ) - throw (Exception) + throw (Exception, std::exception) { if (rBHelper.bDisposed) { @@ -899,7 +899,7 @@ Any AccessController::doRestricted( Any AccessController::doPrivileged( Reference< security::XAction > const & xAction, Reference< security::XAccessControlContext > const & xRestriction ) - throw (Exception) + throw (Exception, std::exception) { if (rBHelper.bDisposed) { @@ -934,7 +934,7 @@ Any AccessController::doPrivileged( } Reference< security::XAccessControlContext > AccessController::getContext() - throw (RuntimeException) + throw (RuntimeException, std::exception) { if (rBHelper.bDisposed) { @@ -958,19 +958,19 @@ Reference< security::XAccessControlContext > AccessController::getContext() // XServiceInfo impl OUString AccessController::getImplementationName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return OUString("com.sun.star.security.comp.stoc.AccessController"); } sal_Bool AccessController::supportsService( OUString const & serviceName ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return cppu::supportsService(this, serviceName); } Sequence< OUString > AccessController::getSupportedServiceNames() - throw (RuntimeException) + throw (RuntimeException, std::exception) { Sequence< OUString > aSNS( 1 ); aSNS[0] = OUString(SERVICE_NAME); diff --git a/stoc/source/security/file_policy.cxx b/stoc/source/security/file_policy.cxx index 47945a3bcd19..8be031fb437c 100644 --- a/stoc/source/security/file_policy.cxx +++ b/stoc/source/security/file_policy.cxx @@ -79,19 +79,19 @@ public: // XPolicy impl virtual Sequence< Any > SAL_CALL getPermissions( OUString const & userId ) - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual Sequence< Any > SAL_CALL getDefaultPermissions() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual void SAL_CALL refresh() - throw (RuntimeException); + throw (RuntimeException, std::exception); // XServiceInfo impl virtual OUString SAL_CALL getImplementationName() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual sal_Bool SAL_CALL supportsService( OUString const & serviceName ) - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() - throw (RuntimeException); + throw (RuntimeException, std::exception); }; FilePolicy::FilePolicy( Reference< XComponentContext > const & xComponentContext ) @@ -116,7 +116,7 @@ void FilePolicy::disposing() Sequence< Any > FilePolicy::getPermissions( OUString const & userId ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { if (! m_init) { @@ -137,7 +137,7 @@ Sequence< Any > FilePolicy::getPermissions( } Sequence< Any > FilePolicy::getDefaultPermissions() - throw (RuntimeException) + throw (RuntimeException, std::exception) { if (! m_init) { @@ -413,7 +413,7 @@ PolicyReader::~PolicyReader() void FilePolicy::refresh() - throw (RuntimeException) + throw (RuntimeException, std::exception) { // read out file (the .../file-name value had originally been set in // cppu::add_access_control_entries (cppuhelper/source/servicefactory.cxx) @@ -519,19 +519,19 @@ void FilePolicy::refresh() OUString FilePolicy::getImplementationName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return OUString(IMPL_NAME); } sal_Bool FilePolicy::supportsService( OUString const & serviceName ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return cppu::supportsService(this, serviceName); } Sequence< OUString > FilePolicy::getSupportedServiceNames() - throw (RuntimeException) + throw (RuntimeException, std::exception) { Sequence< OUString > aSNS( 1 ); aSNS[0] = OUString("com.sun.star.security.Policy"); diff --git a/stoc/source/servicemanager/servicemanager.cxx b/stoc/source/servicemanager/servicemanager.cxx index 747023788415..7b6562335bce 100644 --- a/stoc/source/servicemanager/servicemanager.cxx +++ b/stoc/source/servicemanager/servicemanager.cxx @@ -161,9 +161,9 @@ public: // XEnumeration sal_Bool SAL_CALL hasMoreElements() - throw(::com::sun::star::uno::RuntimeException); + throw(::com::sun::star::uno::RuntimeException, std::exception); Any SAL_CALL nextElement() - throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); + throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception); private: Mutex aMutex; Sequence< Reference<XInterface > > aFactories; @@ -171,7 +171,7 @@ private: }; // XEnumeration -sal_Bool ServiceEnumeration_Impl::hasMoreElements() throw(::com::sun::star::uno::RuntimeException) +sal_Bool ServiceEnumeration_Impl::hasMoreElements() throw(::com::sun::star::uno::RuntimeException, std::exception) { MutexGuard aGuard( aMutex ); return nIt != aFactories.getLength(); @@ -179,7 +179,7 @@ sal_Bool ServiceEnumeration_Impl::hasMoreElements() throw(::com::sun::star::uno: // XEnumeration Any ServiceEnumeration_Impl::nextElement() - throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) { MutexGuard aGuard( aMutex ); if( nIt == aFactories.getLength() ) @@ -200,21 +200,21 @@ public: // XPropertySetInfo impl virtual Sequence< beans::Property > SAL_CALL getProperties() - throw (RuntimeException); + throw (RuntimeException, std::exception); virtual beans::Property SAL_CALL getPropertyByName( OUString const & name ) - throw (beans::UnknownPropertyException, RuntimeException); + throw (beans::UnknownPropertyException, RuntimeException, std::exception); virtual sal_Bool SAL_CALL hasPropertyByName( OUString const & name ) - throw (RuntimeException); + throw (RuntimeException, std::exception); }; Sequence< beans::Property > PropertySetInfo_Impl::getProperties() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return m_properties; } beans::Property PropertySetInfo_Impl::getPropertyByName( OUString const & name ) - throw (beans::UnknownPropertyException, RuntimeException) + throw (beans::UnknownPropertyException, RuntimeException, std::exception) { beans::Property const * p = m_properties.getConstArray(); for ( sal_Int32 nPos = m_properties.getLength(); nPos--; ) @@ -227,7 +227,7 @@ beans::Property PropertySetInfo_Impl::getPropertyByName( OUString const & name ) } sal_Bool PropertySetInfo_Impl::hasPropertyByName( OUString const & name ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { beans::Property const * p = m_properties.getConstArray(); for ( sal_Int32 nPos = m_properties.getLength(); nPos--; ) @@ -253,9 +253,9 @@ public: // XEnumeration virtual sal_Bool SAL_CALL hasMoreElements() - throw(::com::sun::star::uno::RuntimeException); + throw(::com::sun::star::uno::RuntimeException, std::exception); virtual Any SAL_CALL nextElement() - throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); + throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception); private: Mutex aMutex; @@ -268,7 +268,7 @@ ImplementationEnumeration_Impl::~ImplementationEnumeration_Impl() {} // XEnumeration sal_Bool ImplementationEnumeration_Impl::hasMoreElements() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { MutexGuard aGuard( aMutex ); return aIt != aImplementationMap.end(); @@ -276,7 +276,7 @@ sal_Bool ImplementationEnumeration_Impl::hasMoreElements() // XEnumeration Any ImplementationEnumeration_Impl::nextElement() - throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) { MutexGuard aGuard( aMutex ); if( aIt == aImplementationMap.end() ) @@ -339,11 +339,11 @@ public: {} // XEventListener - virtual void SAL_CALL disposing(const EventObject & rEvt ) throw(::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL disposing(const EventObject & rEvt ) throw(::com::sun::star::uno::RuntimeException, std::exception); }; void OServiceManager_Listener::disposing(const EventObject & rEvt ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { Reference<XSet > x( xSMgr ); if( x.is() ) @@ -388,68 +388,68 @@ public: // XInitialization void SAL_CALL initialize( Sequence< Any > const & args ) - throw (Exception); + throw (Exception, std::exception); // XServiceInfo - virtual OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException); - virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) 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& ServiceName) throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException, std::exception); // XMultiComponentFactory virtual Reference< XInterface > SAL_CALL createInstanceWithContext( OUString const & rServiceSpecifier, Reference< XComponentContext > const & xContext ) - throw (Exception, RuntimeException); + throw (Exception, RuntimeException, std::exception); virtual Reference< XInterface > SAL_CALL createInstanceWithArgumentsAndContext( OUString const & rServiceSpecifier, Sequence< Any > const & rArguments, Reference< XComponentContext > const & xContext ) - throw (Exception, RuntimeException); + throw (Exception, RuntimeException, std::exception); // virtual Sequence< OUString > SAL_CALL getAvailableServiceNames() // throw (RuntimeException); // XMultiServiceFactory - virtual Sequence< OUString > SAL_CALL getAvailableServiceNames() throw(::com::sun::star::uno::RuntimeException); - virtual Reference<XInterface > SAL_CALL createInstance(const OUString &) throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException); - virtual Reference<XInterface > SAL_CALL createInstanceWithArguments(const OUString &, const Sequence<Any >& Arguments) throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException); + virtual Sequence< OUString > SAL_CALL getAvailableServiceNames() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual Reference<XInterface > SAL_CALL createInstance(const OUString &) throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception); + virtual Reference<XInterface > SAL_CALL createInstanceWithArguments(const OUString &, const Sequence<Any >& Arguments) throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception); // The same as the getAvailableServiceNames, but only uique names Sequence< OUString > getUniqueAvailableServiceNames( HashSet_OWString & aNameSet ); // XElementAccess - virtual Type SAL_CALL getElementType() throw(::com::sun::star::uno::RuntimeException); - virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException); + virtual Type SAL_CALL getElementType() throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException, std::exception); // XEnumerationAccess - virtual Reference<XEnumeration > SAL_CALL createEnumeration() throw(::com::sun::star::uno::RuntimeException); + virtual Reference<XEnumeration > SAL_CALL createEnumeration() throw(::com::sun::star::uno::RuntimeException, std::exception); // XSet - virtual sal_Bool SAL_CALL has( const Any & Element ) throw(::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL insert( const Any & Element ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::ElementExistException, ::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL remove( const Any & Element ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException); + virtual sal_Bool SAL_CALL has( const Any & Element ) throw(::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL insert( const Any & Element ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::ElementExistException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL remove( const Any & Element ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException, std::exception); // XContentEnumerationAccess //Sequence< OUString > getAvailableServiceNames() throw( (Exception) ); - virtual Reference<XEnumeration > SAL_CALL createContentEnumeration(const OUString& aServiceName) throw(::com::sun::star::uno::RuntimeException); + virtual Reference<XEnumeration > SAL_CALL createContentEnumeration(const OUString& aServiceName) throw(::com::sun::star::uno::RuntimeException, std::exception); // XComponent - virtual void SAL_CALL dispose() throw(::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL dispose() throw(::com::sun::star::uno::RuntimeException, std::exception); // XPropertySet Reference<XPropertySetInfo > SAL_CALL getPropertySetInfo() - throw(::com::sun::star::uno::RuntimeException); + throw(::com::sun::star::uno::RuntimeException, std::exception); void SAL_CALL setPropertyValue(const OUString& PropertyName, const Any& aValue) - throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); + throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception); Any SAL_CALL getPropertyValue(const OUString& PropertyName) - throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); + throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception); void SAL_CALL addPropertyChangeListener(const OUString& PropertyName, const Reference<XPropertyChangeListener >& aListener) - throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); + throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception); void SAL_CALL removePropertyChangeListener(const OUString& PropertyName, const Reference<XPropertyChangeListener >& aListener) - throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); + throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception); void SAL_CALL addVetoableChangeListener(const OUString& PropertyName, const Reference<XVetoableChangeListener >& aListener) - throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); + throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception); void SAL_CALL removeVetoableChangeListener(const OUString& PropertyName, const Reference<XVetoableChangeListener >& aListener) - throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); + throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception); protected: inline bool is_disposed() const SAL_THROW( (lang::DisposedException) ); @@ -535,85 +535,85 @@ public: virtual ~OServiceManagerWrapper() SAL_THROW(()); // XServiceInfo - virtual OUString SAL_CALL getImplementationName() throw (RuntimeException) + virtual OUString SAL_CALL getImplementationName() throw (RuntimeException, std::exception) { return Reference< XServiceInfo >(getRoot(), UNO_QUERY_THROW)->getImplementationName(); } - virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw (RuntimeException) + virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw (RuntimeException, std::exception) { return Reference< XServiceInfo >(getRoot(), UNO_QUERY_THROW)->supportsService( ServiceName ); } - virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() throw (RuntimeException) + virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() throw (RuntimeException, std::exception) { return Reference< XServiceInfo >(getRoot(), UNO_QUERY_THROW)->getSupportedServiceNames(); } // XMultiComponentFactory virtual Reference< XInterface > SAL_CALL createInstanceWithContext( OUString const & rServiceSpecifier, Reference< XComponentContext > const & xContext ) - throw (Exception, RuntimeException) + throw (Exception, RuntimeException, std::exception) { return getRoot()->createInstanceWithContext( rServiceSpecifier, xContext ); } virtual Reference< XInterface > SAL_CALL createInstanceWithArgumentsAndContext( OUString const & rServiceSpecifier, Sequence< Any > const & rArguments, Reference< XComponentContext > const & xContext ) - throw (Exception, RuntimeException) + throw (Exception, RuntimeException, std::exception) { return getRoot()->createInstanceWithArgumentsAndContext( rServiceSpecifier, rArguments, xContext ); } // virtual Sequence< OUString > SAL_CALL getAvailableServiceNames() // throw (RuntimeException); // XMultiServiceFactory - virtual Sequence< OUString > SAL_CALL getAvailableServiceNames() throw (RuntimeException) + virtual Sequence< OUString > SAL_CALL getAvailableServiceNames() throw (RuntimeException, std::exception) { return getRoot()->getAvailableServiceNames(); } - virtual Reference<XInterface > SAL_CALL createInstance(const OUString & name) throw (Exception) + virtual Reference<XInterface > SAL_CALL createInstance(const OUString & name) throw (Exception, std::exception) { return getRoot()->createInstanceWithContext( name, m_xContext ); } - virtual Reference<XInterface > SAL_CALL createInstanceWithArguments(const OUString & name, const Sequence<Any >& Arguments) throw (Exception) + virtual Reference<XInterface > SAL_CALL createInstanceWithArguments(const OUString & name, const Sequence<Any >& Arguments) throw (Exception, std::exception) { return getRoot()->createInstanceWithArgumentsAndContext( name, Arguments, m_xContext ); } // XElementAccess - virtual Type SAL_CALL getElementType() throw (RuntimeException) + virtual Type SAL_CALL getElementType() throw (RuntimeException, std::exception) { return Reference< XElementAccess >(getRoot(), UNO_QUERY_THROW)->getElementType(); } - virtual sal_Bool SAL_CALL hasElements() throw (RuntimeException) + virtual sal_Bool SAL_CALL hasElements() throw (RuntimeException, std::exception) { return Reference< XElementAccess >(getRoot(), UNO_QUERY_THROW)->hasElements(); } // XEnumerationAccess - virtual Reference<XEnumeration > SAL_CALL createEnumeration() throw (RuntimeException) + virtual Reference<XEnumeration > SAL_CALL createEnumeration() throw (RuntimeException, std::exception) { return Reference< XEnumerationAccess >(getRoot(), UNO_QUERY_THROW)->createEnumeration(); } // XSet - virtual sal_Bool SAL_CALL has( const Any & Element ) throw (RuntimeException) + virtual sal_Bool SAL_CALL has( const Any & Element ) throw (RuntimeException, std::exception) { return Reference< XSet >(getRoot(), UNO_QUERY_THROW)->has( Element ); } - virtual void SAL_CALL insert( const Any & Element ) throw (lang::IllegalArgumentException, container::ElementExistException, RuntimeException) + virtual void SAL_CALL insert( const Any & Element ) throw (lang::IllegalArgumentException, container::ElementExistException, RuntimeException, std::exception) { Reference< XSet >(getRoot(), UNO_QUERY_THROW)->insert( Element ); } - virtual void SAL_CALL remove( const Any & Element ) throw (lang::IllegalArgumentException, container::NoSuchElementException, RuntimeException) + virtual void SAL_CALL remove( const Any & Element ) throw (lang::IllegalArgumentException, container::NoSuchElementException, RuntimeException, std::exception) { Reference< XSet >(getRoot(), UNO_QUERY_THROW)->remove( Element ); } // XContentEnumerationAccess //Sequence< OUString > getAvailableServiceNames() throw( (Exception) ); - virtual Reference<XEnumeration > SAL_CALL createContentEnumeration(const OUString& aServiceName) throw (RuntimeException) + virtual Reference<XEnumeration > SAL_CALL createContentEnumeration(const OUString& aServiceName) throw (RuntimeException, std::exception) { return Reference< XContentEnumerationAccess >(getRoot(), UNO_QUERY_THROW)->createContentEnumeration( aServiceName ); } // XPropertySet - Reference<XPropertySetInfo > SAL_CALL getPropertySetInfo() throw (RuntimeException) + Reference<XPropertySetInfo > SAL_CALL getPropertySetInfo() throw (RuntimeException, std::exception) { return Reference< XPropertySet >(getRoot(), UNO_QUERY_THROW)->getPropertySetInfo(); } void SAL_CALL setPropertyValue(const OUString& PropertyName, const Any& aValue) - throw (beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, RuntimeException); + throw (beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, RuntimeException, std::exception); Any SAL_CALL getPropertyValue(const OUString& PropertyName) - throw (beans::UnknownPropertyException, lang::WrappedTargetException, RuntimeException); + throw (beans::UnknownPropertyException, lang::WrappedTargetException, RuntimeException, std::exception); void SAL_CALL addPropertyChangeListener(const OUString& PropertyName, const Reference<XPropertyChangeListener >& aListener) - throw (beans::UnknownPropertyException, lang::WrappedTargetException, RuntimeException) + throw (beans::UnknownPropertyException, lang::WrappedTargetException, RuntimeException, std::exception) { Reference< XPropertySet >(getRoot(), UNO_QUERY_THROW)->addPropertyChangeListener( PropertyName, aListener ); } void SAL_CALL removePropertyChangeListener(const OUString& PropertyName, const Reference<XPropertyChangeListener >& aListener) - throw (beans::UnknownPropertyException, lang::WrappedTargetException, RuntimeException) + throw (beans::UnknownPropertyException, lang::WrappedTargetException, RuntimeException, std::exception) { Reference< XPropertySet >(getRoot(), UNO_QUERY_THROW)->removePropertyChangeListener( PropertyName, aListener ); } void SAL_CALL addVetoableChangeListener(const OUString& PropertyName, const Reference<XVetoableChangeListener >& aListener) - throw (beans::UnknownPropertyException, lang::WrappedTargetException, RuntimeException) + throw (beans::UnknownPropertyException, lang::WrappedTargetException, RuntimeException, std::exception) { Reference< XPropertySet >(getRoot(), UNO_QUERY_THROW)->addVetoableChangeListener( PropertyName, aListener ); } void SAL_CALL removeVetoableChangeListener(const OUString& PropertyName, const Reference<XVetoableChangeListener >& aListener) - throw (beans::UnknownPropertyException, lang::WrappedTargetException, RuntimeException) + throw (beans::UnknownPropertyException, lang::WrappedTargetException, RuntimeException, std::exception) { Reference< XPropertySet >(getRoot(), UNO_QUERY_THROW)->removeVetoableChangeListener( PropertyName, aListener ); } }; void SAL_CALL OServiceManagerWrapper::setPropertyValue( const OUString& PropertyName, const Any& aValue ) throw (beans::UnknownPropertyException, beans::PropertyVetoException, - lang::IllegalArgumentException, lang::WrappedTargetException, RuntimeException) + lang::IllegalArgumentException, lang::WrappedTargetException, RuntimeException, std::exception) { if ( PropertyName == "DefaultContext" ) { @@ -638,7 +638,7 @@ void SAL_CALL OServiceManagerWrapper::setPropertyValue( Any SAL_CALL OServiceManagerWrapper::getPropertyValue( const OUString& PropertyName ) - throw (beans::UnknownPropertyException, lang::WrappedTargetException, RuntimeException) + throw (beans::UnknownPropertyException, lang::WrappedTargetException, RuntimeException, std::exception) { if ( PropertyName == "DefaultContext" ) { @@ -699,7 +699,7 @@ OServiceManager::~OServiceManager() {} // XComponent void OServiceManager::dispose() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { if (rBHelper.bDisposed || rBHelper.bInDispose) return; @@ -755,7 +755,7 @@ void OServiceManager::disposing() // XPropertySet Reference<XPropertySetInfo > OServiceManager::getPropertySetInfo() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { check_undisposed(); if (! m_xPropertyInfo.is()) @@ -776,7 +776,7 @@ Reference<XPropertySetInfo > OServiceManager::getPropertySetInfo() void OServiceManager::setPropertyValue( const OUString& PropertyName, const Any& aValue ) - throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) { check_undisposed(); if ( PropertyName == "DefaultContext" ) @@ -803,7 +803,7 @@ void OServiceManager::setPropertyValue( } Any OServiceManager::getPropertyValue(const OUString& PropertyName) - throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) { check_undisposed(); if ( PropertyName == "DefaultContext" ) @@ -824,7 +824,7 @@ Any OServiceManager::getPropertyValue(const OUString& PropertyName) void OServiceManager::addPropertyChangeListener( const OUString&, const Reference<XPropertyChangeListener >&) - throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) { check_undisposed(); throw UnknownPropertyException(); @@ -832,7 +832,7 @@ void OServiceManager::addPropertyChangeListener( void OServiceManager::removePropertyChangeListener( const OUString&, const Reference<XPropertyChangeListener >&) - throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) { check_undisposed(); throw UnknownPropertyException(); @@ -840,7 +840,7 @@ void OServiceManager::removePropertyChangeListener( void OServiceManager::addVetoableChangeListener( const OUString&, const Reference<XVetoableChangeListener >&) - throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) { check_undisposed(); throw UnknownPropertyException(); @@ -848,7 +848,7 @@ void OServiceManager::addVetoableChangeListener( void OServiceManager::removeVetoableChangeListener( const OUString&, const Reference<XVetoableChangeListener >&) - throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) { check_undisposed(); throw UnknownPropertyException(); @@ -895,7 +895,7 @@ Sequence< OUString > OServiceManager::getUniqueAvailableServiceNames( Reference< XInterface > OServiceManager::createInstanceWithContext( OUString const & rServiceSpecifier, Reference< XComponentContext > const & xContext ) - throw (Exception, RuntimeException) + throw (Exception, RuntimeException, std::exception) { check_undisposed(); #if OSL_DEBUG_LEVEL > 0 @@ -959,7 +959,7 @@ Reference< XInterface > OServiceManager::createInstanceWithArgumentsAndContext( OUString const & rServiceSpecifier, Sequence< Any > const & rArguments, Reference< XComponentContext > const & xContext ) - throw (Exception, RuntimeException) + throw (Exception, RuntimeException, std::exception) { check_undisposed(); #if OSL_DEBUG_LEVEL > 0 @@ -1021,7 +1021,7 @@ Reference< XInterface > OServiceManager::createInstanceWithArgumentsAndContext( // XMultiServiceFactory, XMultiComponentFactory, XContentEnumeration Sequence< OUString > OServiceManager::getAvailableServiceNames() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { check_undisposed(); // all names @@ -1032,7 +1032,7 @@ Sequence< OUString > OServiceManager::getAvailableServiceNames() // XMultibleServiceFactory Reference<XInterface > OServiceManager::createInstance( const OUString& rServiceSpecifier ) - throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) { return createInstanceWithContext( rServiceSpecifier, m_xContext ); @@ -1042,7 +1042,7 @@ Reference<XInterface > OServiceManager::createInstance( Reference<XInterface > OServiceManager::createInstanceWithArguments( const OUString& rServiceSpecifier, const Sequence<Any >& rArguments ) - throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) { return createInstanceWithArgumentsAndContext( rServiceSpecifier, rArguments, m_xContext ); @@ -1050,7 +1050,7 @@ Reference<XInterface > OServiceManager::createInstanceWithArguments( // XInitialization void OServiceManager::initialize( Sequence< Any > const & ) - throw (Exception) + throw (Exception, std::exception) { check_undisposed(); OSL_FAIL( "not impl!" ); @@ -1058,21 +1058,21 @@ void OServiceManager::initialize( Sequence< Any > const & ) // XServiceInfo OUString OServiceManager::getImplementationName() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return OUString("com.sun.star.comp.stoc.OServiceManager"); } // XServiceInfo sal_Bool OServiceManager::supportsService(const OUString& ServiceName) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { return cppu::supportsService(this, ServiceName); } // XServiceInfo Sequence< OUString > OServiceManager::getSupportedServiceNames() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { Sequence< OUString > seqNames(2); seqNames[0] = "com.sun.star.lang.MultiServiceFactory"; @@ -1122,7 +1122,7 @@ Sequence< Reference< XInterface > > OServiceManager::queryServiceFactories( // XContentEnumerationAccess Reference<XEnumeration > OServiceManager::createContentEnumeration( const OUString& aServiceName ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { check_undisposed(); Sequence< Reference< XInterface > > factories( @@ -1134,7 +1134,7 @@ Reference<XEnumeration > OServiceManager::createContentEnumeration( } // XEnumeration -Reference<XEnumeration > OServiceManager::createEnumeration() throw(::com::sun::star::uno::RuntimeException) +Reference<XEnumeration > OServiceManager::createEnumeration() throw(::com::sun::star::uno::RuntimeException, std::exception) { check_undisposed(); MutexGuard aGuard( m_mutex ); @@ -1143,7 +1143,7 @@ Reference<XEnumeration > OServiceManager::createEnumeration() throw(::com::sun:: // XElementAccess Type OServiceManager::getElementType() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { check_undisposed(); return ::getCppuType( (const Reference< XInterface > *)0 ); @@ -1151,7 +1151,7 @@ Type OServiceManager::getElementType() // XElementAccess sal_Bool OServiceManager::hasElements() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { check_undisposed(); MutexGuard aGuard( m_mutex ); @@ -1160,7 +1160,7 @@ sal_Bool OServiceManager::hasElements() // XSet sal_Bool OServiceManager::has( const Any & Element ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { check_undisposed(); if( Element.getValueTypeClass() == TypeClass_INTERFACE ) @@ -1183,7 +1183,7 @@ sal_Bool OServiceManager::has( const Any & Element ) // XSet void OServiceManager::insert( const Any & Element ) - throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::ElementExistException, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::ElementExistException, ::com::sun::star::uno::RuntimeException, std::exception) { check_undisposed(); if( Element.getValueTypeClass() != TypeClass_INTERFACE ) @@ -1241,7 +1241,7 @@ sal_Bool OServiceManager::haveFactoryWithThisImplementation(const OUString& aImp void OServiceManager::remove( const Any & Element ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::NoSuchElementException, - ::com::sun::star::uno::RuntimeException) + ::com::sun::star::uno::RuntimeException, std::exception) { if (is_disposed()) return; @@ -1337,29 +1337,29 @@ public: // XInitialization void SAL_CALL initialize(const Sequence< Any >& Arguments) - throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException); + throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception); // XServiceInfo - OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException) + OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException, std::exception) { return OUString("com.sun.star.comp.stoc.ORegistryServiceManager"); } - Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException); + Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException, std::exception); // XMultiServiceFactory - Sequence< OUString > SAL_CALL getAvailableServiceNames() throw(::com::sun::star::uno::RuntimeException); + Sequence< OUString > SAL_CALL getAvailableServiceNames() throw(::com::sun::star::uno::RuntimeException, std::exception); // XContentEnumerationAccess //Sequence< OUString > getAvailableServiceNames() throw( (Exception) ); - Reference<XEnumeration > SAL_CALL createContentEnumeration(const OUString& aServiceName) throw(::com::sun::star::uno::RuntimeException); + Reference<XEnumeration > SAL_CALL createContentEnumeration(const OUString& aServiceName) throw(::com::sun::star::uno::RuntimeException, std::exception); // XComponent - void SAL_CALL dispose() throw(::com::sun::star::uno::RuntimeException); + void SAL_CALL dispose() throw(::com::sun::star::uno::RuntimeException, std::exception); // OServiceManager Reference<XPropertySetInfo > SAL_CALL getPropertySetInfo() - throw(::com::sun::star::uno::RuntimeException); + throw(::com::sun::star::uno::RuntimeException, std::exception); Any SAL_CALL getPropertyValue(const OUString& PropertyName) - throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); + throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception); protected: //OServiceManager @@ -1404,7 +1404,7 @@ ORegistryServiceManager::~ORegistryServiceManager() // XComponent void ORegistryServiceManager::dispose() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { if (rBHelper.bDisposed || rBHelper.bInDispose) return; @@ -1544,7 +1544,7 @@ void ORegistryServiceManager::fillAllNamesFromRegistry( HashSet_OWString & rSet // XInitialization void ORegistryServiceManager::initialize(const Sequence< Any >& Arguments) - throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) { check_undisposed(); MutexGuard aGuard( m_mutex ); @@ -1562,7 +1562,7 @@ void ORegistryServiceManager::initialize(const Sequence< Any >& Arguments) // XMultiServiceFactory, XContentEnumeration Sequence< OUString > ORegistryServiceManager::getAvailableServiceNames() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { check_undisposed(); MutexGuard aGuard( m_mutex ); @@ -1577,7 +1577,7 @@ Sequence< OUString > ORegistryServiceManager::getAvailableServiceNames() // XServiceInfo Sequence< OUString > ORegistryServiceManager::getSupportedServiceNames() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { Sequence< OUString > seqNames(2); seqNames[0] = "com.sun.star.lang.MultiServiceFactory"; @@ -1609,7 +1609,7 @@ Sequence< Reference< XInterface > > ORegistryServiceManager::queryServiceFactori // XContentEnumerationAccess Reference<XEnumeration > ORegistryServiceManager::createContentEnumeration( const OUString& aServiceName ) - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { check_undisposed(); MutexGuard aGuard( ((ORegistryServiceManager *)this)->m_mutex ); @@ -1632,7 +1632,7 @@ Reference<XEnumeration > ORegistryServiceManager::createContentEnumeration( // OServiceManager Reference<XPropertySetInfo > ORegistryServiceManager::getPropertySetInfo() - throw(::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::uno::RuntimeException, std::exception) { check_undisposed(); if (! m_xPropertyInfo.is()) @@ -1655,7 +1655,7 @@ Reference<XPropertySetInfo > ORegistryServiceManager::getPropertySetInfo() } Any ORegistryServiceManager::getPropertyValue(const OUString& PropertyName) - throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException) + throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) { check_undisposed(); if ( PropertyName == "Registry" ) diff --git a/stoc/source/simpleregistry/simpleregistry.cxx b/stoc/source/simpleregistry/simpleregistry.cxx index 3f5c8d8c871d..1f226fd5557b 100644 --- a/stoc/source/simpleregistry/simpleregistry.cxx +++ b/stoc/source/simpleregistry/simpleregistry.cxx @@ -64,45 +64,45 @@ public: osl::Mutex mutex_; private: - virtual OUString SAL_CALL getURL() throw (css::uno::RuntimeException); + virtual OUString SAL_CALL getURL() throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL open( OUString const & rURL, sal_Bool bReadOnly, sal_Bool bCreate) throw ( css::registry::InvalidRegistryException, - css::uno::RuntimeException); + css::uno::RuntimeException, std::exception); - virtual sal_Bool SAL_CALL isValid() throw (css::uno::RuntimeException); + virtual sal_Bool SAL_CALL isValid() throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL close() throw ( - css::registry::InvalidRegistryException, css::uno::RuntimeException); + css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception); virtual void SAL_CALL destroy() throw( - css::registry::InvalidRegistryException, css::uno::RuntimeException); + css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception); virtual css::uno::Reference< css::registry::XRegistryKey > SAL_CALL getRootKey() throw( - css::registry::InvalidRegistryException, css::uno::RuntimeException); + css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception); virtual sal_Bool SAL_CALL isReadOnly() throw( - css::registry::InvalidRegistryException, css::uno::RuntimeException); + css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception); virtual void SAL_CALL mergeKey( OUString const & aKeyName, OUString const & aUrl) throw ( css::registry::InvalidRegistryException, - css::registry::MergeConflictException, css::uno::RuntimeException); + css::registry::MergeConflictException, css::uno::RuntimeException, std::exception); virtual OUString SAL_CALL getImplementationName() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return OUString("com.sun.star.comp.stoc.SimpleRegistry"); } virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return cppu::supportsService(this, ServiceName); } virtual css::uno::Sequence< OUString > SAL_CALL - getSupportedServiceNames() throw (css::uno::RuntimeException) + getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) { css::uno::Sequence< OUString > names(1); names[0] = "com.sun.star.registry.SimpleRegistry"; @@ -121,151 +121,151 @@ public: private: virtual OUString SAL_CALL getKeyName() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual sal_Bool SAL_CALL isReadOnly() throw ( - css::registry::InvalidRegistryException, css::uno::RuntimeException); + css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception); - virtual sal_Bool SAL_CALL isValid() throw(css::uno::RuntimeException); + virtual sal_Bool SAL_CALL isValid() throw(css::uno::RuntimeException, std::exception); virtual css::registry::RegistryKeyType SAL_CALL getKeyType( OUString const & rKeyName) throw ( css::registry::InvalidRegistryException, - css::uno::RuntimeException); + css::uno::RuntimeException, std::exception); virtual css::registry::RegistryValueType SAL_CALL getValueType() throw( - css::registry::InvalidRegistryException, css::uno::RuntimeException); + css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception); virtual sal_Int32 SAL_CALL getLongValue() throw ( css::registry::InvalidRegistryException, - css::registry::InvalidValueException, css::uno::RuntimeException); + css::registry::InvalidValueException, css::uno::RuntimeException, std::exception); virtual void SAL_CALL setLongValue(sal_Int32 value) throw ( - css::registry::InvalidRegistryException, css::uno::RuntimeException); + css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception); virtual css::uno::Sequence< sal_Int32 > SAL_CALL getLongListValue() throw( css::registry::InvalidRegistryException, - css::registry::InvalidValueException, css::uno::RuntimeException); + css::registry::InvalidValueException, css::uno::RuntimeException, std::exception); virtual void SAL_CALL setLongListValue( com::sun::star::uno::Sequence< sal_Int32 > const & seqValue) throw ( css::registry::InvalidRegistryException, - css::uno::RuntimeException); + css::uno::RuntimeException, std::exception); virtual OUString SAL_CALL getAsciiValue() throw ( css::registry::InvalidRegistryException, - css::registry::InvalidValueException, css::uno::RuntimeException); + css::registry::InvalidValueException, css::uno::RuntimeException, std::exception); virtual void SAL_CALL setAsciiValue(OUString const & value) throw ( - css::registry::InvalidRegistryException, css::uno::RuntimeException); + css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception); virtual css::uno::Sequence< OUString > SAL_CALL getAsciiListValue() throw ( css::registry::InvalidRegistryException, - css::registry::InvalidValueException, css::uno::RuntimeException); + css::registry::InvalidValueException, css::uno::RuntimeException, std::exception); virtual void SAL_CALL setAsciiListValue( css::uno::Sequence< OUString > const & seqValue) throw ( css::registry::InvalidRegistryException, - css::uno::RuntimeException); + css::uno::RuntimeException, std::exception); virtual OUString SAL_CALL getStringValue() throw( css::registry::InvalidRegistryException, - css::registry::InvalidValueException, css::uno::RuntimeException); + css::registry::InvalidValueException, css::uno::RuntimeException, std::exception); virtual void SAL_CALL setStringValue(OUString const & value) throw ( - css::registry::InvalidRegistryException, css::uno::RuntimeException); + css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception); virtual css::uno::Sequence< OUString > SAL_CALL getStringListValue() throw ( css::registry::InvalidRegistryException, - css::registry::InvalidValueException, css::uno::RuntimeException); + css::registry::InvalidValueException, css::uno::RuntimeException, std::exception); virtual void SAL_CALL setStringListValue( css::uno::Sequence< OUString > const & seqValue) throw ( css::registry::InvalidRegistryException, - css::uno::RuntimeException); + css::uno::RuntimeException, std::exception); virtual css::uno::Sequence< sal_Int8 > SAL_CALL getBinaryValue() throw ( css::registry::InvalidRegistryException, - css::registry::InvalidValueException, css::uno::RuntimeException); + css::registry::InvalidValueException, css::uno::RuntimeException, std::exception); virtual void SAL_CALL setBinaryValue( css::uno::Sequence< sal_Int8 > const & value) throw ( css::registry::InvalidRegistryException, - css::uno::RuntimeException); + css::uno::RuntimeException, std::exception); virtual css::uno::Reference< css::registry::XRegistryKey > SAL_CALL openKey( OUString const & aKeyName) throw ( css::registry::InvalidRegistryException, - css::uno::RuntimeException); + css::uno::RuntimeException, std::exception); virtual css::uno::Reference< css::registry::XRegistryKey > SAL_CALL createKey(OUString const & aKeyName) throw ( - css::registry::InvalidRegistryException, css::uno::RuntimeException); + css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception); virtual void SAL_CALL closeKey() throw ( - css::registry::InvalidRegistryException, css::uno::RuntimeException); + css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception); virtual void SAL_CALL deleteKey(OUString const & rKeyName) throw ( - css::registry::InvalidRegistryException, css::uno::RuntimeException); + css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception); virtual css::uno::Sequence< css::uno::Reference< css::registry::XRegistryKey > > SAL_CALL openKeys() throw ( - css::registry::InvalidRegistryException, css::uno::RuntimeException); + css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception); virtual css::uno::Sequence< OUString > SAL_CALL getKeyNames() throw ( - css::registry::InvalidRegistryException, css::uno::RuntimeException); + css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception); virtual sal_Bool SAL_CALL createLink( OUString const & aLinkName, OUString const & aLinkTarget) throw ( css::registry::InvalidRegistryException, - css::uno::RuntimeException); + css::uno::RuntimeException, std::exception); virtual void SAL_CALL deleteLink(OUString const & rLinkName) throw ( - css::registry::InvalidRegistryException, css::uno::RuntimeException); + css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception); virtual OUString SAL_CALL getLinkTarget(OUString const & rLinkName) throw ( css::registry::InvalidRegistryException, - css::uno::RuntimeException); + css::uno::RuntimeException, std::exception); virtual OUString SAL_CALL getResolvedName(OUString const & aKeyName) throw ( css::registry::InvalidRegistryException, - css::uno::RuntimeException); + css::uno::RuntimeException, std::exception); rtl::Reference< SimpleRegistry > registry_; RegistryKey key_; }; -OUString Key::getKeyName() throw (css::uno::RuntimeException) { +OUString Key::getKeyName() throw (css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); return key_.getName(); } sal_Bool Key::isReadOnly() - throw (css::registry::InvalidRegistryException, css::uno::RuntimeException) + throw (css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); return key_.isReadOnly(); } -sal_Bool Key::isValid() throw (css::uno::RuntimeException) { +sal_Bool Key::isValid() throw (css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); return key_.isValid(); } css::registry::RegistryKeyType Key::getKeyType(OUString const & rKeyName) - throw (css::registry::InvalidRegistryException, css::uno::RuntimeException) + throw (css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); RegKeyType type; @@ -289,7 +289,7 @@ css::registry::RegistryKeyType Key::getKeyType(OUString const & rKeyName) } css::registry::RegistryValueType Key::getValueType() - throw (css::registry::InvalidRegistryException, css::uno::RuntimeException) + throw (css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); RegValueType type; @@ -333,7 +333,7 @@ css::registry::RegistryValueType Key::getValueType() sal_Int32 Key::getLongValue() throw ( css::registry::InvalidRegistryException, - css::registry::InvalidValueException, css::uno::RuntimeException) + css::registry::InvalidValueException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); sal_Int32 value; @@ -357,7 +357,7 @@ sal_Int32 Key::getLongValue() throw ( } void Key::setLongValue(sal_Int32 value) - throw (css::registry::InvalidRegistryException, css::uno::RuntimeException) + throw (css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); RegError err = key_.setValue( @@ -373,7 +373,7 @@ void Key::setLongValue(sal_Int32 value) css::uno::Sequence< sal_Int32 > Key::getLongListValue() throw ( css::registry::InvalidRegistryException, - css::registry::InvalidValueException, css::uno::RuntimeException) + css::registry::InvalidValueException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); RegistryValueList< sal_Int32 > list; @@ -411,7 +411,7 @@ css::uno::Sequence< sal_Int32 > Key::getLongListValue() throw ( } void Key::setLongListValue(css::uno::Sequence< sal_Int32 > const & seqValue) - throw (css::registry::InvalidRegistryException, css::uno::RuntimeException) + throw (css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); std::vector< sal_Int32 > list; @@ -432,7 +432,7 @@ void Key::setLongListValue(css::uno::Sequence< sal_Int32 > const & seqValue) OUString Key::getAsciiValue() throw ( css::registry::InvalidRegistryException, - css::registry::InvalidValueException, css::uno::RuntimeException) + css::registry::InvalidValueException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); RegValueType type; @@ -499,7 +499,7 @@ OUString Key::getAsciiValue() throw ( } void Key::setAsciiValue(OUString const & value) - throw (css::registry::InvalidRegistryException, css::uno::RuntimeException) + throw (css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); OString utf8; @@ -528,7 +528,7 @@ void Key::setAsciiValue(OUString const & value) css::uno::Sequence< OUString > Key::getAsciiListValue() throw ( css::registry::InvalidRegistryException, - css::registry::InvalidValueException, css::uno::RuntimeException) + css::registry::InvalidValueException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); RegistryValueList< char * > list; @@ -583,7 +583,7 @@ css::uno::Sequence< OUString > Key::getAsciiListValue() throw ( void Key::setAsciiListValue( css::uno::Sequence< OUString > const & seqValue) - throw (css::registry::InvalidRegistryException, css::uno::RuntimeException) + throw (css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); std::vector< OString > list; @@ -622,7 +622,7 @@ void Key::setAsciiListValue( OUString Key::getStringValue() throw ( css::registry::InvalidRegistryException, - css::registry::InvalidValueException, css::uno::RuntimeException) + css::registry::InvalidValueException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); RegValueType type; @@ -677,7 +677,7 @@ OUString Key::getStringValue() throw ( } void Key::setStringValue(OUString const & value) - throw (css::registry::InvalidRegistryException, css::uno::RuntimeException) + throw (css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); RegError err = key_.setValue( @@ -696,7 +696,7 @@ void Key::setStringValue(OUString const & value) css::uno::Sequence< OUString > Key::getStringListValue() throw ( css::registry::InvalidRegistryException, - css::registry::InvalidValueException, css::uno::RuntimeException) + css::registry::InvalidValueException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); RegistryValueList< sal_Unicode * > list; @@ -737,7 +737,7 @@ css::uno::Sequence< OUString > Key::getStringListValue() throw ( void Key::setStringListValue( css::uno::Sequence< OUString > const & seqValue) - throw (css::registry::InvalidRegistryException, css::uno::RuntimeException) + throw (css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); std::vector< sal_Unicode * > list; @@ -760,7 +760,7 @@ void Key::setStringListValue( css::uno::Sequence< sal_Int8 > Key::getBinaryValue() throw ( css::registry::InvalidRegistryException, - css::registry::InvalidValueException, css::uno::RuntimeException) + css::registry::InvalidValueException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); RegValueType type; @@ -799,7 +799,7 @@ css::uno::Sequence< sal_Int8 > Key::getBinaryValue() } void Key::setBinaryValue(css::uno::Sequence< sal_Int8 > const & value) - throw (css::registry::InvalidRegistryException, css::uno::RuntimeException) + throw (css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); RegError err = key_.setValue( @@ -817,7 +817,7 @@ void Key::setBinaryValue(css::uno::Sequence< sal_Int8 > const & value) css::uno::Reference< css::registry::XRegistryKey > Key::openKey( OUString const & aKeyName) - throw (css::registry::InvalidRegistryException, css::uno::RuntimeException) + throw (css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); RegistryKey key; @@ -838,7 +838,7 @@ css::uno::Reference< css::registry::XRegistryKey > Key::openKey( css::uno::Reference< css::registry::XRegistryKey > Key::createKey( OUString const & aKeyName) - throw (css::registry::InvalidRegistryException, css::uno::RuntimeException) + throw (css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); RegistryKey key; @@ -858,7 +858,7 @@ css::uno::Reference< css::registry::XRegistryKey > Key::createKey( } void Key::closeKey() - throw (css::registry::InvalidRegistryException, css::uno::RuntimeException) + throw (css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); RegError err = key_.closeKey(); @@ -872,7 +872,7 @@ void Key::closeKey() } void Key::deleteKey(OUString const & rKeyName) - throw (css::registry::InvalidRegistryException, css::uno::RuntimeException) + throw (css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); RegError err = key_.deleteKey(rKeyName); @@ -887,7 +887,7 @@ void Key::deleteKey(OUString const & rKeyName) css::uno::Sequence< css::uno::Reference< css::registry::XRegistryKey > > Key::openKeys() - throw (css::registry::InvalidRegistryException, css::uno::RuntimeException) + throw (css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); RegistryKeyArray list; @@ -916,7 +916,7 @@ Key::openKeys() } css::uno::Sequence< OUString > Key::getKeyNames() - throw (css::registry::InvalidRegistryException, css::uno::RuntimeException) + throw (css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); RegistryKeyNames list; @@ -944,7 +944,7 @@ css::uno::Sequence< OUString > Key::getKeyNames() sal_Bool Key::createLink( OUString const & aLinkName, OUString const & aLinkTarget) - throw (css::registry::InvalidRegistryException, css::uno::RuntimeException) + throw (css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); RegError err = key_.createLink(aLinkName, aLinkTarget); @@ -964,7 +964,7 @@ sal_Bool Key::createLink( } void Key::deleteLink(OUString const & rLinkName) - throw (css::registry::InvalidRegistryException, css::uno::RuntimeException) + throw (css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); RegError err = key_.deleteLink(rLinkName); @@ -978,7 +978,7 @@ void Key::deleteLink(OUString const & rLinkName) } OUString Key::getLinkTarget(OUString const & rLinkName) - throw (css::registry::InvalidRegistryException, css::uno::RuntimeException) + throw (css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); OUString target; @@ -994,7 +994,7 @@ OUString Key::getLinkTarget(OUString const & rLinkName) } OUString Key::getResolvedName(OUString const & aKeyName) - throw (css::registry::InvalidRegistryException, css::uno::RuntimeException) + throw (css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(registry_->mutex_); OUString resolved; @@ -1009,14 +1009,14 @@ OUString Key::getResolvedName(OUString const & aKeyName) return resolved; } -OUString SimpleRegistry::getURL() throw (css::uno::RuntimeException) { +OUString SimpleRegistry::getURL() throw (css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(mutex_); return registry_.getName(); } void SimpleRegistry::open( OUString const & rURL, sal_Bool bReadOnly, sal_Bool bCreate) - throw (css::registry::InvalidRegistryException, css::uno::RuntimeException) + throw (css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(mutex_); RegError err = (rURL.isEmpty() && bCreate) @@ -1035,13 +1035,13 @@ void SimpleRegistry::open( } } -sal_Bool SimpleRegistry::isValid() throw (css::uno::RuntimeException) { +sal_Bool SimpleRegistry::isValid() throw (css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(mutex_); return registry_.isValid(); } void SimpleRegistry::close() - throw (css::registry::InvalidRegistryException, css::uno::RuntimeException) + throw (css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(mutex_); RegError err = registry_.close(); @@ -1055,7 +1055,7 @@ void SimpleRegistry::close() } void SimpleRegistry::destroy() - throw (css::registry::InvalidRegistryException, css::uno::RuntimeException) + throw (css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(mutex_); RegError err = registry_.destroy(OUString()); @@ -1069,7 +1069,7 @@ void SimpleRegistry::destroy() } css::uno::Reference< css::registry::XRegistryKey > SimpleRegistry::getRootKey() - throw (css::registry::InvalidRegistryException, css::uno::RuntimeException) + throw (css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(mutex_); RegistryKey root; @@ -1085,7 +1085,7 @@ css::uno::Reference< css::registry::XRegistryKey > SimpleRegistry::getRootKey() } sal_Bool SimpleRegistry::isReadOnly() - throw (css::registry::InvalidRegistryException, css::uno::RuntimeException) + throw (css::registry::InvalidRegistryException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(mutex_); return registry_.isReadOnly(); @@ -1095,7 +1095,7 @@ void SimpleRegistry::mergeKey( OUString const & aKeyName, OUString const & aUrl) throw ( css::registry::InvalidRegistryException, - css::registry::MergeConflictException, css::uno::RuntimeException) + css::registry::MergeConflictException, css::uno::RuntimeException, std::exception) { osl::MutexGuard guard(mutex_); RegistryKey root; diff --git a/stoc/source/typeconv/convert.cxx b/stoc/source/typeconv/convert.cxx index 5d1dd19f4118..5a4609e01cb3 100644 --- a/stoc/source/typeconv/convert.cxx +++ b/stoc/source/typeconv/convert.cxx @@ -267,17 +267,17 @@ public: virtual ~TypeConverter_Impl(); // XServiceInfo - virtual OUString SAL_CALL getImplementationName() throw( RuntimeException ); + virtual OUString SAL_CALL getImplementationName() throw( RuntimeException, std::exception ); virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) - throw( RuntimeException ); + throw( RuntimeException, std::exception ); virtual Sequence< OUString > SAL_CALL getSupportedServiceNames(void) - throw( RuntimeException ); + throw( RuntimeException, std::exception ); // XTypeConverter virtual Any SAL_CALL convertTo( const Any& aFrom, const Type& DestinationType ) - throw( IllegalArgumentException, CannotConvertException, RuntimeException); + throw( IllegalArgumentException, CannotConvertException, RuntimeException, std::exception); virtual Any SAL_CALL convertToSimpleType( const Any& aFrom, TypeClass aDestinationType ) - throw( IllegalArgumentException, CannotConvertException, RuntimeException); + throw( IllegalArgumentException, CannotConvertException, RuntimeException, std::exception); }; TypeConverter_Impl::TypeConverter_Impl() {} @@ -285,19 +285,19 @@ TypeConverter_Impl::TypeConverter_Impl() {} TypeConverter_Impl::~TypeConverter_Impl() {} // XServiceInfo -OUString TypeConverter_Impl::getImplementationName() throw( RuntimeException ) +OUString TypeConverter_Impl::getImplementationName() throw( RuntimeException, std::exception ) { return stoc_services::tcv_getImplementationName(); } // XServiceInfo -sal_Bool TypeConverter_Impl::supportsService(const OUString& ServiceName) throw( RuntimeException ) +sal_Bool TypeConverter_Impl::supportsService(const OUString& ServiceName) throw( RuntimeException, std::exception ) { return cppu::supportsService(this, ServiceName); } // XServiceInfo -Sequence< OUString > TypeConverter_Impl::getSupportedServiceNames(void) throw( RuntimeException ) +Sequence< OUString > TypeConverter_Impl::getSupportedServiceNames(void) throw( RuntimeException, std::exception ) { return stoc_services::tcv_getSupportedServiceNames(); } @@ -500,7 +500,7 @@ double TypeConverter_Impl::toDouble( const Any& rAny, double min, double max ) c Any SAL_CALL TypeConverter_Impl::convertTo( const Any& rVal, const Type& aDestType ) - throw( IllegalArgumentException, CannotConvertException, RuntimeException) + throw( IllegalArgumentException, CannotConvertException, RuntimeException, std::exception) { Type aSourceType = rVal.getValueType(); if (aSourceType == aDestType) @@ -694,7 +694,7 @@ Any SAL_CALL TypeConverter_Impl::convertTo( const Any& rVal, const Type& aDestTy Any TypeConverter_Impl::convertToSimpleType( const Any& rVal, TypeClass aDestinationClass ) - throw( IllegalArgumentException, CannotConvertException, RuntimeException ) + throw( IllegalArgumentException, CannotConvertException, RuntimeException, std::exception ) { switch (aDestinationClass) { diff --git a/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx b/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx index f314d158ec9f..0b6300fe394f 100644 --- a/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx +++ b/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx @@ -51,21 +51,21 @@ public: m_context(context) {} virtual OUString SAL_CALL getImplementationName() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual sal_Bool SAL_CALL supportsService(OUString const & serviceName) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual css::uno::Sequence< OUString > SAL_CALL - getSupportedServiceNames() throw (css::uno::RuntimeException); + getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception); virtual OUString SAL_CALL translateToInternal(OUString const & externalUriReference) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual OUString SAL_CALL translateToExternal(OUString const & internalUriReference) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); private: Translator(Translator &); // not implemented @@ -77,20 +77,20 @@ private: }; OUString Translator::getImplementationName() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return stoc_services::ExternalUriReferenceTranslator::getImplementationName(); } sal_Bool Translator::supportsService(OUString const & serviceName) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return cppu::supportsService(this, serviceName); } css::uno::Sequence< OUString > Translator::getSupportedServiceNames() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return stoc_services::ExternalUriReferenceTranslator:: getSupportedServiceNames(); @@ -98,7 +98,7 @@ css::uno::Sequence< OUString > Translator::getSupportedServiceNames() OUString Translator::translateToInternal( OUString const & externalUriReference) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { if (!externalUriReference.matchIgnoreAsciiCase("file:/")) { @@ -147,7 +147,7 @@ OUString Translator::translateToInternal( OUString Translator::translateToExternal( OUString const & internalUriReference) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { if (!internalUriReference.matchIgnoreAsciiCase("file://")) { diff --git a/stoc/source/uriproc/UriReferenceFactory.cxx b/stoc/source/uriproc/UriReferenceFactory.cxx index a6edbc135551..0971fb8a7a46 100644 --- a/stoc/source/uriproc/UriReferenceFactory.cxx +++ b/stoc/source/uriproc/UriReferenceFactory.cxx @@ -105,71 +105,71 @@ public: {} virtual OUString SAL_CALL getUriReference() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.getUriReference(); } virtual sal_Bool SAL_CALL isAbsolute() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.isAbsolute(); } virtual OUString SAL_CALL getScheme() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.getScheme(); } virtual OUString SAL_CALL getSchemeSpecificPart() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.getSchemeSpecificPart(); } virtual sal_Bool SAL_CALL isHierarchical() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.isHierarchical(); } virtual sal_Bool SAL_CALL hasAuthority() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.hasAuthority(); } virtual OUString SAL_CALL getAuthority() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.getAuthority(); } virtual OUString SAL_CALL getPath() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.getPath(); } virtual sal_Bool SAL_CALL hasRelativePath() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.hasRelativePath(); } virtual sal_Int32 SAL_CALL getPathSegmentCount() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.getPathSegmentCount(); } virtual OUString SAL_CALL getPathSegment(sal_Int32 index) - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.getPathSegment(index); } virtual sal_Bool SAL_CALL hasQuery() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.hasQuery(); } virtual OUString SAL_CALL getQuery() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.getQuery(); } virtual sal_Bool SAL_CALL hasFragment() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.hasFragment(); } virtual OUString SAL_CALL getFragment() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.getFragment(); } virtual void SAL_CALL setFragment(OUString const & fragment) - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { m_base.setFragment(fragment); } virtual void SAL_CALL clearFragment() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { m_base.clearFragment(); } private: @@ -266,13 +266,13 @@ public: m_context(context) {} virtual OUString SAL_CALL getImplementationName() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual sal_Bool SAL_CALL supportsService(OUString const & serviceName) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual css::uno::Sequence< OUString > SAL_CALL - getSupportedServiceNames() throw (css::uno::RuntimeException); + getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception); virtual css::uno::Reference< css::uri::XUriReference > SAL_CALL parse(OUString const & uriReference) @@ -284,7 +284,7 @@ public: css::uno::Reference< css::uri::XUriReference > const & uriReference, sal_Bool processSpecialBaseSegments, css::uri::RelativeUriExcessParentSegments excessParentSegments) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual css::uno::Reference< css::uri::XUriReference > SAL_CALL makeRelative( @@ -293,7 +293,7 @@ public: sal_Bool preferAuthorityOverRelativePath, sal_Bool preferAbsoluteOverRelativePath, sal_Bool encodeRetainedSpecialSegments) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); private: Factory(Factory &); // not implemented @@ -309,19 +309,19 @@ private: }; OUString Factory::getImplementationName() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return stoc_services::UriReferenceFactory::getImplementationName(); } sal_Bool Factory::supportsService(OUString const & serviceName) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return cppu::supportsService(this, serviceName); } css::uno::Sequence< OUString > Factory::getSupportedServiceNames() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return stoc_services::UriReferenceFactory::getSupportedServiceNames(); } @@ -401,7 +401,7 @@ css::uno::Reference< css::uri::XUriReference > Factory::makeAbsolute( css::uno::Reference< css::uri::XUriReference > const & uriReference, sal_Bool processSpecialBaseSegments, css::uri::RelativeUriExcessParentSegments excessParentSegments) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { if (!baseUriReference.is() || !baseUriReference->isAbsolute() || !baseUriReference->isHierarchical() || !uriReference.is()) { @@ -517,7 +517,7 @@ css::uno::Reference< css::uri::XUriReference > Factory::makeRelative( sal_Bool preferAuthorityOverRelativePath, sal_Bool preferAbsoluteOverRelativePath, sal_Bool encodeRetainedSpecialSegments) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { if (!baseUriReference.is() || !baseUriReference->isAbsolute() || !baseUriReference->isHierarchical() || !uriReference.is()) { diff --git a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx index ad4008dd9eb7..e6e3a9780fbd 100644 --- a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx +++ b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx @@ -66,72 +66,72 @@ public: {} virtual OUString SAL_CALL getUriReference() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return base_.getUriReference(); } - virtual ::sal_Bool SAL_CALL isAbsolute() throw (css::uno::RuntimeException) + virtual ::sal_Bool SAL_CALL isAbsolute() throw (css::uno::RuntimeException, std::exception) { return base_.isAbsolute(); } virtual OUString SAL_CALL getScheme() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return base_.getScheme(); } virtual OUString SAL_CALL getSchemeSpecificPart() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return base_.getSchemeSpecificPart(); } virtual ::sal_Bool SAL_CALL isHierarchical() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return base_.isHierarchical(); } virtual ::sal_Bool SAL_CALL hasAuthority() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return base_.hasAuthority(); } virtual OUString SAL_CALL getAuthority() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return base_.getAuthority(); } virtual OUString SAL_CALL getPath() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return base_.getPath(); } virtual ::sal_Bool SAL_CALL hasRelativePath() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return base_.hasRelativePath(); } virtual ::sal_Int32 SAL_CALL getPathSegmentCount() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return base_.getPathSegmentCount(); } virtual OUString SAL_CALL getPathSegment(sal_Int32 index) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return base_.getPathSegment(index); } - virtual ::sal_Bool SAL_CALL hasQuery() throw (css::uno::RuntimeException) + virtual ::sal_Bool SAL_CALL hasQuery() throw (css::uno::RuntimeException, std::exception) { return base_.hasQuery(); } virtual OUString SAL_CALL getQuery() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return base_.getQuery(); } - virtual ::sal_Bool SAL_CALL hasFragment() throw (css::uno::RuntimeException) + virtual ::sal_Bool SAL_CALL hasFragment() throw (css::uno::RuntimeException, std::exception) { return base_.hasFragment(); } virtual OUString SAL_CALL getFragment() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return base_.getFragment(); } virtual void SAL_CALL setFragment(OUString const & fragment) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { base_.setFragment(fragment); } - virtual void SAL_CALL clearFragment() throw (css::uno::RuntimeException) + virtual void SAL_CALL clearFragment() throw (css::uno::RuntimeException, std::exception) { base_.clearFragment(); } virtual OUString SAL_CALL expand( css::uno::Reference< css::util::XMacroExpander > const & expander) - throw (css::lang::IllegalArgumentException, css::uno::RuntimeException); + throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception); private: UrlReference(UrlReference &); // not defined @@ -144,7 +144,7 @@ private: OUString UrlReference::expand( css::uno::Reference< css::util::XMacroExpander > const & expander) - throw (css::lang::IllegalArgumentException, css::uno::RuntimeException) + throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) { OSL_ASSERT(expander.is()); return expander->expandMacros( @@ -159,14 +159,14 @@ public: Parser() {} virtual OUString SAL_CALL getImplementationName() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual ::sal_Bool SAL_CALL supportsService( OUString const & serviceName) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual css::uno::Sequence< OUString > SAL_CALL - getSupportedServiceNames() throw (css::uno::RuntimeException); + getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception); virtual css::uno::Reference< css::uri::XUriReference > SAL_CALL parse( @@ -182,20 +182,20 @@ private: }; OUString Parser::getImplementationName() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return ::stoc_services::UriSchemeParser_vndDOTsunDOTstarDOTexpand:: getImplementationName(); } ::sal_Bool Parser::supportsService(OUString const & serviceName) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return cppu::supportsService(this, serviceName); } css::uno::Sequence< OUString > Parser::getSupportedServiceNames() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return ::stoc_services::UriSchemeParser_vndDOTsunDOTstarDOTexpand:: getSupportedServiceNames(); diff --git a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx index 53c15bff3d6f..9faace973ed9 100644 --- a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx +++ b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx @@ -199,86 +199,86 @@ public: {} virtual OUString SAL_CALL getUriReference() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.getUriReference(); } virtual sal_Bool SAL_CALL isAbsolute() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.isAbsolute(); } virtual OUString SAL_CALL getScheme() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.getScheme(); } virtual OUString SAL_CALL getSchemeSpecificPart() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.getSchemeSpecificPart(); } virtual sal_Bool SAL_CALL isHierarchical() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.isHierarchical(); } virtual sal_Bool SAL_CALL hasAuthority() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.hasAuthority(); } virtual OUString SAL_CALL getAuthority() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.getAuthority(); } virtual OUString SAL_CALL getPath() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.getPath(); } virtual sal_Bool SAL_CALL hasRelativePath() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.hasRelativePath(); } virtual sal_Int32 SAL_CALL getPathSegmentCount() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.getPathSegmentCount(); } virtual OUString SAL_CALL getPathSegment(sal_Int32 index) - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.getPathSegment(index); } virtual sal_Bool SAL_CALL hasQuery() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.hasQuery(); } virtual OUString SAL_CALL getQuery() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.getQuery(); } virtual sal_Bool SAL_CALL hasFragment() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.hasFragment(); } virtual OUString SAL_CALL getFragment() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { return m_base.getFragment(); } virtual void SAL_CALL setFragment(OUString const & fragment) - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { m_base.setFragment(fragment); } virtual void SAL_CALL clearFragment() - throw (com::sun::star::uno::RuntimeException) + throw (com::sun::star::uno::RuntimeException, std::exception) { m_base.clearFragment(); } - virtual OUString SAL_CALL getName() throw (css::uno::RuntimeException); + virtual OUString SAL_CALL getName() throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL setName(OUString const & name) - throw (css::uno::RuntimeException, css::lang::IllegalArgumentException); + throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception); virtual sal_Bool SAL_CALL hasParameter(OUString const & key) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual OUString SAL_CALL getParameter(OUString const & key) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual void SAL_CALL setParameter(OUString const & key, OUString const & value) - throw (css::uno::RuntimeException, css::lang::IllegalArgumentException); + throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception); private: UrlReference(UrlReference &); // not implemented @@ -291,13 +291,13 @@ private: stoc::uriproc::UriReference m_base; }; -OUString UrlReference::getName() throw (css::uno::RuntimeException) { +OUString UrlReference::getName() throw (css::uno::RuntimeException, std::exception) { osl::MutexGuard g(m_base.m_mutex); sal_Int32 i = 0; return parsePart(m_base.m_path, true, &i); } -void SAL_CALL UrlReference::setName(OUString const & name) throw (css::uno::RuntimeException, css::lang::IllegalArgumentException) +void SAL_CALL UrlReference::setName(OUString const & name) throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception) { if (name.isEmpty()) throw css::lang::IllegalArgumentException( @@ -314,14 +314,14 @@ void SAL_CALL UrlReference::setName(OUString const & name) throw (css::uno::Runt } sal_Bool UrlReference::hasParameter(OUString const & key) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { osl::MutexGuard g(m_base.m_mutex); return findParameter(key) >= 0; } OUString UrlReference::getParameter(OUString const & key) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { osl::MutexGuard g(m_base.m_mutex); sal_Int32 i = findParameter(key); @@ -329,7 +329,7 @@ OUString UrlReference::getParameter(OUString const & key) } void UrlReference::setParameter(OUString const & key, OUString const & value) - throw (css::uno::RuntimeException, css::lang::IllegalArgumentException) + throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception) { if (key.isEmpty()) throw css::lang::IllegalArgumentException( @@ -383,13 +383,13 @@ public: Parser() {} virtual OUString SAL_CALL getImplementationName() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual sal_Bool SAL_CALL supportsService(OUString const & serviceName) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual css::uno::Sequence< OUString > SAL_CALL - getSupportedServiceNames() throw (css::uno::RuntimeException); + getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception); virtual css::uno::Reference< css::uri::XUriReference > SAL_CALL parse( @@ -404,20 +404,20 @@ private: }; OUString Parser::getImplementationName() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return stoc_services::UriSchemeParser_vndDOTsunDOTstarDOTscript:: getImplementationName(); } sal_Bool Parser::supportsService(OUString const & serviceName) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return cppu::supportsService(this, serviceName); } css::uno::Sequence< OUString > Parser::getSupportedServiceNames() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return stoc_services::UriSchemeParser_vndDOTsunDOTstarDOTscript:: getSupportedServiceNames(); diff --git a/stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx b/stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx index 3b7883f54f21..4d2ff0acadf8 100644 --- a/stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx +++ b/stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx @@ -53,18 +53,18 @@ public: m_context(context) {} virtual OUString SAL_CALL getImplementationName() - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual sal_Bool SAL_CALL supportsService(OUString const & serviceName) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); virtual css::uno::Sequence< OUString > SAL_CALL - getSupportedServiceNames() throw (css::uno::RuntimeException); + getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception); virtual css::uno::Reference< css::uri::XUriReference > SAL_CALL createVndSunStarPkgUrlReference( css::uno::Reference< css::uri::XUriReference > const & authority) - throw (css::uno::RuntimeException); + throw (css::uno::RuntimeException, std::exception); private: Factory(Factory &); // not implemented @@ -76,7 +76,7 @@ private: }; OUString Factory::getImplementationName() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return stoc_services::VndSunStarPkgUrlReferenceFactory:: @@ -84,13 +84,13 @@ OUString Factory::getImplementationName() } sal_Bool Factory::supportsService(OUString const & serviceName) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return cppu::supportsService(this, serviceName); } css::uno::Sequence< OUString > Factory::getSupportedServiceNames() - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { return stoc_services::VndSunStarPkgUrlReferenceFactory:: getSupportedServiceNames(); @@ -99,7 +99,7 @@ css::uno::Sequence< OUString > Factory::getSupportedServiceNames() css::uno::Reference< css::uri::XUriReference > Factory::createVndSunStarPkgUrlReference( css::uno::Reference< css::uri::XUriReference > const & authority) - throw (css::uno::RuntimeException) + throw (css::uno::RuntimeException, std::exception) { OSL_ASSERT(authority.is()); if (authority->isAbsolute() && !authority->hasFragment()) { |