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 /scripting | |
parent | 6fc2bd0094a23aafadeef3f4a8c2803d621a588d (diff) |
cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
Diffstat (limited to 'scripting')
32 files changed, 515 insertions, 515 deletions
diff --git a/scripting/source/basprov/baslibnode.cxx b/scripting/source/basprov/baslibnode.cxx index 80f468acbe05..70ab2e82cbbf 100644 --- a/scripting/source/basprov/baslibnode.cxx +++ b/scripting/source/basprov/baslibnode.cxx @@ -68,7 +68,7 @@ namespace basprov // XBrowseNode - OUString BasicLibraryNodeImpl::getName( ) throw (RuntimeException) + OUString BasicLibraryNodeImpl::getName( ) throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -77,7 +77,7 @@ namespace basprov - Sequence< Reference< browse::XBrowseNode > > BasicLibraryNodeImpl::getChildNodes( ) throw (RuntimeException) + Sequence< Reference< browse::XBrowseNode > > BasicLibraryNodeImpl::getChildNodes( ) throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -111,7 +111,7 @@ namespace basprov - sal_Bool BasicLibraryNodeImpl::hasChildNodes( ) throw (RuntimeException) + sal_Bool BasicLibraryNodeImpl::hasChildNodes( ) throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -124,7 +124,7 @@ namespace basprov - sal_Int16 BasicLibraryNodeImpl::getType( ) throw (RuntimeException) + sal_Int16 BasicLibraryNodeImpl::getType( ) throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; diff --git a/scripting/source/basprov/baslibnode.hxx b/scripting/source/basprov/baslibnode.hxx index 7705b35fd014..1d7f975b497f 100644 --- a/scripting/source/basprov/baslibnode.hxx +++ b/scripting/source/basprov/baslibnode.hxx @@ -63,13 +63,13 @@ namespace basprov // XBrowseNode virtual OUString SAL_CALL getName( ) - 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::script::browse::XBrowseNode > > SAL_CALL getChildNodes( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual sal_Bool SAL_CALL hasChildNodes( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual sal_Int16 SAL_CALL getType( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); }; diff --git a/scripting/source/basprov/basmethnode.cxx b/scripting/source/basprov/basmethnode.cxx index 9ae84194a7ee..5b600ee48666 100644 --- a/scripting/source/basprov/basmethnode.cxx +++ b/scripting/source/basprov/basmethnode.cxx @@ -117,7 +117,7 @@ namespace basprov // XBrowseNode - OUString BasicMethodNodeImpl::getName( ) throw (RuntimeException) + OUString BasicMethodNodeImpl::getName( ) throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -130,7 +130,7 @@ namespace basprov - Sequence< Reference< browse::XBrowseNode > > BasicMethodNodeImpl::getChildNodes( ) throw (RuntimeException) + Sequence< Reference< browse::XBrowseNode > > BasicMethodNodeImpl::getChildNodes( ) throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -139,7 +139,7 @@ namespace basprov - sal_Bool BasicMethodNodeImpl::hasChildNodes( ) throw (RuntimeException) + sal_Bool BasicMethodNodeImpl::hasChildNodes( ) throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -148,7 +148,7 @@ namespace basprov - sal_Int16 BasicMethodNodeImpl::getType( ) throw (RuntimeException) + sal_Int16 BasicMethodNodeImpl::getType( ) throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -179,7 +179,7 @@ namespace basprov // XPropertySet - Reference< XPropertySetInfo > BasicMethodNodeImpl::getPropertySetInfo( ) throw (RuntimeException) + Reference< XPropertySetInfo > BasicMethodNodeImpl::getPropertySetInfo( ) throw (RuntimeException, std::exception) { Reference< XPropertySetInfo > xInfo( createPropertySetInfo( getInfoHelper() ) ); return xInfo; @@ -189,7 +189,7 @@ namespace basprov // XInvocation - Reference< XIntrospectionAccess > BasicMethodNodeImpl::getIntrospection( ) throw (RuntimeException) + Reference< XIntrospectionAccess > BasicMethodNodeImpl::getIntrospection( ) throw (RuntimeException, std::exception) { return Reference< XIntrospectionAccess >(); } @@ -199,7 +199,7 @@ namespace basprov Any BasicMethodNodeImpl::invoke( const OUString& aFunctionName, const Sequence< Any >& aParams, Sequence< sal_Int16 >& aOutParamIndex, Sequence< Any >& aOutParam ) throw (IllegalArgumentException, script::CannotConvertException, - reflection::InvocationTargetException, RuntimeException) + reflection::InvocationTargetException, RuntimeException, std::exception) { (void)aParams; (void)aOutParamIndex; @@ -287,7 +287,7 @@ namespace basprov void BasicMethodNodeImpl::setValue( const OUString& aPropertyName, const Any& aValue ) throw (UnknownPropertyException, script::CannotConvertException, - reflection::InvocationTargetException, RuntimeException) + reflection::InvocationTargetException, RuntimeException, std::exception) { (void)aPropertyName; (void)aValue; @@ -299,7 +299,7 @@ namespace basprov - Any BasicMethodNodeImpl::getValue( const OUString& aPropertyName ) throw (UnknownPropertyException, RuntimeException) + Any BasicMethodNodeImpl::getValue( const OUString& aPropertyName ) throw (UnknownPropertyException, RuntimeException, std::exception) { (void)aPropertyName; @@ -310,7 +310,7 @@ namespace basprov - sal_Bool BasicMethodNodeImpl::hasMethod( const OUString& aName ) throw (RuntimeException) + sal_Bool BasicMethodNodeImpl::hasMethod( const OUString& aName ) throw (RuntimeException, std::exception) { sal_Bool bReturn = sal_False; if ( aName == BASPROV_PROPERTY_EDITABLE ) @@ -321,7 +321,7 @@ namespace basprov - sal_Bool BasicMethodNodeImpl::hasProperty( const OUString& aName ) throw (RuntimeException) + sal_Bool BasicMethodNodeImpl::hasProperty( const OUString& aName ) throw (RuntimeException, std::exception) { (void)aName; diff --git a/scripting/source/basprov/basmethnode.hxx b/scripting/source/basprov/basmethnode.hxx index 88f2076318dc..e0425762c17d 100644 --- a/scripting/source/basprov/basmethnode.hxx +++ b/scripting/source/basprov/basmethnode.hxx @@ -84,37 +84,37 @@ namespace basprov // XBrowseNode virtual OUString SAL_CALL getName( ) - 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::script::browse::XBrowseNode > > SAL_CALL getChildNodes( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual sal_Bool SAL_CALL hasChildNodes( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual sal_Int16 SAL_CALL getType( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); // XPropertySet virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); // XInvocation virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XIntrospectionAccess > SAL_CALL getIntrospection( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::uno::Any SAL_CALL invoke( const OUString& aFunctionName, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aParams, ::com::sun::star::uno::Sequence< sal_Int16 >& aOutParamIndex, ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aOutParam ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::script::CannotConvertException, - ::com::sun::star::reflection::InvocationTargetException, ::com::sun::star::uno::RuntimeException); + ::com::sun::star::reflection::InvocationTargetException, ::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL setValue( const OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::script::CannotConvertException, - ::com::sun::star::reflection::InvocationTargetException, ::com::sun::star::uno::RuntimeException); + ::com::sun::star::reflection::InvocationTargetException, ::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::uno::Any SAL_CALL getValue( const OUString& aPropertyName ) - throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException, std::exception); virtual sal_Bool SAL_CALL hasMethod( const OUString& aName ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual sal_Bool SAL_CALL hasProperty( const OUString& aName ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); }; diff --git a/scripting/source/basprov/basmodnode.cxx b/scripting/source/basprov/basmodnode.cxx index 0b18fcfaf693..7c548cbaeaaa 100644 --- a/scripting/source/basprov/basmodnode.cxx +++ b/scripting/source/basprov/basmodnode.cxx @@ -62,7 +62,7 @@ namespace basprov // XBrowseNode - OUString BasicModuleNodeImpl::getName( ) throw (RuntimeException) + OUString BasicModuleNodeImpl::getName( ) throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -75,7 +75,7 @@ namespace basprov - Sequence< Reference< browse::XBrowseNode > > BasicModuleNodeImpl::getChildNodes( ) throw (RuntimeException) + Sequence< Reference< browse::XBrowseNode > > BasicModuleNodeImpl::getChildNodes( ) throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -112,7 +112,7 @@ namespace basprov - sal_Bool BasicModuleNodeImpl::hasChildNodes( ) throw (RuntimeException) + sal_Bool BasicModuleNodeImpl::hasChildNodes( ) throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -129,7 +129,7 @@ namespace basprov - sal_Int16 BasicModuleNodeImpl::getType( ) throw (RuntimeException) + sal_Int16 BasicModuleNodeImpl::getType( ) throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; diff --git a/scripting/source/basprov/basmodnode.hxx b/scripting/source/basprov/basmodnode.hxx index e34424386397..25fbe842ee01 100644 --- a/scripting/source/basprov/basmodnode.hxx +++ b/scripting/source/basprov/basmodnode.hxx @@ -57,13 +57,13 @@ namespace basprov // XBrowseNode virtual OUString SAL_CALL getName( ) - 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::script::browse::XBrowseNode > > SAL_CALL getChildNodes( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual sal_Bool SAL_CALL hasChildNodes( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual sal_Int16 SAL_CALL getType( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); }; diff --git a/scripting/source/basprov/basprov.cxx b/scripting/source/basprov/basprov.cxx index d048e6677c9a..e7360234027a 100644 --- a/scripting/source/basprov/basprov.cxx +++ b/scripting/source/basprov/basprov.cxx @@ -182,17 +182,17 @@ namespace basprov } // XServiceInfo - OUString BasicProviderImpl::getImplementationName( ) throw (RuntimeException) + OUString BasicProviderImpl::getImplementationName( ) throw (RuntimeException, std::exception) { return getImplementationName_BasicProviderImpl(); } - sal_Bool BasicProviderImpl::supportsService( const OUString& rServiceName ) throw (RuntimeException) + sal_Bool BasicProviderImpl::supportsService( const OUString& rServiceName ) throw (RuntimeException, std::exception) { return cppu::supportsService(this, rServiceName); } - Sequence< OUString > BasicProviderImpl::getSupportedServiceNames( ) throw (RuntimeException) + Sequence< OUString > BasicProviderImpl::getSupportedServiceNames( ) throw (RuntimeException, std::exception) { return getSupportedServiceNames_BasicProviderImpl(); } @@ -201,7 +201,7 @@ namespace basprov // XInitialization - void BasicProviderImpl::initialize( const Sequence< Any >& aArguments ) throw (Exception, RuntimeException) + void BasicProviderImpl::initialize( const Sequence< Any >& aArguments ) throw (Exception, RuntimeException, std::exception) { // TODO @@ -294,7 +294,7 @@ namespace basprov Reference < provider::XScript > BasicProviderImpl::getScript( const OUString& scriptURI ) - throw ( provider::ScriptFrameworkErrorException, RuntimeException) + throw ( provider::ScriptFrameworkErrorException, RuntimeException, std::exception) { // TODO @@ -417,7 +417,7 @@ namespace basprov // XBrowseNode - OUString BasicProviderImpl::getName( ) throw (RuntimeException) + OUString BasicProviderImpl::getName( ) throw (RuntimeException, std::exception) { // TODO @@ -428,7 +428,7 @@ namespace basprov - Sequence< Reference< browse::XBrowseNode > > BasicProviderImpl::getChildNodes( ) throw (RuntimeException) + Sequence< Reference< browse::XBrowseNode > > BasicProviderImpl::getChildNodes( ) throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -486,7 +486,7 @@ namespace basprov - sal_Bool BasicProviderImpl::hasChildNodes( ) throw (RuntimeException) + sal_Bool BasicProviderImpl::hasChildNodes( ) throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -508,7 +508,7 @@ namespace basprov - sal_Int16 BasicProviderImpl::getType( ) throw (RuntimeException) + sal_Int16 BasicProviderImpl::getType( ) throw (RuntimeException, std::exception) { SolarMutexGuard aGuard; diff --git a/scripting/source/basprov/basprov.hxx b/scripting/source/basprov/basprov.hxx index 18efd31ac6ac..7adb28bb7e80 100644 --- a/scripting/source/basprov/basprov.hxx +++ b/scripting/source/basprov/basprov.hxx @@ -74,30 +74,30 @@ namespace basprov // 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 ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) - throw (::com::sun::star::uno::RuntimeException); + 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); + throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception); // XScriptProvider virtual ::com::sun::star::uno::Reference < ::com::sun::star::script::provider::XScript > SAL_CALL getScript( const OUString& scriptURI ) - throw ( ::com::sun::star::script::provider::ScriptFrameworkErrorException, ::com::sun::star::uno::RuntimeException); + throw ( ::com::sun::star::script::provider::ScriptFrameworkErrorException, ::com::sun::star::uno::RuntimeException, std::exception); // XBrowseNode virtual OUString SAL_CALL getName( ) - 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::script::browse::XBrowseNode > > SAL_CALL getChildNodes( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual sal_Bool SAL_CALL hasChildNodes( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual sal_Int16 SAL_CALL getType( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); }; diff --git a/scripting/source/basprov/basscript.cxx b/scripting/source/basprov/basscript.cxx index 87cf73ccc4b7..f6bac03042e9 100644 --- a/scripting/source/basprov/basscript.cxx +++ b/scripting/source/basprov/basscript.cxx @@ -146,7 +146,7 @@ namespace basprov // XPropertySet - Reference< XPropertySetInfo > BasicScriptImpl::getPropertySetInfo( ) throw (RuntimeException) + Reference< XPropertySetInfo > BasicScriptImpl::getPropertySetInfo( ) throw (RuntimeException, std::exception) { Reference< XPropertySetInfo > xInfo( createPropertySetInfo( getInfoHelper() ) ); return xInfo; @@ -157,7 +157,7 @@ namespace basprov Any BasicScriptImpl::invoke( const Sequence< Any >& aParams, Sequence< sal_Int16 >& aOutParamIndex, Sequence< Any >& aOutParam ) - throw ( provider::ScriptFrameworkErrorException, reflection::InvocationTargetException, uno::RuntimeException) + throw ( provider::ScriptFrameworkErrorException, reflection::InvocationTargetException, uno::RuntimeException, std::exception) { // TODO: throw CannotConvertException // TODO: check length of aOutParamIndex, aOutParam diff --git a/scripting/source/basprov/basscript.hxx b/scripting/source/basprov/basscript.hxx index 7d02d386140c..bd8cf1e963d3 100644 --- a/scripting/source/basprov/basscript.hxx +++ b/scripting/source/basprov/basscript.hxx @@ -94,10 +94,10 @@ namespace basprov throw ( ::com::sun::star::script::provider::ScriptFrameworkErrorException, ::com::sun::star::reflection::InvocationTargetException, - ::com::sun::star::uno::RuntimeException ); + ::com::sun::star::uno::RuntimeException, std::exception ); // XPropertySet virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); // SfxListener virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ); diff --git a/scripting/source/dlgprov/DialogModelProvider.cxx b/scripting/source/dlgprov/DialogModelProvider.cxx index 2c1268bdf910..548fdc2440f3 100644 --- a/scripting/source/dlgprov/DialogModelProvider.cxx +++ b/scripting/source/dlgprov/DialogModelProvider.cxx @@ -60,7 +60,7 @@ DialogModelProvider::DialogModelProvider(Reference< XComponentContext > const & {} // lang::XInitialization: -void SAL_CALL DialogModelProvider::initialize(const css::uno::Sequence< uno::Any > & aArguments) throw (css::uno::RuntimeException, css::uno::Exception) +void SAL_CALL DialogModelProvider::initialize(const css::uno::Sequence< uno::Any > & aArguments) throw (css::uno::RuntimeException, css::uno::Exception, std::exception) { if ( aArguments.getLength() == 1 ) { @@ -92,84 +92,84 @@ void SAL_CALL DialogModelProvider::initialize(const css::uno::Sequence< uno::Any } // container::XElementAccess: -uno::Type SAL_CALL DialogModelProvider::getElementType() throw (css::uno::RuntimeException) +uno::Type SAL_CALL DialogModelProvider::getElementType() throw (css::uno::RuntimeException, std::exception) { return m_xDialogModel->getElementType(); } -::sal_Bool SAL_CALL DialogModelProvider::hasElements() throw (css::uno::RuntimeException) +::sal_Bool SAL_CALL DialogModelProvider::hasElements() throw (css::uno::RuntimeException, std::exception) { return m_xDialogModel->hasElements(); } // container::XNameAccess: -uno::Any SAL_CALL DialogModelProvider::getByName(const OUString & aName) throw (css::uno::RuntimeException, css::container::NoSuchElementException, css::lang::WrappedTargetException) +uno::Any SAL_CALL DialogModelProvider::getByName(const OUString & aName) throw (css::uno::RuntimeException, css::container::NoSuchElementException, css::lang::WrappedTargetException, std::exception) { return m_xDialogModel->getByName(aName); } -css::uno::Sequence< OUString > SAL_CALL DialogModelProvider::getElementNames() throw (css::uno::RuntimeException) +css::uno::Sequence< OUString > SAL_CALL DialogModelProvider::getElementNames() throw (css::uno::RuntimeException, std::exception) { return m_xDialogModel->getElementNames(); } -::sal_Bool SAL_CALL DialogModelProvider::hasByName(const OUString & aName) throw (css::uno::RuntimeException) +::sal_Bool SAL_CALL DialogModelProvider::hasByName(const OUString & aName) throw (css::uno::RuntimeException, std::exception) { return m_xDialogModel->hasByName(aName); } // container::XNameReplace: -void SAL_CALL DialogModelProvider::replaceByName(const OUString & aName, const uno::Any & aElement) throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, css::container::NoSuchElementException, css::lang::WrappedTargetException) +void SAL_CALL DialogModelProvider::replaceByName(const OUString & aName, const uno::Any & aElement) throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, css::container::NoSuchElementException, css::lang::WrappedTargetException, std::exception) { m_xDialogModel->replaceByName(aName,aElement); } // container::XNameContainer: -void SAL_CALL DialogModelProvider::insertByName(const OUString & aName, const uno::Any & aElement) throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, css::container::ElementExistException, css::lang::WrappedTargetException) +void SAL_CALL DialogModelProvider::insertByName(const OUString & aName, const uno::Any & aElement) throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, css::container::ElementExistException, css::lang::WrappedTargetException, std::exception) { m_xDialogModel->insertByName(aName,aElement); } -void SAL_CALL DialogModelProvider::removeByName(const OUString & aName) throw (css::uno::RuntimeException, css::container::NoSuchElementException, css::lang::WrappedTargetException) +void SAL_CALL DialogModelProvider::removeByName(const OUString & aName) throw (css::uno::RuntimeException, css::container::NoSuchElementException, css::lang::WrappedTargetException, std::exception) { m_xDialogModel->removeByName(aName); } -uno::Reference< beans::XPropertySetInfo > SAL_CALL DialogModelProvider::getPropertySetInfo( ) throw (uno::RuntimeException) +uno::Reference< beans::XPropertySetInfo > SAL_CALL DialogModelProvider::getPropertySetInfo( ) throw (uno::RuntimeException, std::exception) { return m_xDialogModelProp->getPropertySetInfo(); } -void SAL_CALL DialogModelProvider::setPropertyValue( const OUString&, const uno::Any& ) throw (beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException) +void SAL_CALL DialogModelProvider::setPropertyValue( const OUString&, const uno::Any& ) throw (beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException, std::exception) { } -uno::Any SAL_CALL DialogModelProvider::getPropertyValue( const OUString& PropertyName ) throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException) +uno::Any SAL_CALL DialogModelProvider::getPropertyValue( const OUString& PropertyName ) throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException, std::exception) { return m_xDialogModelProp->getPropertyValue(PropertyName); } -void SAL_CALL DialogModelProvider::addPropertyChangeListener( const OUString& , const uno::Reference< beans::XPropertyChangeListener >& ) throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException) +void SAL_CALL DialogModelProvider::addPropertyChangeListener( const OUString& , const uno::Reference< beans::XPropertyChangeListener >& ) throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException, std::exception) { } -void SAL_CALL DialogModelProvider::removePropertyChangeListener( const OUString& , const uno::Reference< beans::XPropertyChangeListener >& ) throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException) +void SAL_CALL DialogModelProvider::removePropertyChangeListener( const OUString& , const uno::Reference< beans::XPropertyChangeListener >& ) throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException, std::exception) { } -void SAL_CALL DialogModelProvider::addVetoableChangeListener( const OUString& , const uno::Reference< beans::XVetoableChangeListener >& ) throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException) +void SAL_CALL DialogModelProvider::addVetoableChangeListener( const OUString& , const uno::Reference< beans::XVetoableChangeListener >& ) throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException, std::exception) { } -void SAL_CALL DialogModelProvider::removeVetoableChangeListener( const OUString& ,const uno::Reference< beans::XVetoableChangeListener >& ) throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException) +void SAL_CALL DialogModelProvider::removeVetoableChangeListener( const OUString& ,const uno::Reference< beans::XVetoableChangeListener >& ) throw (beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException, std::exception) { } // com.sun.star.uno.XServiceInfo: -OUString SAL_CALL DialogModelProvider::getImplementationName() throw (css::uno::RuntimeException) +OUString SAL_CALL DialogModelProvider::getImplementationName() throw (css::uno::RuntimeException, std::exception) { return comp_DialogModelProvider::_getImplementationName(); } -::sal_Bool SAL_CALL DialogModelProvider::supportsService(OUString const & serviceName) throw (css::uno::RuntimeException) +::sal_Bool SAL_CALL DialogModelProvider::supportsService(OUString const & serviceName) throw (css::uno::RuntimeException, std::exception) { return cppu::supportsService(this, serviceName); } -css::uno::Sequence< OUString > SAL_CALL DialogModelProvider::getSupportedServiceNames() throw (css::uno::RuntimeException) +css::uno::Sequence< OUString > SAL_CALL DialogModelProvider::getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) { return comp_DialogModelProvider::_getSupportedServiceNames(); } diff --git a/scripting/source/dlgprov/DialogModelProvider.hxx b/scripting/source/dlgprov/DialogModelProvider.hxx index 4d9256a35f14..f47117dc8f2c 100644 --- a/scripting/source/dlgprov/DialogModelProvider.hxx +++ b/scripting/source/dlgprov/DialogModelProvider.hxx @@ -38,36 +38,36 @@ public: explicit DialogModelProvider(css::uno::Reference< css::uno::XComponentContext > const & context); private: // ::com::sun::star::lang::XInitialization: - virtual void SAL_CALL initialize(const css::uno::Sequence< ::com::sun::star::uno::Any > & aArguments) throw (css::uno::RuntimeException, css::uno::Exception); + virtual void SAL_CALL initialize(const css::uno::Sequence< ::com::sun::star::uno::Any > & aArguments) throw (css::uno::RuntimeException, css::uno::Exception, std::exception); // ::com::sun::star::container::XElementAccess: - virtual ::com::sun::star::uno::Type SAL_CALL getElementType() throw (css::uno::RuntimeException); - virtual ::sal_Bool SAL_CALL hasElements() throw (css::uno::RuntimeException); + virtual ::com::sun::star::uno::Type SAL_CALL getElementType() throw (css::uno::RuntimeException, std::exception); + virtual ::sal_Bool SAL_CALL hasElements() throw (css::uno::RuntimeException, std::exception); // ::com::sun::star::container::XNameAccess: - virtual ::com::sun::star::uno::Any SAL_CALL getByName(const OUString & aName) throw (css::uno::RuntimeException, css::container::NoSuchElementException, css::lang::WrappedTargetException); - virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() throw (css::uno::RuntimeException); - virtual ::sal_Bool SAL_CALL hasByName(const OUString & aName) throw (css::uno::RuntimeException); + virtual ::com::sun::star::uno::Any SAL_CALL getByName(const OUString & aName) throw (css::uno::RuntimeException, css::container::NoSuchElementException, css::lang::WrappedTargetException, std::exception); + virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() throw (css::uno::RuntimeException, std::exception); + virtual ::sal_Bool SAL_CALL hasByName(const OUString & aName) throw (css::uno::RuntimeException, std::exception); // ::com::sun::star::container::XNameReplace: - virtual void SAL_CALL replaceByName(const OUString & aName, const ::com::sun::star::uno::Any & aElement) throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, css::container::NoSuchElementException, css::lang::WrappedTargetException); + virtual void SAL_CALL replaceByName(const OUString & aName, const ::com::sun::star::uno::Any & aElement) throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, css::container::NoSuchElementException, css::lang::WrappedTargetException, std::exception); // ::com::sun::star::container::XNameContainer: - virtual void SAL_CALL insertByName(const OUString & aName, const ::com::sun::star::uno::Any & aElement) throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, css::container::ElementExistException, css::lang::WrappedTargetException); - virtual void SAL_CALL removeByName(const OUString & Name) throw (css::uno::RuntimeException, css::container::NoSuchElementException, css::lang::WrappedTargetException); + virtual void SAL_CALL insertByName(const OUString & aName, const ::com::sun::star::uno::Any & aElement) throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, css::container::ElementExistException, css::lang::WrappedTargetException, std::exception); + virtual void SAL_CALL removeByName(const OUString & Name) throw (css::uno::RuntimeException, css::container::NoSuchElementException, css::lang::WrappedTargetException, std::exception); // ::com::sun::star::lang::XServiceInfo: - virtual OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException); - virtual ::sal_Bool SAL_CALL supportsService(const OUString & ServiceName) throw (css::uno::RuntimeException); - virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException); + virtual OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException, std::exception); + virtual ::sal_Bool SAL_CALL supportsService(const OUString & ServiceName) throw (css::uno::RuntimeException, std::exception); + virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception); - virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const ::com::sun::star::uno::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); - virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw (::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const ::com::sun::star::uno::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, std::exception); + virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception); + virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception); private: DialogModelProvider(const DialogModelProvider &); // not defined diff --git a/scripting/source/dlgprov/dlgevtatt.cxx b/scripting/source/dlgprov/dlgevtatt.cxx index 09cc8d8e56d1..634a653db0d2 100644 --- a/scripting/source/dlgprov/dlgevtatt.cxx +++ b/scripting/source/dlgprov/dlgevtatt.cxx @@ -330,7 +330,7 @@ namespace dlgprov const com::sun::star::uno::Reference<com::sun::star::script::XScriptListener>&, const Any& Helper ) throw (IllegalArgumentException, IntrospectionException, CannotCreateAdapterException, - ServiceNotRegisteredException, RuntimeException) + ServiceNotRegisteredException, RuntimeException, std::exception) { // get EventAttacher { @@ -415,7 +415,7 @@ namespace dlgprov // XEventListener - void DialogAllListenerImpl::disposing(const EventObject& ) throw ( RuntimeException ) + void DialogAllListenerImpl::disposing(const EventObject& ) throw ( RuntimeException, std::exception ) { } @@ -423,7 +423,7 @@ namespace dlgprov // XAllListener - void DialogAllListenerImpl::firing( const AllEventObject& Event ) throw ( RuntimeException ) + void DialogAllListenerImpl::firing( const AllEventObject& Event ) throw ( RuntimeException, std::exception ) { //::osl::MutexGuard aGuard( getMutex() ); @@ -433,7 +433,7 @@ namespace dlgprov Any DialogAllListenerImpl::approveFiring( const AllEventObject& Event ) - throw ( reflection::InvocationTargetException, RuntimeException ) + throw ( reflection::InvocationTargetException, RuntimeException, std::exception ) { //::osl::MutexGuard aGuard( getMutex() ); @@ -655,7 +655,7 @@ namespace dlgprov // XEventListener - void DialogScriptListenerImpl::disposing(const EventObject& ) throw ( RuntimeException ) + void DialogScriptListenerImpl::disposing(const EventObject& ) throw ( RuntimeException, std::exception ) { } @@ -663,7 +663,7 @@ namespace dlgprov // XScriptListener - void DialogScriptListenerImpl::firing( const ScriptEvent& aScriptEvent ) throw ( RuntimeException ) + void DialogScriptListenerImpl::firing( const ScriptEvent& aScriptEvent ) throw ( RuntimeException, std::exception ) { //::osl::MutexGuard aGuard( getMutex() ); @@ -673,7 +673,7 @@ namespace dlgprov Any DialogScriptListenerImpl::approveFiring( const ScriptEvent& aScriptEvent ) - throw ( reflection::InvocationTargetException, RuntimeException ) + throw ( reflection::InvocationTargetException, RuntimeException, std::exception ) { //::osl::MutexGuard aGuard( getMutex() ); diff --git a/scripting/source/dlgprov/dlgevtatt.hxx b/scripting/source/dlgprov/dlgevtatt.hxx index 310f2fee8b3e..21a44f86567e 100644 --- a/scripting/source/dlgprov/dlgevtatt.hxx +++ b/scripting/source/dlgprov/dlgevtatt.hxx @@ -81,7 +81,7 @@ namespace dlgprov ::com::sun::star::beans::IntrospectionException, ::com::sun::star::script::CannotCreateAdapterException, ::com::sun::star::lang::ServiceNotRegisteredException, - ::com::sun::star::uno::RuntimeException); + ::com::sun::star::uno::RuntimeException, std::exception); }; @@ -109,13 +109,13 @@ namespace dlgprov // XEventListener virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); // XAllListener virtual void SAL_CALL firing( const ::com::sun::star::script::AllEventObject& Event ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::uno::Any SAL_CALL approveFiring( const ::com::sun::star::script::AllEventObject& Event ) - throw (::com::sun::star::reflection::InvocationTargetException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::reflection::InvocationTargetException, ::com::sun::star::uno::RuntimeException, std::exception); }; @@ -138,13 +138,13 @@ namespace dlgprov // XEventListener virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); // XScriptListener virtual void SAL_CALL firing( const ::com::sun::star::script::ScriptEvent& aScriptEvent ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::uno::Any SAL_CALL approveFiring( const ::com::sun::star::script::ScriptEvent& aScriptEvent ) - throw (::com::sun::star::reflection::InvocationTargetException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::reflection::InvocationTargetException, ::com::sun::star::uno::RuntimeException, std::exception); }; diff --git a/scripting/source/dlgprov/dlgprov.cxx b/scripting/source/dlgprov/dlgprov.cxx index 8d615c1e38d1..b3107cafdc17 100644 --- a/scripting/source/dlgprov/dlgprov.cxx +++ b/scripting/source/dlgprov/dlgprov.cxx @@ -588,17 +588,17 @@ static OUString aResourceResolverPropName("ResourceResolver"); // XServiceInfo - OUString DialogProviderImpl::getImplementationName( ) throw (RuntimeException) + OUString DialogProviderImpl::getImplementationName( ) throw (RuntimeException, std::exception) { return getImplementationName_DialogProviderImpl(); } - sal_Bool DialogProviderImpl::supportsService( const OUString& rServiceName ) throw (RuntimeException) + sal_Bool DialogProviderImpl::supportsService( const OUString& rServiceName ) throw (RuntimeException, std::exception) { return cppu::supportsService(this, rServiceName); } - Sequence< OUString > DialogProviderImpl::getSupportedServiceNames( ) throw (RuntimeException) + Sequence< OUString > DialogProviderImpl::getSupportedServiceNames( ) throw (RuntimeException, std::exception) { return getSupportedServiceNames_DialogProviderImpl(); } @@ -607,7 +607,7 @@ static OUString aResourceResolverPropName("ResourceResolver"); // XInitialization - void DialogProviderImpl::initialize( const Sequence< Any >& aArguments ) throw (Exception, RuntimeException) + void DialogProviderImpl::initialize( const Sequence< Any >& aArguments ) throw (Exception, RuntimeException, std::exception) { ::osl::MutexGuard aGuard( getMutex() ); @@ -721,7 +721,7 @@ static OUString aResourceResolverPropName("ResourceResolver"); } Reference < XDialog > DialogProviderImpl::createDialog( const OUString& URL ) - throw (IllegalArgumentException, RuntimeException) + throw (IllegalArgumentException, RuntimeException, std::exception) { Reference< XInterface > xDummyHandler; Reference< XWindowPeer > xDummyPeer; @@ -732,7 +732,7 @@ static OUString aResourceResolverPropName("ResourceResolver"); Reference < XDialog > DialogProviderImpl::createDialogWithHandler( const OUString& URL, const Reference< XInterface >& xHandler ) - throw (IllegalArgumentException, RuntimeException) + throw (IllegalArgumentException, RuntimeException, std::exception) { if( !xHandler.is() ) { @@ -748,7 +748,7 @@ static OUString aResourceResolverPropName("ResourceResolver"); Reference < XDialog > DialogProviderImpl::createDialogWithArguments( const OUString& URL, const Sequence< NamedValue >& Arguments ) - throw (IllegalArgumentException, RuntimeException) + throw (IllegalArgumentException, RuntimeException, std::exception) { ::comphelper::NamedValueCollection aArguments( Arguments ); @@ -774,7 +774,7 @@ static OUString aResourceResolverPropName("ResourceResolver"); Reference< XWindow > DialogProviderImpl::createContainerWindow( const OUString& URL, const OUString& WindowType, const Reference< XWindowPeer >& xParent, const Reference< XInterface >& xHandler ) - throw (lang::IllegalArgumentException, RuntimeException) + throw (lang::IllegalArgumentException, RuntimeException, std::exception) { (void)WindowType; // for future use if( !xParent.is() ) diff --git a/scripting/source/dlgprov/dlgprov.hxx b/scripting/source/dlgprov/dlgprov.hxx index 9a8abc831268..8d812c205d8d 100644 --- a/scripting/source/dlgprov/dlgprov.hxx +++ b/scripting/source/dlgprov/dlgprov.hxx @@ -117,37 +117,37 @@ namespace dlgprov // 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 ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) - throw (::com::sun::star::uno::RuntimeException); + 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); + throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception); // XDialogProvider virtual ::com::sun::star::uno::Reference < ::com::sun::star::awt::XDialog > SAL_CALL createDialog( const OUString& URL ) - throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception); // XDialogProvider2 virtual ::com::sun::star::uno::Reference < ::com::sun::star::awt::XDialog > SAL_CALL createDialogWithHandler( const OUString& URL, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xHandler ) - throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::uno::Reference < ::com::sun::star::awt::XDialog > SAL_CALL createDialogWithArguments( const OUString& URL, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& Arguments ) - throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > SAL_CALL createContainerWindow( const OUString& URL, const OUString& WindowType, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& xParent, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xHandler ) - throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception); }; diff --git a/scripting/source/protocolhandler/scripthandler.cxx b/scripting/source/protocolhandler/scripthandler.cxx index 5ff2b182037a..cb32a6deff0c 100644 --- a/scripting/source/protocolhandler/scripthandler.cxx +++ b/scripting/source/protocolhandler/scripthandler.cxx @@ -72,7 +72,7 @@ const sal_Char * const MYIMPLNAME = "com.sun.star.comp.ScriptProtocolHandler"; void SAL_CALL ScriptProtocolHandler::initialize( const css::uno::Sequence < css::uno::Any >& aArguments ) - throw ( css::uno::Exception ) + throw ( css::uno::Exception, std::exception ) { if ( m_bInitialised ) { @@ -93,7 +93,7 @@ void SAL_CALL ScriptProtocolHandler::initialize( Reference< XDispatch > SAL_CALL ScriptProtocolHandler::queryDispatch( const URL& aURL, const OUString& sTargetFrameName, sal_Int32 nSearchFlags ) - throw( ::com::sun::star::uno::RuntimeException ) + throw( ::com::sun::star::uno::RuntimeException, std::exception ) { (void)sTargetFrameName; (void)nSearchFlags; @@ -118,7 +118,7 @@ Reference< XDispatch > SAL_CALL ScriptProtocolHandler::queryDispatch( Sequence< Reference< XDispatch > > SAL_CALL ScriptProtocolHandler::queryDispatches( const Sequence < DispatchDescriptor >& seqDescriptor ) -throw( RuntimeException ) +throw( RuntimeException, std::exception ) { sal_Int32 nCount = seqDescriptor.getLength(); Sequence< Reference< XDispatch > > lDispatcher( nCount ); @@ -134,7 +134,7 @@ throw( RuntimeException ) void SAL_CALL ScriptProtocolHandler::dispatchWithNotification( const URL& aURL, const Sequence < PropertyValue >& lArgs, const Reference< XDispatchResultListener >& xListener ) - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { sal_Bool bSuccess = sal_False; @@ -297,14 +297,14 @@ void SAL_CALL ScriptProtocolHandler::dispatchWithNotification( void SAL_CALL ScriptProtocolHandler::dispatch( const URL& aURL, const Sequence< PropertyValue >& lArgs ) -throw ( RuntimeException ) +throw ( RuntimeException, std::exception ) { dispatchWithNotification( aURL, lArgs, Reference< XDispatchResultListener >() ); } void SAL_CALL ScriptProtocolHandler::addStatusListener( const Reference< XStatusListener >& xControl, const URL& aURL ) -throw ( RuntimeException ) +throw ( RuntimeException, std::exception ) { (void)xControl; (void)aURL; @@ -314,7 +314,7 @@ throw ( RuntimeException ) void SAL_CALL ScriptProtocolHandler::removeStatusListener( const Reference< XStatusListener >& xControl, const URL& aURL ) -throw ( RuntimeException ) +throw ( RuntimeException, std::exception ) { (void)xControl; (void)aURL; @@ -410,21 +410,21 @@ ScriptProtocolHandler::~ScriptProtocolHandler() /* XServiceInfo */ OUString SAL_CALL ScriptProtocolHandler::getImplementationName( ) -throw( RuntimeException ) +throw( RuntimeException, std::exception ) { return impl_getStaticImplementationName(); } /* XServiceInfo */ sal_Bool SAL_CALL ScriptProtocolHandler::supportsService(const OUString& sServiceName ) -throw( RuntimeException ) +throw( RuntimeException, std::exception ) { return cppu::supportsService(this, sServiceName); } /* XServiceInfo */ Sequence< OUString > SAL_CALL ScriptProtocolHandler::getSupportedServiceNames() -throw( RuntimeException ) +throw( RuntimeException, std::exception ) { return impl_getStaticSupportedServiceNames(); } diff --git a/scripting/source/protocolhandler/scripthandler.hxx b/scripting/source/protocolhandler/scripthandler.hxx index fbdfc773a62e..481aba3a4354 100644 --- a/scripting/source/protocolhandler/scripthandler.hxx +++ b/scripting/source/protocolhandler/scripthandler.hxx @@ -80,11 +80,11 @@ public: /* XServiceInfo */ virtual OUString SAL_CALL getImplementationName() - throw( css::uno::RuntimeException ); + throw( css::uno::RuntimeException, std::exception ); virtual sal_Bool SAL_CALL supportsService( const OUString& sServiceName ) - throw( css::uno::RuntimeException ); + throw( css::uno::RuntimeException, std::exception ); virtual css::uno::Sequence < OUString > SAL_CALL getSupportedServiceNames() - throw( css::uno::RuntimeException ); + throw( css::uno::RuntimeException, std::exception ); /* Helper for XServiceInfo */ static css::uno::Sequence < OUString > impl_getStaticSupportedServiceNames(); @@ -101,35 +101,35 @@ public: /* Implementation for XDispatchProvider */ virtual css::uno::Reference < css::frame::XDispatch > SAL_CALL queryDispatch( const css::util::URL& aURL, const OUString& sTargetFrameName, - sal_Int32 eSearchFlags ) throw( css::uno::RuntimeException ) ; + sal_Int32 eSearchFlags ) throw( css::uno::RuntimeException, std::exception ) ; virtual css::uno::Sequence< css::uno::Reference < css::frame::XDispatch > > SAL_CALL queryDispatches( const css::uno::Sequence < css::frame::DispatchDescriptor >& seqDescriptor ) - throw( css::uno::RuntimeException ); + throw( css::uno::RuntimeException, std::exception ); /* Implementation for X(Notifying)Dispatch */ virtual void SAL_CALL dispatchWithNotification( const css::util::URL& aURL, const css::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArgs, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchResultListener >& Listener ) - throw ( css::uno::RuntimeException ); + throw ( css::uno::RuntimeException, std::exception ); virtual void SAL_CALL dispatch( const css::util::URL& aURL, const css::uno::Sequence< css::beans::PropertyValue >& lArgs ) - throw ( css::uno::RuntimeException ); + throw ( css::uno::RuntimeException, std::exception ); virtual void SAL_CALL addStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xControl, const css::util::URL& aURL ) - throw ( css::uno::RuntimeException ); + throw ( css::uno::RuntimeException, std::exception ); virtual void SAL_CALL removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xControl, const css::util::URL& aURL ) - throw ( css::uno::RuntimeException ); + throw ( css::uno::RuntimeException, std::exception ); /* Implementation for XInitialization */ virtual void SAL_CALL initialize( const css::uno::Sequence < css::uno::Any >& aArguments ) - throw ( css::uno::Exception ); + throw ( css::uno::Exception, std::exception ); }; } diff --git a/scripting/source/provider/ActiveMSPList.cxx b/scripting/source/provider/ActiveMSPList.cxx index ba2810c54240..366349a8546e 100644 --- a/scripting/source/provider/ActiveMSPList.cxx +++ b/scripting/source/provider/ActiveMSPList.cxx @@ -245,7 +245,7 @@ ActiveMSPList::addActiveMSP( const Reference< uno::XInterface >& xComponent, void SAL_CALL ActiveMSPList::disposing( const ::com::sun::star::lang::EventObject& Source ) -throw ( ::com::sun::star::uno::RuntimeException ) +throw ( ::com::sun::star::uno::RuntimeException, std::exception ) { try diff --git a/scripting/source/provider/ActiveMSPList.hxx b/scripting/source/provider/ActiveMSPList.hxx index aacf54650b72..576e1c01a471 100644 --- a/scripting/source/provider/ActiveMSPList.hxx +++ b/scripting/source/provider/ActiveMSPList.hxx @@ -78,7 +78,7 @@ public: virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) - throw ( css::uno::RuntimeException ); + throw ( css::uno::RuntimeException, std::exception ); private: void addActiveMSP( const css::uno::Reference< css::uno::XInterface >& xComponent, diff --git a/scripting/source/provider/BrowseNodeFactoryImpl.cxx b/scripting/source/provider/BrowseNodeFactoryImpl.cxx index 5c6f623a4cde..b9bd1fcd65c4 100644 --- a/scripting/source/provider/BrowseNodeFactoryImpl.cxx +++ b/scripting/source/provider/BrowseNodeFactoryImpl.cxx @@ -79,14 +79,14 @@ public: virtual OUString SAL_CALL getName() - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { return m_Name; } virtual Sequence< Reference< browse::XBrowseNode > > SAL_CALL getChildNodes() - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { std::vector< Sequence< Reference < browse::XBrowseNode > > > seqs; seqs.reserve( m_Nodes.getLength() ); @@ -126,7 +126,7 @@ public: virtual sal_Bool SAL_CALL hasChildNodes() - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { if ( m_Nodes.getLength() != 0 ) { @@ -151,7 +151,7 @@ public: } virtual sal_Int16 SAL_CALL getType() - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { return browse::BrowseNodeTypes::CONTAINER; } @@ -203,14 +203,14 @@ public: virtual OUString SAL_CALL getName() - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { return m_sNodeName; } virtual Sequence< Reference< browse::XBrowseNode > > SAL_CALL getChildNodes() - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { if ( m_hBNA == NULL ) { @@ -231,13 +231,13 @@ public: } virtual sal_Bool SAL_CALL hasChildNodes() - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { return sal_True; } virtual sal_Int16 SAL_CALL getType() - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { return browse::BrowseNodeTypes::CONTAINER; } @@ -430,7 +430,7 @@ public: virtual Sequence< Reference< browse::XBrowseNode > > SAL_CALL getChildNodes() - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { if ( hasChildNodes() ) { @@ -464,28 +464,28 @@ public: } virtual sal_Int16 SAL_CALL getType() - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { return m_xWrappedBrowseNode->getType(); } virtual OUString SAL_CALL getName() - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { return m_xWrappedBrowseNode->getName(); } virtual sal_Bool SAL_CALL hasChildNodes() - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { return m_xWrappedBrowseNode->hasChildNodes(); } // XInterface virtual Any SAL_CALL queryInterface( const Type& aType ) - throw ( com::sun::star::uno::RuntimeException ) + throw ( com::sun::star::uno::RuntimeException, std::exception ) { Any aRet = t_BrowseNodeBase::queryInterface( aType ); if ( aRet.hasValue() ) @@ -519,12 +519,12 @@ public: // XTypeProvider (implemnented by base, but needs to be overridden for // delegating to aggregate) virtual Sequence< Type > SAL_CALL getTypes() - throw ( com::sun::star::uno::RuntimeException ) + throw ( com::sun::star::uno::RuntimeException, std::exception ) { return m_xWrappedTypeProv->getTypes(); } virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() - throw ( com::sun::star::uno::RuntimeException ) + throw ( com::sun::star::uno::RuntimeException, std::exception ) { return m_xWrappedTypeProv->getImplementationId(); @@ -559,7 +559,7 @@ public: virtual Sequence< Reference< browse::XBrowseNode > > SAL_CALL getChildNodes() - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { // no need to sort user, share, doc1...docN //::std::sort( m_vNodes.begin(), m_vNodes.end(), alphaSortForBNodes() ); @@ -573,21 +573,21 @@ public: } virtual sal_Int16 SAL_CALL getType() - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { return browse::BrowseNodeTypes::ROOT; } virtual OUString SAL_CALL getName() - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { return m_Name; } virtual sal_Bool SAL_CALL hasChildNodes() - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { sal_Bool result = sal_True; if ( !m_vNodes.size() ) @@ -616,14 +616,14 @@ public: } virtual OUString SAL_CALL getName() - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { return OUString("Root"); } virtual Sequence< Reference< browse::XBrowseNode > > SAL_CALL getChildNodes() - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { Sequence < Reference < browse::XBrowseNode > > locnBNs = getAllBrowseNodes( m_xComponentContext ); @@ -640,13 +640,13 @@ public: } virtual sal_Bool SAL_CALL hasChildNodes() - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { return sal_True; // will always be user and share } virtual sal_Int16 SAL_CALL getType() - throw ( RuntimeException ) + throw ( RuntimeException, std::exception ) { return browse::BrowseNodeTypes::CONTAINER; } @@ -673,7 +673,7 @@ BrowseNodeFactoryImpl::~BrowseNodeFactoryImpl() */ Reference< browse::XBrowseNode > SAL_CALL BrowseNodeFactoryImpl::createView( sal_Int16 viewType ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { switch( viewType ) { @@ -744,20 +744,20 @@ bnf_create( Reference< XComponentContext > const & xComponentContext ) OUString SAL_CALL BrowseNodeFactoryImpl::getImplementationName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return bnf_getImplementationName(); } Sequence< OUString > SAL_CALL BrowseNodeFactoryImpl::getSupportedServiceNames() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return bnf_getSupportedServiceNames(); } sal_Bool BrowseNodeFactoryImpl::supportsService(OUString const & serviceName ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return cppu::supportsService(this, serviceName); } diff --git a/scripting/source/provider/BrowseNodeFactoryImpl.hxx b/scripting/source/provider/BrowseNodeFactoryImpl.hxx index cf224d46477c..719feda84231 100644 --- a/scripting/source/provider/BrowseNodeFactoryImpl.hxx +++ b/scripting/source/provider/BrowseNodeFactoryImpl.hxx @@ -50,20 +50,20 @@ public: // XServiceInfo 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 ); + throw ( css::uno::RuntimeException, std::exception ); // XBrowseNodeFactory virtual css::uno::Reference< css::script::browse::XBrowseNode > SAL_CALL createView( sal_Int16 viewType ) - throw ( css::uno::RuntimeException ); + throw ( css::uno::RuntimeException, std::exception ); private: css::uno::Reference< css::script::browse::XBrowseNode > getSelectorHierarchy() diff --git a/scripting/source/provider/MasterScriptProvider.cxx b/scripting/source/provider/MasterScriptProvider.cxx index ea64cb786aef..4b66cf896045 100644 --- a/scripting/source/provider/MasterScriptProvider.cxx +++ b/scripting/source/provider/MasterScriptProvider.cxx @@ -103,7 +103,7 @@ MasterScriptProvider::~MasterScriptProvider() void SAL_CALL MasterScriptProvider::initialize( const Sequence < Any >& args ) -throw ( Exception, RuntimeException ) +throw ( Exception, RuntimeException, std::exception ) { if ( m_bInitialised ) return; @@ -244,7 +244,7 @@ void MasterScriptProvider::createPkgProvider() Reference< provider::XScript > MasterScriptProvider::getScript( const OUString& scriptURI ) throw ( provider::ScriptFrameworkErrorException, - RuntimeException ) + RuntimeException, std::exception ) { if ( !isValid() ) { @@ -406,7 +406,7 @@ MasterScriptProvider::providerCache() OUString SAL_CALL MasterScriptProvider::getName() - throw ( css::uno::RuntimeException ) + throw ( css::uno::RuntimeException, std::exception ) { if ( !isPkgProvider() ) { @@ -436,7 +436,7 @@ MasterScriptProvider::getName() Sequence< Reference< browse::XBrowseNode > > SAL_CALL MasterScriptProvider::getChildNodes() - throw ( css::uno::RuntimeException ) + throw ( css::uno::RuntimeException, std::exception ) { Sequence< Reference< provider::XScriptProvider > > providers = getAllProviders(); @@ -466,7 +466,7 @@ MasterScriptProvider::getChildNodes() sal_Bool SAL_CALL MasterScriptProvider::hasChildNodes() - throw ( css::uno::RuntimeException ) + throw ( css::uno::RuntimeException, std::exception ) { return sal_True; } @@ -474,7 +474,7 @@ MasterScriptProvider::hasChildNodes() sal_Int16 SAL_CALL MasterScriptProvider::getType() - throw ( css::uno::RuntimeException ) + throw ( css::uno::RuntimeException, std::exception ) { return browse::BrowseNodeTypes::CONTAINER; } @@ -496,7 +496,7 @@ MasterScriptProvider::parseLocationName( const OUString& location ) // Register Package void SAL_CALL -MasterScriptProvider::insertByName( const OUString& aName, const Any& aElement ) throw ( lang::IllegalArgumentException, container::ElementExistException, lang::WrappedTargetException, css::uno::RuntimeException) +MasterScriptProvider::insertByName( const OUString& aName, const Any& aElement ) throw ( lang::IllegalArgumentException, container::ElementExistException, lang::WrappedTargetException, css::uno::RuntimeException, std::exception) { if ( !m_bIsPkgMSP ) { @@ -576,7 +576,7 @@ MasterScriptProvider::insertByName( const OUString& aName, const Any& aElement ) // Revoke Package void SAL_CALL -MasterScriptProvider::removeByName( const OUString& Name ) throw ( container::NoSuchElementException, lang::WrappedTargetException, RuntimeException) +MasterScriptProvider::removeByName( const OUString& Name ) throw ( container::NoSuchElementException, lang::WrappedTargetException, RuntimeException, std::exception) { if ( !m_bIsPkgMSP ) { @@ -650,7 +650,7 @@ MasterScriptProvider::removeByName( const OUString& Name ) throw ( container::No void SAL_CALL -MasterScriptProvider::replaceByName( const OUString& aName, const Any& aElement ) throw ( lang::IllegalArgumentException, container::NoSuchElementException, lang::WrappedTargetException, RuntimeException) +MasterScriptProvider::replaceByName( const OUString& aName, const Any& aElement ) throw ( lang::IllegalArgumentException, container::NoSuchElementException, lang::WrappedTargetException, RuntimeException, std::exception) { (void)aName; (void)aElement; @@ -664,7 +664,7 @@ MasterScriptProvider::replaceByName( const OUString& aName, const Any& aElement } Any SAL_CALL -MasterScriptProvider::getByName( const OUString& aName ) throw ( container::NoSuchElementException, lang::WrappedTargetException, RuntimeException) +MasterScriptProvider::getByName( const OUString& aName ) throw ( container::NoSuchElementException, lang::WrappedTargetException, RuntimeException, std::exception) { (void)aName; @@ -679,7 +679,7 @@ MasterScriptProvider::getByName( const OUString& aName ) throw ( container::NoSu } sal_Bool SAL_CALL -MasterScriptProvider::hasByName( const OUString& aName ) throw (RuntimeException) +MasterScriptProvider::hasByName( const OUString& aName ) throw (RuntimeException, std::exception) { sal_Bool result = sal_False; if ( !m_bIsPkgMSP ) @@ -752,7 +752,7 @@ MasterScriptProvider::hasByName( const OUString& aName ) throw (RuntimeException Sequence< OUString > SAL_CALL -MasterScriptProvider::getElementNames( ) throw ( RuntimeException) +MasterScriptProvider::getElementNames( ) throw ( RuntimeException, std::exception) { // TODO needs implementing Sequence< OUString > names; @@ -765,14 +765,14 @@ MasterScriptProvider::getElementNames( ) throw ( RuntimeException) } Type SAL_CALL -MasterScriptProvider::getElementType( ) throw ( RuntimeException) +MasterScriptProvider::getElementType( ) throw ( RuntimeException, std::exception) { // TODO needs implementing Type t; return t; } -sal_Bool SAL_CALL MasterScriptProvider::hasElements( ) throw ( RuntimeException) +sal_Bool SAL_CALL MasterScriptProvider::hasElements( ) throw ( RuntimeException, std::exception) { // TODO needs implementing if ( true ) @@ -803,20 +803,20 @@ MasterScriptProvider::getAllProviders() throw ( css::uno::RuntimeException ) OUString SAL_CALL MasterScriptProvider::getImplementationName( ) -throw( RuntimeException ) +throw( RuntimeException, std::exception ) { return OUString( "com.sun.star.script.provider.MasterScriptProvider" ); } sal_Bool SAL_CALL MasterScriptProvider::supportsService( const OUString& serviceName ) -throw( RuntimeException ) +throw( RuntimeException, std::exception ) { return cppu::supportsService(this, serviceName); } Sequence< OUString > SAL_CALL MasterScriptProvider::getSupportedServiceNames( ) -throw( RuntimeException ) +throw( RuntimeException, std::exception ) { OUString names[3]; diff --git a/scripting/source/provider/MasterScriptProvider.hxx b/scripting/source/provider/MasterScriptProvider.hxx index 7c5ab87d4040..d5d76ccf74e8 100644 --- a/scripting/source/provider/MasterScriptProvider.hxx +++ b/scripting/source/provider/MasterScriptProvider.hxx @@ -56,41 +56,41 @@ public: // XServiceInfo implementation virtual OUString SAL_CALL getImplementationName( ) - throw( css::uno::RuntimeException ); + throw( css::uno::RuntimeException, std::exception ); // XBrowseNode implementation virtual OUString SAL_CALL getName() - throw ( css::uno::RuntimeException ); + throw ( css::uno::RuntimeException, std::exception ); virtual css::uno::Sequence< css::uno::Reference< css::script::browse::XBrowseNode > > SAL_CALL getChildNodes() - throw ( css::uno::RuntimeException ); + throw ( css::uno::RuntimeException, std::exception ); virtual sal_Bool SAL_CALL hasChildNodes() - throw ( css::uno::RuntimeException ); + throw ( css::uno::RuntimeException, std::exception ); virtual sal_Int16 SAL_CALL getType() - throw ( css::uno::RuntimeException ); + throw ( css::uno::RuntimeException, std::exception ); // XNameContainer - virtual void SAL_CALL insertByName( const OUString& aName, const css::uno::Any& aElement ) throw ( css::lang::IllegalArgumentException, css::container::ElementExistException, css::lang::WrappedTargetException, css::uno::RuntimeException); - virtual void SAL_CALL removeByName( const OUString& Name ) throw ( css::container::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException); + virtual void SAL_CALL insertByName( const OUString& aName, const css::uno::Any& aElement ) throw ( css::lang::IllegalArgumentException, css::container::ElementExistException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception); + virtual void SAL_CALL removeByName( const OUString& Name ) throw ( css::container::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception); // XNameReplace - virtual void SAL_CALL replaceByName( const OUString& aName, const css::uno::Any& aElement ) throw ( css::lang::IllegalArgumentException, css::container::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException); + virtual void SAL_CALL replaceByName( const OUString& aName, const css::uno::Any& aElement ) throw ( css::lang::IllegalArgumentException, css::container::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception); // XNameAccess - virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) throw ( css::container::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException); - virtual css::uno::Sequence< OUString > SAL_CALL getElementNames( ) throw ( css::uno::RuntimeException); - virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) throw (::com::sun::star::uno::RuntimeException); + virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) throw ( css::container::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception); + virtual css::uno::Sequence< OUString > SAL_CALL getElementNames( ) throw ( css::uno::RuntimeException, std::exception); + virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) throw (::com::sun::star::uno::RuntimeException, std::exception); // XElementAccess - virtual css::uno::Type SAL_CALL getElementType( ) throw ( css::uno::RuntimeException); - virtual sal_Bool SAL_CALL hasElements( ) throw ( css::uno::RuntimeException); + virtual css::uno::Type SAL_CALL getElementType( ) throw ( css::uno::RuntimeException, std::exception); + virtual sal_Bool SAL_CALL hasElements( ) throw ( css::uno::RuntimeException, std::exception); virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) - throw( css::uno::RuntimeException ); + throw( css::uno::RuntimeException, std::exception ); virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) - throw( css::uno::RuntimeException ); + throw( css::uno::RuntimeException, std::exception ); // XScriptProvider implementation virtual css::uno::Reference < css::script::provider::XScript > SAL_CALL getScript( const OUString& scriptURI ) throw( css::script::provider::ScriptFrameworkErrorException, - css::uno::RuntimeException ); + css::uno::RuntimeException, std::exception ); /** * XInitialise implementation @@ -99,7 +99,7 @@ public: * containing the URI */ virtual void SAL_CALL initialize( const css::uno::Sequence < css::uno::Any > & args ) - throw ( css::uno::Exception, css::uno::RuntimeException); + throw ( css::uno::Exception, css::uno::RuntimeException, std::exception); // Public method to return all Language Providers in this MasterScriptProviders // context. diff --git a/scripting/source/provider/MasterScriptProviderFactory.cxx b/scripting/source/provider/MasterScriptProviderFactory.cxx index 0f9bf5d8e777..3051bc847fa7 100644 --- a/scripting/source/provider/MasterScriptProviderFactory.cxx +++ b/scripting/source/provider/MasterScriptProviderFactory.cxx @@ -44,7 +44,7 @@ MasterScriptProviderFactory::~MasterScriptProviderFactory() } Reference< provider::XScriptProvider > SAL_CALL -MasterScriptProviderFactory::createScriptProvider( const Any& context ) throw ( lang::IllegalArgumentException, RuntimeException) +MasterScriptProviderFactory::createScriptProvider( const Any& context ) throw ( lang::IllegalArgumentException, RuntimeException, std::exception) { Reference< provider::XScriptProvider > xMsp( getActiveMSPList() ->getMSPFromAnyContext( context ), UNO_QUERY_THROW ); return xMsp; @@ -87,20 +87,20 @@ mspf_create( Reference< XComponentContext > const & xComponentContext ) } OUString SAL_CALL MasterScriptProviderFactory::getImplementationName() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return mspf_getImplementationName(); } Sequence< OUString > SAL_CALL MasterScriptProviderFactory::getSupportedServiceNames() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return mspf_getSupportedServiceNames(); } sal_Bool MasterScriptProviderFactory::supportsService( OUString const & serviceName ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return cppu::supportsService(this, serviceName); } diff --git a/scripting/source/provider/MasterScriptProviderFactory.hxx b/scripting/source/provider/MasterScriptProviderFactory.hxx index b7a04940dd94..ed8b3905367e 100644 --- a/scripting/source/provider/MasterScriptProviderFactory.hxx +++ b/scripting/source/provider/MasterScriptProviderFactory.hxx @@ -55,20 +55,20 @@ public: // XServiceInfo 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 ); + throw ( css::uno::RuntimeException, std::exception ); // XScriptProviderFactory virtual css::uno::Reference< css::script::provider::XScriptProvider > SAL_CALL createScriptProvider( const css::uno::Any& context ) - throw ( css::lang::IllegalArgumentException, css::uno::RuntimeException); + throw ( css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception); }; diff --git a/scripting/source/provider/ScriptingContext.hxx b/scripting/source/provider/ScriptingContext.hxx index ef2db2a72bb1..731e16bd6bff 100644 --- a/scripting/source/provider/ScriptingContext.hxx +++ b/scripting/source/provider/ScriptingContext.hxx @@ -50,7 +50,7 @@ public: // XInterface css::uno::Any SAL_CALL queryInterface( const css::uno::Type& rType ) - throw( css::uno::RuntimeException ) + throw( css::uno::RuntimeException, std::exception ) { css::uno::Any aRet( OPropertySetHelper::queryInterface( rType ) ); return (aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType )); diff --git a/scripting/source/provider/URIHelper.cxx b/scripting/source/provider/URIHelper.cxx index c42931208960..9343aa329f27 100644 --- a/scripting/source/provider/URIHelper.cxx +++ b/scripting/source/provider/URIHelper.cxx @@ -82,7 +82,7 @@ ScriptingFrameworkURIHelper::~ScriptingFrameworkURIHelper() void SAL_CALL ScriptingFrameworkURIHelper::initialize( const uno::Sequence < uno::Any >& args ) -throw ( uno::Exception, uno::RuntimeException ) +throw ( uno::Exception, uno::RuntimeException, std::exception ) { if ( args.getLength() != 2 || args[0].getValueType() != ::getCppuType((const OUString*)NULL) || @@ -211,7 +211,7 @@ ScriptingFrameworkURIHelper::getLanguagePath(const OUString& rLanguagePart) OUString SAL_CALL ScriptingFrameworkURIHelper::getScriptURI(const OUString& rStorageURI) - throw( lang::IllegalArgumentException, uno::RuntimeException ) + throw( lang::IllegalArgumentException, uno::RuntimeException, std::exception ) { OUStringBuffer buf(120); @@ -227,7 +227,7 @@ ScriptingFrameworkURIHelper::getScriptURI(const OUString& rStorageURI) OUString SAL_CALL ScriptingFrameworkURIHelper::getStorageURI(const OUString& rScriptURI) - throw( lang::IllegalArgumentException, uno::RuntimeException ) + throw( lang::IllegalArgumentException, uno::RuntimeException, std::exception ) { OUString sLanguagePart; try @@ -255,14 +255,14 @@ ScriptingFrameworkURIHelper::getStorageURI(const OUString& rScriptURI) OUString SAL_CALL ScriptingFrameworkURIHelper::getRootStorageURI() - throw( uno::RuntimeException ) + throw( uno::RuntimeException, std::exception ) { return m_sBaseURI; } OUString SAL_CALL ScriptingFrameworkURIHelper::getImplementationName() - throw( uno::RuntimeException ) + throw( uno::RuntimeException, std::exception ) { return OUString( "com.sun.star.script.provider.ScriptURIHelper" ); @@ -270,7 +270,7 @@ ScriptingFrameworkURIHelper::getImplementationName() sal_Bool SAL_CALL ScriptingFrameworkURIHelper::supportsService( const OUString& serviceName ) - throw( uno::RuntimeException ) + throw( uno::RuntimeException, std::exception ) { OUString m_sServiceName( "com.sun.star.script.provider.ScriptURIHelper" ); @@ -284,7 +284,7 @@ ScriptingFrameworkURIHelper::supportsService( const OUString& serviceName ) uno::Sequence< OUString > SAL_CALL ScriptingFrameworkURIHelper::getSupportedServiceNames() - throw( uno::RuntimeException ) + throw( uno::RuntimeException, std::exception ) { OUString serviceNameList[] = { OUString( diff --git a/scripting/source/provider/URIHelper.hxx b/scripting/source/provider/URIHelper.hxx index 17096d8ae9ae..af24b050044c 100644 --- a/scripting/source/provider/URIHelper.hxx +++ b/scripting/source/provider/URIHelper.hxx @@ -65,33 +65,33 @@ public: virtual void SAL_CALL initialize( const css::uno::Sequence < css::uno::Any > & args ) - throw ( css::uno::Exception, css::uno::RuntimeException); + throw ( css::uno::Exception, css::uno::RuntimeException, std::exception); virtual OUString SAL_CALL getRootStorageURI() - throw ( ::com::sun::star::uno::RuntimeException ); + throw ( ::com::sun::star::uno::RuntimeException, std::exception ); virtual OUString SAL_CALL getScriptURI( const OUString& rStorageURI ) throw( css::lang::IllegalArgumentException, - css::uno::RuntimeException ); + css::uno::RuntimeException, std::exception ); virtual OUString SAL_CALL getStorageURI( const OUString& rScriptURI ) throw( css::lang::IllegalArgumentException, - css::uno::RuntimeException ); + css::uno::RuntimeException, std::exception ); virtual OUString SAL_CALL getImplementationName() - throw( css::uno::RuntimeException ); + throw( css::uno::RuntimeException, std::exception ); virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) - throw( css::uno::RuntimeException ); + throw( css::uno::RuntimeException, std::exception ); virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() - throw( css::uno::RuntimeException ); + throw( css::uno::RuntimeException, std::exception ); }; } // namespace func_provider diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx index 7d306dd83a11..dc114f2f683d 100644 --- a/scripting/source/stringresource/stringresource.cxx +++ b/scripting/source/stringresource/stringresource.cxx @@ -133,17 +133,17 @@ StringResourceImpl::~StringResourceImpl() // XServiceInfo -OUString StringResourceImpl::getImplementationName( ) throw (RuntimeException) +OUString StringResourceImpl::getImplementationName( ) throw (RuntimeException, std::exception) { return getImplementationName_StringResourceImpl(); } -sal_Bool StringResourceImpl::supportsService( const OUString& rServiceName ) throw (RuntimeException) +sal_Bool StringResourceImpl::supportsService( const OUString& rServiceName ) throw (RuntimeException, std::exception) { return cppu::supportsService(this, rServiceName); } -Sequence< OUString > StringResourceImpl::getSupportedServiceNames( ) throw (RuntimeException) +Sequence< OUString > StringResourceImpl::getSupportedServiceNames( ) throw (RuntimeException, std::exception) { return getSupportedServiceNames_StringResourceImpl(); } @@ -153,7 +153,7 @@ Sequence< OUString > StringResourceImpl::getSupportedServiceNames( ) throw (Run // XModifyBroadcaster void StringResourceImpl::addModifyListener( const Reference< XModifyListener >& aListener ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { if( !aListener.is() ) throw RuntimeException(); @@ -163,7 +163,7 @@ void StringResourceImpl::addModifyListener( const Reference< XModifyListener >& } void StringResourceImpl::removeModifyListener( const Reference< XModifyListener >& aListener ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { if( !aListener.is() ) throw RuntimeException(); @@ -201,14 +201,14 @@ OUString StringResourceImpl::implResolveString } OUString StringResourceImpl::resolveString( const OUString& ResourceID ) - throw (::com::sun::star::resource::MissingResourceException, RuntimeException) + throw (::com::sun::star::resource::MissingResourceException, RuntimeException, std::exception) { ::osl::MutexGuard aGuard( getMutex() ); return implResolveString( ResourceID, m_pCurrentLocaleItem ); } OUString StringResourceImpl::resolveStringForLocale( const OUString& ResourceID, const Locale& locale ) - throw ( ::com::sun::star::resource::MissingResourceException, RuntimeException) + throw ( ::com::sun::star::resource::MissingResourceException, RuntimeException, std::exception) { ::osl::MutexGuard aGuard( getMutex() ); LocaleItem* pLocaleItem = getItemForLocale( locale, false ); @@ -228,7 +228,7 @@ sal_Bool StringResourceImpl::implHasEntryForId( const OUString& ResourceID, Loca } sal_Bool StringResourceImpl::hasEntryForId( const OUString& ResourceID ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard aGuard( getMutex() ); return implHasEntryForId( ResourceID, m_pCurrentLocaleItem ); @@ -236,7 +236,7 @@ sal_Bool StringResourceImpl::hasEntryForId( const OUString& ResourceID ) sal_Bool StringResourceImpl::hasEntryForIdAndLocale( const OUString& ResourceID, const Locale& locale ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard aGuard( getMutex() ); LocaleItem* pLocaleItem = getItemForLocale( locale, false ); @@ -266,7 +266,7 @@ Sequence< OUString > StringResourceImpl::implGetResourceIDs( LocaleItem* pLocale } Sequence< OUString > StringResourceImpl::getResourceIDsForLocale - ( const Locale& locale ) throw (::com::sun::star::uno::RuntimeException) + ( const Locale& locale ) throw (::com::sun::star::uno::RuntimeException, std::exception) { ::osl::MutexGuard aGuard( getMutex() ); LocaleItem* pLocaleItem = getItemForLocale( locale, false ); @@ -274,14 +274,14 @@ Sequence< OUString > StringResourceImpl::getResourceIDsForLocale } Sequence< OUString > StringResourceImpl::getResourceIDs( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard aGuard( getMutex() ); return implGetResourceIDs( m_pCurrentLocaleItem ); } Locale StringResourceImpl::getCurrentLocale() - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard aGuard( getMutex() ); @@ -292,7 +292,7 @@ Locale StringResourceImpl::getCurrentLocale() } Locale StringResourceImpl::getDefaultLocale( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard aGuard( getMutex() ); @@ -303,7 +303,7 @@ Locale StringResourceImpl::getDefaultLocale( ) } Sequence< Locale > StringResourceImpl::getLocales( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard aGuard( getMutex() ); @@ -335,7 +335,7 @@ void StringResourceImpl::implCheckReadOnly( const sal_Char* pExceptionMsg ) } sal_Bool StringResourceImpl::isReadOnly() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return m_bReadOnly; } @@ -366,14 +366,14 @@ void StringResourceImpl::implSetCurrentLocale( const Locale& locale, } void StringResourceImpl::setCurrentLocale( const Locale& locale, sal_Bool FindClosestMatch ) - throw (IllegalArgumentException, RuntimeException) + throw (IllegalArgumentException, RuntimeException, std::exception) { sal_Bool bUseDefaultIfNoMatch = false; implSetCurrentLocale( locale, FindClosestMatch, bUseDefaultIfNoMatch ); } void StringResourceImpl::setDefaultLocale( const Locale& locale ) - throw (IllegalArgumentException, RuntimeException,NoSupportException) + throw (IllegalArgumentException, RuntimeException,NoSupportException, std::exception) { ::osl::MutexGuard aGuard( getMutex() ); implCheckReadOnly( "StringResourceImpl::setDefaultLocale(): Read only" ); @@ -415,7 +415,7 @@ void StringResourceImpl::implSetString( const OUString& ResourceID, } void StringResourceImpl::setString( const OUString& ResourceID, const OUString& Str ) - throw (NoSupportException, RuntimeException) + throw (NoSupportException, RuntimeException, std::exception) { ::osl::MutexGuard aGuard( getMutex() ); implCheckReadOnly( "StringResourceImpl::setString(): Read only" ); @@ -424,7 +424,7 @@ void StringResourceImpl::setString( const OUString& ResourceID, const OUString& void StringResourceImpl::setStringForLocale ( const OUString& ResourceID, const OUString& Str, const Locale& locale ) - throw (NoSupportException, RuntimeException) + throw (NoSupportException, RuntimeException, std::exception) { ::osl::MutexGuard aGuard( getMutex() ); implCheckReadOnly( "StringResourceImpl::setStringForLocale(): Read only" ); @@ -452,7 +452,7 @@ void StringResourceImpl::implRemoveId( const OUString& ResourceID, LocaleItem* p } void StringResourceImpl::removeId( const OUString& ResourceID ) - throw (::com::sun::star::resource::MissingResourceException, RuntimeException, NoSupportException) + throw (::com::sun::star::resource::MissingResourceException, RuntimeException, NoSupportException, std::exception) { ::osl::MutexGuard aGuard( getMutex() ); implCheckReadOnly( "StringResourceImpl::removeId(): Read only" ); @@ -460,7 +460,7 @@ void StringResourceImpl::removeId( const OUString& ResourceID ) } void StringResourceImpl::removeIdForLocale( const OUString& ResourceID, const Locale& locale ) - throw (::com::sun::star::resource::MissingResourceException, RuntimeException, NoSupportException) + throw (::com::sun::star::resource::MissingResourceException, RuntimeException, NoSupportException, std::exception) { ::osl::MutexGuard aGuard( getMutex() ); implCheckReadOnly( "StringResourceImpl::removeIdForLocale(): Read only" ); @@ -469,7 +469,7 @@ void StringResourceImpl::removeIdForLocale( const OUString& ResourceID, const Lo } void StringResourceImpl::newLocale( const Locale& locale ) - throw (ElementExistException, IllegalArgumentException, RuntimeException, NoSupportException) + throw (ElementExistException, IllegalArgumentException, RuntimeException, NoSupportException, std::exception) { ::osl::MutexGuard aGuard( getMutex() ); implCheckReadOnly( "StringResourceImpl::newLocale(): Read only" ); @@ -535,7 +535,7 @@ void StringResourceImpl::newLocale( const Locale& locale ) } void StringResourceImpl::removeLocale( const Locale& locale ) - throw (IllegalArgumentException, RuntimeException, NoSupportException) + throw (IllegalArgumentException, RuntimeException, NoSupportException, std::exception) { ::osl::MutexGuard aGuard( getMutex() ); implCheckReadOnly( "StringResourceImpl::removeLocale(): Read only" ); @@ -624,7 +624,7 @@ void StringResourceImpl::implScanIdForNumber( const OUString& ResourceID ) } sal_Int32 StringResourceImpl::getUniqueNumericId( ) - throw (RuntimeException, NoSupportException) + throw (RuntimeException, NoSupportException, std::exception) { if( m_nNextUniqueNumericId == UNIQUE_NUMBER_NEEDS_INITIALISATION ) { @@ -778,7 +778,7 @@ StringResourcePersistenceImpl::~StringResourcePersistenceImpl() OUString StringResourcePersistenceImpl::getImplementationName( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return OUString( "com.sun.star.comp.scripting.StringResourceWithLocation"); } @@ -786,7 +786,7 @@ OUString StringResourcePersistenceImpl::getImplementationName( ) sal_Bool StringResourcePersistenceImpl::supportsService( const OUString& rServiceName ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return StringResourceImpl::supportsService( rServiceName ); } @@ -794,7 +794,7 @@ sal_Bool StringResourcePersistenceImpl::supportsService( const OUString& rServic Sequence< OUString > StringResourcePersistenceImpl::getSupportedServiceNames( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return StringResourceImpl::getSupportedServiceNames(); } @@ -852,113 +852,113 @@ void StringResourcePersistenceImpl::implInitializeCommonParameters // XModifyBroadcaster void StringResourcePersistenceImpl::addModifyListener( const Reference< XModifyListener >& aListener ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { StringResourceImpl::addModifyListener( aListener ); } void StringResourcePersistenceImpl::removeModifyListener( const Reference< XModifyListener >& aListener ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { StringResourceImpl::removeModifyListener( aListener ); } // XStringResourceResolver OUString StringResourcePersistenceImpl::resolveString( const OUString& ResourceID ) - throw (::com::sun::star::resource::MissingResourceException, RuntimeException) + throw (::com::sun::star::resource::MissingResourceException, RuntimeException, std::exception) { return StringResourceImpl::resolveString( ResourceID ) ; } OUString StringResourcePersistenceImpl::resolveStringForLocale( const OUString& ResourceID, const Locale& locale ) - throw ( ::com::sun::star::resource::MissingResourceException, RuntimeException) + throw ( ::com::sun::star::resource::MissingResourceException, RuntimeException, std::exception) { return StringResourceImpl::resolveStringForLocale( ResourceID, locale ); } sal_Bool StringResourcePersistenceImpl::hasEntryForId( const OUString& ResourceID ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return StringResourceImpl::hasEntryForId( ResourceID ) ; } sal_Bool StringResourcePersistenceImpl::hasEntryForIdAndLocale( const OUString& ResourceID, const Locale& locale ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return StringResourceImpl::hasEntryForIdAndLocale( ResourceID, locale ); } Locale StringResourcePersistenceImpl::getCurrentLocale() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return StringResourceImpl::getCurrentLocale(); } Locale StringResourcePersistenceImpl::getDefaultLocale( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return StringResourceImpl::getDefaultLocale(); } Sequence< Locale > StringResourcePersistenceImpl::getLocales( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return StringResourceImpl::getLocales(); } // XStringResourceManager sal_Bool StringResourcePersistenceImpl::isReadOnly() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return StringResourceImpl::isReadOnly(); } void StringResourcePersistenceImpl::setCurrentLocale( const Locale& locale, sal_Bool FindClosestMatch ) - throw (IllegalArgumentException, RuntimeException) + throw (IllegalArgumentException, RuntimeException, std::exception) { StringResourceImpl::setCurrentLocale( locale, FindClosestMatch ); } void StringResourcePersistenceImpl::setDefaultLocale( const Locale& locale ) - throw (IllegalArgumentException, RuntimeException,NoSupportException) + throw (IllegalArgumentException, RuntimeException,NoSupportException, std::exception) { StringResourceImpl::setDefaultLocale( locale ); } Sequence< OUString > StringResourcePersistenceImpl::getResourceIDs( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return StringResourceImpl::getResourceIDs(); } void StringResourcePersistenceImpl::setString( const OUString& ResourceID, const OUString& Str ) - throw (NoSupportException, RuntimeException) + throw (NoSupportException, RuntimeException, std::exception) { StringResourceImpl::setString( ResourceID, Str ); } void StringResourcePersistenceImpl::setStringForLocale ( const OUString& ResourceID, const OUString& Str, const Locale& locale ) - throw (NoSupportException, RuntimeException) + throw (NoSupportException, RuntimeException, std::exception) { StringResourceImpl::setStringForLocale( ResourceID, Str, locale ); } Sequence< OUString > StringResourcePersistenceImpl::getResourceIDsForLocale - ( const Locale& locale ) throw (::com::sun::star::uno::RuntimeException) + ( const Locale& locale ) throw (::com::sun::star::uno::RuntimeException, std::exception) { return StringResourceImpl::getResourceIDsForLocale( locale ); } void StringResourcePersistenceImpl::removeId( const OUString& ResourceID ) - throw (::com::sun::star::resource::MissingResourceException, RuntimeException, NoSupportException) + throw (::com::sun::star::resource::MissingResourceException, RuntimeException, NoSupportException, std::exception) { StringResourceImpl::removeId( ResourceID ); } void StringResourcePersistenceImpl::removeIdForLocale( const OUString& ResourceID, const Locale& locale ) - throw (::com::sun::star::resource::MissingResourceException, RuntimeException, NoSupportException) + throw (::com::sun::star::resource::MissingResourceException, RuntimeException, NoSupportException, std::exception) { StringResourceImpl::removeIdForLocale( ResourceID, locale ); } void StringResourcePersistenceImpl::newLocale( const Locale& locale ) - throw (ElementExistException, IllegalArgumentException, RuntimeException, NoSupportException) + throw (ElementExistException, IllegalArgumentException, RuntimeException, NoSupportException, std::exception) { StringResourceImpl::newLocale( locale ); } void StringResourcePersistenceImpl::removeLocale( const Locale& locale ) - throw (IllegalArgumentException, RuntimeException, NoSupportException) + throw (IllegalArgumentException, RuntimeException, NoSupportException, std::exception) { StringResourceImpl::removeLocale( locale ); } sal_Int32 StringResourcePersistenceImpl::getUniqueNumericId( ) - throw (RuntimeException, NoSupportException) + throw (RuntimeException, NoSupportException, std::exception) { return StringResourceImpl::getUniqueNumericId(); } @@ -967,12 +967,12 @@ sal_Int32 StringResourcePersistenceImpl::getUniqueNumericId( ) // XStringResourcePersistence void StringResourcePersistenceImpl::store() - throw (NoSupportException, Exception, RuntimeException) + throw (NoSupportException, Exception, RuntimeException, std::exception) { } sal_Bool StringResourcePersistenceImpl::isModified( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { ::osl::MutexGuard aGuard( getMutex() ); @@ -980,14 +980,14 @@ sal_Bool StringResourcePersistenceImpl::isModified( ) } void StringResourcePersistenceImpl::setComment( const OUString& Comment ) - throw (::com::sun::star::uno::RuntimeException) + throw (::com::sun::star::uno::RuntimeException, std::exception) { m_aComment = Comment; } void StringResourcePersistenceImpl::storeToStorage( const Reference< XStorage >& Storage, const OUString& NameBase, const OUString& Comment ) - throw (Exception, RuntimeException) + throw (Exception, RuntimeException, std::exception) { ::osl::MutexGuard aGuard( getMutex() ); @@ -1112,7 +1112,7 @@ void StringResourcePersistenceImpl::implStoreAtStorage void StringResourcePersistenceImpl::storeToURL( const OUString& URL, const OUString& NameBase, const OUString& Comment, const Reference< ::com::sun::star::task::XInteractionHandler >& Handler ) - throw (Exception, RuntimeException) + throw (Exception, RuntimeException, std::exception) { ::osl::MutexGuard aGuard( getMutex() ); @@ -1384,7 +1384,7 @@ Sequence< ::sal_Int8 > BinaryOutput::closeAndGetData() // pos3 Properties file written by implWritePropertiesFile Sequence< sal_Int8 > StringResourcePersistenceImpl::exportBinary( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { Reference< XMultiComponentFactory > xMCF = getMultiComponentFactory(); BinaryOutput aOut( xMCF, m_xContext ); @@ -1596,7 +1596,7 @@ OUString BinaryInput::readString( void ) } void StringResourcePersistenceImpl::importBinary( const Sequence< ::sal_Int8 >& Data ) - throw (IllegalArgumentException, RuntimeException) + throw (IllegalArgumentException, RuntimeException, std::exception) { // Init: Remove all locales sal_Int32 nOldLocaleCount = 0; @@ -2305,17 +2305,17 @@ StringResourceWithStorageImpl::~StringResourceWithStorageImpl() // XServiceInfo -OUString StringResourceWithStorageImpl::getImplementationName( ) throw (RuntimeException) +OUString StringResourceWithStorageImpl::getImplementationName( ) throw (RuntimeException, std::exception) { return getImplementationName_StringResourceWithStorageImpl(); } -sal_Bool StringResourceWithStorageImpl::supportsService( const OUString& rServiceName ) throw (RuntimeException) +sal_Bool StringResourceWithStorageImpl::supportsService( const OUString& rServiceName ) throw (RuntimeException, std::exception) { return cppu::supportsService(this, rServiceName); } -Sequence< OUString > StringResourceWithStorageImpl::getSupportedServiceNames( ) throw (RuntimeException) +Sequence< OUString > StringResourceWithStorageImpl::getSupportedServiceNames( ) throw (RuntimeException, std::exception) { return getSupportedServiceNames_StringResourceWithStorageImpl(); } @@ -2325,7 +2325,7 @@ Sequence< OUString > StringResourceWithStorageImpl::getSupportedServiceNames( ) void StringResourceWithStorageImpl::initialize( const Sequence< Any >& aArguments ) - throw (Exception, RuntimeException) + throw (Exception, RuntimeException, std::exception) { ::osl::MutexGuard aGuard( getMutex() ); @@ -2354,120 +2354,120 @@ void StringResourceWithStorageImpl::initialize( const Sequence< Any >& aArgument // XModifyBroadcaster void StringResourceWithStorageImpl::addModifyListener( const Reference< XModifyListener >& aListener ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { StringResourceImpl::addModifyListener( aListener ); } void StringResourceWithStorageImpl::removeModifyListener( const Reference< XModifyListener >& aListener ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { StringResourceImpl::removeModifyListener( aListener ); } // XStringResourceResolver OUString StringResourceWithStorageImpl::resolveString( const OUString& ResourceID ) - throw (::com::sun::star::resource::MissingResourceException, RuntimeException) + throw (::com::sun::star::resource::MissingResourceException, RuntimeException, std::exception) { return StringResourceImpl::resolveString( ResourceID ) ; } OUString StringResourceWithStorageImpl::resolveStringForLocale( const OUString& ResourceID, const Locale& locale ) - throw ( ::com::sun::star::resource::MissingResourceException, RuntimeException) + throw ( ::com::sun::star::resource::MissingResourceException, RuntimeException, std::exception) { return StringResourceImpl::resolveStringForLocale( ResourceID, locale ); } sal_Bool StringResourceWithStorageImpl::hasEntryForId( const OUString& ResourceID ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return StringResourceImpl::hasEntryForId( ResourceID ) ; } sal_Bool StringResourceWithStorageImpl::hasEntryForIdAndLocale( const OUString& ResourceID, const Locale& locale ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return StringResourceImpl::hasEntryForIdAndLocale( ResourceID, locale ); } Sequence< OUString > StringResourceWithStorageImpl::getResourceIDs( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return StringResourceImpl::getResourceIDs(); } Sequence< OUString > StringResourceWithStorageImpl::getResourceIDsForLocale - ( const Locale& locale ) throw (::com::sun::star::uno::RuntimeException) + ( const Locale& locale ) throw (::com::sun::star::uno::RuntimeException, std::exception) { return StringResourceImpl::getResourceIDsForLocale( locale ); } Locale StringResourceWithStorageImpl::getCurrentLocale() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return StringResourceImpl::getCurrentLocale(); } Locale StringResourceWithStorageImpl::getDefaultLocale( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return StringResourceImpl::getDefaultLocale(); } Sequence< Locale > StringResourceWithStorageImpl::getLocales( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return StringResourceImpl::getLocales(); } // XStringResourceManager sal_Bool StringResourceWithStorageImpl::isReadOnly() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return StringResourceImpl::isReadOnly(); } void StringResourceWithStorageImpl::setCurrentLocale( const Locale& locale, sal_Bool FindClosestMatch ) - throw (IllegalArgumentException, RuntimeException) + throw (IllegalArgumentException, RuntimeException, std::exception) { StringResourceImpl::setCurrentLocale( locale, FindClosestMatch ); } void StringResourceWithStorageImpl::setDefaultLocale( const Locale& locale ) - throw (IllegalArgumentException, RuntimeException,NoSupportException) + throw (IllegalArgumentException, RuntimeException,NoSupportException, std::exception) { StringResourceImpl::setDefaultLocale( locale ); } void StringResourceWithStorageImpl::setString( const OUString& ResourceID, const OUString& Str ) - throw (NoSupportException, RuntimeException) + throw (NoSupportException, RuntimeException, std::exception) { StringResourceImpl::setString( ResourceID, Str ); } void StringResourceWithStorageImpl::setStringForLocale ( const OUString& ResourceID, const OUString& Str, const Locale& locale ) - throw (NoSupportException, RuntimeException) + throw (NoSupportException, RuntimeException, std::exception) { StringResourceImpl::setStringForLocale( ResourceID, Str, locale ); } void StringResourceWithStorageImpl::removeId( const OUString& ResourceID ) - throw (::com::sun::star::resource::MissingResourceException, RuntimeException, NoSupportException) + throw (::com::sun::star::resource::MissingResourceException, RuntimeException, NoSupportException, std::exception) { StringResourceImpl::removeId( ResourceID ); } void StringResourceWithStorageImpl::removeIdForLocale( const OUString& ResourceID, const Locale& locale ) - throw (::com::sun::star::resource::MissingResourceException, RuntimeException, NoSupportException) + throw (::com::sun::star::resource::MissingResourceException, RuntimeException, NoSupportException, std::exception) { StringResourceImpl::removeIdForLocale( ResourceID, locale ); } void StringResourceWithStorageImpl::newLocale( const Locale& locale ) - throw (ElementExistException, IllegalArgumentException, RuntimeException, NoSupportException) + throw (ElementExistException, IllegalArgumentException, RuntimeException, NoSupportException, std::exception) { StringResourceImpl::newLocale( locale ); } void StringResourceWithStorageImpl::removeLocale( const Locale& locale ) - throw (IllegalArgumentException, RuntimeException, NoSupportException) + throw (IllegalArgumentException, RuntimeException, NoSupportException, std::exception) { StringResourceImpl::removeLocale( locale ); } sal_Int32 StringResourceWithStorageImpl::getUniqueNumericId( ) - throw (RuntimeException, NoSupportException) + throw (RuntimeException, NoSupportException, std::exception) { return StringResourceImpl::getUniqueNumericId(); } // XStringResourcePersistence void StringResourceWithStorageImpl::store() - throw (NoSupportException, Exception, RuntimeException) + throw (NoSupportException, Exception, RuntimeException, std::exception) { ::osl::MutexGuard aGuard( getMutex() ); implCheckReadOnly( "StringResourceWithStorageImpl::store(): Read only" ); @@ -2483,35 +2483,35 @@ void StringResourceWithStorageImpl::store() } sal_Bool StringResourceWithStorageImpl::isModified( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return StringResourcePersistenceImpl::isModified(); } void StringResourceWithStorageImpl::setComment( const OUString& Comment ) - throw (::com::sun::star::uno::RuntimeException) + throw (::com::sun::star::uno::RuntimeException, std::exception) { StringResourcePersistenceImpl::setComment( Comment ); } void StringResourceWithStorageImpl::storeToStorage( const Reference< XStorage >& Storage, const OUString& NameBase, const OUString& Comment ) - throw (Exception, RuntimeException) + throw (Exception, RuntimeException, std::exception) { StringResourcePersistenceImpl::storeToStorage( Storage, NameBase, Comment ); } void StringResourceWithStorageImpl::storeToURL( const OUString& URL, const OUString& NameBase, const OUString& Comment, const Reference< ::com::sun::star::task::XInteractionHandler >& Handler ) - throw (Exception, RuntimeException) + throw (Exception, RuntimeException, std::exception) { StringResourcePersistenceImpl::storeToURL( URL, NameBase, Comment, Handler ); } Sequence< ::sal_Int8 > StringResourceWithStorageImpl::exportBinary( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return StringResourcePersistenceImpl::exportBinary(); } void StringResourceWithStorageImpl::importBinary( const Sequence< ::sal_Int8 >& Data ) - throw (IllegalArgumentException, RuntimeException) + throw (IllegalArgumentException, RuntimeException, std::exception) { StringResourcePersistenceImpl::importBinary( Data ); } @@ -2520,14 +2520,14 @@ void StringResourceWithStorageImpl::importBinary( const Sequence< ::sal_Int8 >& // XStringResourceWithStorage void StringResourceWithStorageImpl::storeAsStorage( const Reference< XStorage >& Storage ) - throw (Exception, RuntimeException) + throw (Exception, RuntimeException, std::exception) { setStorage( Storage ); store(); } void StringResourceWithStorageImpl::setStorage( const Reference< XStorage >& Storage ) - throw (IllegalArgumentException, RuntimeException) + throw (IllegalArgumentException, RuntimeException, std::exception) { ::osl::MutexGuard aGuard( getMutex() ); @@ -2632,17 +2632,17 @@ StringResourceWithLocationImpl::~StringResourceWithLocationImpl() // XServiceInfo -OUString StringResourceWithLocationImpl::getImplementationName( ) throw (RuntimeException) +OUString StringResourceWithLocationImpl::getImplementationName( ) throw (RuntimeException, std::exception) { return getImplementationName_StringResourceWithLocationImpl(); } -sal_Bool StringResourceWithLocationImpl::supportsService( const OUString& rServiceName ) throw (RuntimeException) +sal_Bool StringResourceWithLocationImpl::supportsService( const OUString& rServiceName ) throw (RuntimeException, std::exception) { return cppu::supportsService(this, rServiceName); } -Sequence< OUString > StringResourceWithLocationImpl::getSupportedServiceNames( ) throw (RuntimeException) +Sequence< OUString > StringResourceWithLocationImpl::getSupportedServiceNames( ) throw (RuntimeException, std::exception) { return getSupportedServiceNames_StringResourceWithLocationImpl(); } @@ -2652,7 +2652,7 @@ Sequence< OUString > StringResourceWithLocationImpl::getSupportedServiceNames( void StringResourceWithLocationImpl::initialize( const Sequence< Any >& aArguments ) - throw (Exception, RuntimeException) + throw (Exception, RuntimeException, std::exception) { ::osl::MutexGuard aGuard( getMutex() ); @@ -2697,120 +2697,120 @@ void StringResourceWithLocationImpl::initialize( const Sequence< Any >& aArgumen // XModifyBroadcaster void StringResourceWithLocationImpl::addModifyListener( const Reference< XModifyListener >& aListener ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { StringResourceImpl::addModifyListener( aListener ); } void StringResourceWithLocationImpl::removeModifyListener( const Reference< XModifyListener >& aListener ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { StringResourceImpl::removeModifyListener( aListener ); } // XStringResourceResolver OUString StringResourceWithLocationImpl::resolveString( const OUString& ResourceID ) - throw (::com::sun::star::resource::MissingResourceException, RuntimeException) + throw (::com::sun::star::resource::MissingResourceException, RuntimeException, std::exception) { return StringResourceImpl::resolveString( ResourceID ) ; } OUString StringResourceWithLocationImpl::resolveStringForLocale( const OUString& ResourceID, const Locale& locale ) - throw ( ::com::sun::star::resource::MissingResourceException, RuntimeException) + throw ( ::com::sun::star::resource::MissingResourceException, RuntimeException, std::exception) { return StringResourceImpl::resolveStringForLocale( ResourceID, locale ); } sal_Bool StringResourceWithLocationImpl::hasEntryForId( const OUString& ResourceID ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return StringResourceImpl::hasEntryForId( ResourceID ) ; } sal_Bool StringResourceWithLocationImpl::hasEntryForIdAndLocale( const OUString& ResourceID, const Locale& locale ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return StringResourceImpl::hasEntryForIdAndLocale( ResourceID, locale ); } Sequence< OUString > StringResourceWithLocationImpl::getResourceIDs( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return StringResourceImpl::getResourceIDs(); } Sequence< OUString > StringResourceWithLocationImpl::getResourceIDsForLocale - ( const Locale& locale ) throw (::com::sun::star::uno::RuntimeException) + ( const Locale& locale ) throw (::com::sun::star::uno::RuntimeException, std::exception) { return StringResourceImpl::getResourceIDsForLocale( locale ); } Locale StringResourceWithLocationImpl::getCurrentLocale() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return StringResourceImpl::getCurrentLocale(); } Locale StringResourceWithLocationImpl::getDefaultLocale( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return StringResourceImpl::getDefaultLocale(); } Sequence< Locale > StringResourceWithLocationImpl::getLocales( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return StringResourceImpl::getLocales(); } // XStringResourceManager sal_Bool StringResourceWithLocationImpl::isReadOnly() - throw (RuntimeException) + throw (RuntimeException, std::exception) { return StringResourceImpl::isReadOnly(); } void StringResourceWithLocationImpl::setCurrentLocale( const Locale& locale, sal_Bool FindClosestMatch ) - throw (IllegalArgumentException, RuntimeException) + throw (IllegalArgumentException, RuntimeException, std::exception) { StringResourceImpl::setCurrentLocale( locale, FindClosestMatch ); } void StringResourceWithLocationImpl::setDefaultLocale( const Locale& locale ) - throw (IllegalArgumentException, RuntimeException,NoSupportException) + throw (IllegalArgumentException, RuntimeException,NoSupportException, std::exception) { StringResourceImpl::setDefaultLocale( locale ); } void StringResourceWithLocationImpl::setString( const OUString& ResourceID, const OUString& Str ) - throw (NoSupportException, RuntimeException) + throw (NoSupportException, RuntimeException, std::exception) { StringResourceImpl::setString( ResourceID, Str ); } void StringResourceWithLocationImpl::setStringForLocale ( const OUString& ResourceID, const OUString& Str, const Locale& locale ) - throw (NoSupportException, RuntimeException) + throw (NoSupportException, RuntimeException, std::exception) { StringResourceImpl::setStringForLocale( ResourceID, Str, locale ); } void StringResourceWithLocationImpl::removeId( const OUString& ResourceID ) - throw (::com::sun::star::resource::MissingResourceException, RuntimeException, NoSupportException) + throw (::com::sun::star::resource::MissingResourceException, RuntimeException, NoSupportException, std::exception) { StringResourceImpl::removeId( ResourceID ); } void StringResourceWithLocationImpl::removeIdForLocale( const OUString& ResourceID, const Locale& locale ) - throw (::com::sun::star::resource::MissingResourceException, RuntimeException, NoSupportException) + throw (::com::sun::star::resource::MissingResourceException, RuntimeException, NoSupportException, std::exception) { StringResourceImpl::removeIdForLocale( ResourceID, locale ); } void StringResourceWithLocationImpl::newLocale( const Locale& locale ) - throw (ElementExistException, IllegalArgumentException, RuntimeException, NoSupportException) + throw (ElementExistException, IllegalArgumentException, RuntimeException, NoSupportException, std::exception) { StringResourceImpl::newLocale( locale ); } void StringResourceWithLocationImpl::removeLocale( const Locale& locale ) - throw (IllegalArgumentException, RuntimeException, NoSupportException) + throw (IllegalArgumentException, RuntimeException, NoSupportException, std::exception) { StringResourceImpl::removeLocale( locale ); } sal_Int32 StringResourceWithLocationImpl::getUniqueNumericId( ) - throw (RuntimeException, NoSupportException) + throw (RuntimeException, NoSupportException, std::exception) { return StringResourceImpl::getUniqueNumericId(); } // XStringResourcePersistence void StringResourceWithLocationImpl::store() - throw (NoSupportException, Exception, RuntimeException) + throw (NoSupportException, Exception, RuntimeException, std::exception) { ::osl::MutexGuard aGuard( getMutex() ); implCheckReadOnly( "StringResourceWithLocationImpl::store(): Read only" ); @@ -2828,35 +2828,35 @@ void StringResourceWithLocationImpl::store() } sal_Bool StringResourceWithLocationImpl::isModified( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return StringResourcePersistenceImpl::isModified(); } void StringResourceWithLocationImpl::setComment( const OUString& Comment ) - throw (::com::sun::star::uno::RuntimeException) + throw (::com::sun::star::uno::RuntimeException, std::exception) { StringResourcePersistenceImpl::setComment( Comment ); } void StringResourceWithLocationImpl::storeToStorage( const Reference< XStorage >& Storage, const OUString& NameBase, const OUString& Comment ) - throw (Exception, RuntimeException) + throw (Exception, RuntimeException, std::exception) { StringResourcePersistenceImpl::storeToStorage( Storage, NameBase, Comment ); } void StringResourceWithLocationImpl::storeToURL( const OUString& URL, const OUString& NameBase, const OUString& Comment, const Reference< ::com::sun::star::task::XInteractionHandler >& Handler ) - throw (Exception, RuntimeException) + throw (Exception, RuntimeException, std::exception) { StringResourcePersistenceImpl::storeToURL( URL, NameBase, Comment, Handler ); } Sequence< ::sal_Int8 > StringResourceWithLocationImpl::exportBinary( ) - throw (RuntimeException) + throw (RuntimeException, std::exception) { return StringResourcePersistenceImpl::exportBinary(); } void StringResourceWithLocationImpl::importBinary( const Sequence< ::sal_Int8 >& Data ) - throw (IllegalArgumentException, RuntimeException) + throw (IllegalArgumentException, RuntimeException, std::exception) { StringResourcePersistenceImpl::importBinary( Data ); } @@ -2866,14 +2866,14 @@ void StringResourceWithLocationImpl::importBinary( const Sequence< ::sal_Int8 >& // XStringResourceWithLocation void StringResourceWithLocationImpl::storeAsURL( const OUString& URL ) - throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException) + throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) { setURL( URL ); store(); } void StringResourceWithLocationImpl::setURL( const OUString& URL ) - throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) + throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) { ::osl::MutexGuard aGuard( getMutex() ); implCheckReadOnly( "StringResourceWithLocationImpl::setURL(): Read only" ); diff --git a/scripting/source/stringresource/stringresource.hxx b/scripting/source/stringresource/stringresource.hxx index 097326228505..0e7309eb69cb 100644 --- a/scripting/source/stringresource/stringresource.hxx +++ b/scripting/source/stringresource/stringresource.hxx @@ -184,71 +184,71 @@ 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 ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); // XModifyBroadcaster virtual void SAL_CALL addModifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL removeModifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); // XStringResourceResolver virtual OUString SAL_CALL resolveString( const OUString& ResourceID ) - throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException, std::exception); virtual OUString SAL_CALL resolveStringForLocale( const OUString& ResourceID, const ::com::sun::star::lang::Locale& locale ) throw ( ::com::sun::star::resource::MissingResourceException, - ::com::sun::star::uno::RuntimeException); + ::com::sun::star::uno::RuntimeException, std::exception); virtual ::sal_Bool SAL_CALL hasEntryForId( const OUString& ResourceID ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::sal_Bool SAL_CALL hasEntryForIdAndLocale( const OUString& ResourceID, const ::com::sun::star::lang::Locale& locale ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getResourceIDs( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getResourceIDsForLocale ( const ::com::sun::star::lang::Locale& locale ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::lang::Locale SAL_CALL getCurrentLocale( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::lang::Locale SAL_CALL getDefaultLocale( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::uno::Sequence< ::com::sun::star::lang::Locale > SAL_CALL getLocales( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); // XStringResourceManager virtual ::sal_Bool SAL_CALL isReadOnly() - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL setCurrentLocale( const ::com::sun::star::lang::Locale& locale, ::sal_Bool FindClosestMatch ) - throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL setDefaultLocale( const ::com::sun::star::lang::Locale& locale ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, - ::com::sun::star::lang::NoSupportException); + ::com::sun::star::lang::NoSupportException, std::exception); virtual void SAL_CALL setString( const OUString& ResourceID, const OUString& Str ) - throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL setStringForLocale( const OUString& ResourceID, const OUString& Str, const ::com::sun::star::lang::Locale& locale ) - throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL removeId( const OUString& ResourceID ) throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException, - ::com::sun::star::lang::NoSupportException); + ::com::sun::star::lang::NoSupportException, std::exception); virtual void SAL_CALL removeIdForLocale( const OUString& ResourceID, const ::com::sun::star::lang::Locale& locale ) throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException, - ::com::sun::star::lang::NoSupportException); + ::com::sun::star::lang::NoSupportException, std::exception); virtual void SAL_CALL newLocale( const ::com::sun::star::lang::Locale& locale ) throw (::com::sun::star::container::ElementExistException, ::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException); + ::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL removeLocale( const ::com::sun::star::lang::Locale& locale ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, - ::com::sun::star::lang::NoSupportException); + ::com::sun::star::lang::NoSupportException, std::exception); virtual ::sal_Int32 SAL_CALL getUniqueNumericId( ) throw (::com::sun::star::lang::NoSupportException, - ::com::sun::star::uno::RuntimeException); + ::com::sun::star::uno::RuntimeException, std::exception); }; typedef ::cppu::ImplInheritanceHelper1< @@ -336,93 +336,93 @@ 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 ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); // XModifyBroadcaster virtual void SAL_CALL addModifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL removeModifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); // XStringResourceResolver virtual OUString SAL_CALL resolveString( const OUString& ResourceID ) - throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException, std::exception); virtual OUString SAL_CALL resolveStringForLocale( const OUString& ResourceID, const ::com::sun::star::lang::Locale& locale ) throw ( ::com::sun::star::resource::MissingResourceException, - ::com::sun::star::uno::RuntimeException); + ::com::sun::star::uno::RuntimeException, std::exception); virtual ::sal_Bool SAL_CALL hasEntryForId( const OUString& ResourceID ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::sal_Bool SAL_CALL hasEntryForIdAndLocale( const OUString& ResourceID, const ::com::sun::star::lang::Locale& locale ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getResourceIDs( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getResourceIDsForLocale ( const ::com::sun::star::lang::Locale& locale ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::lang::Locale SAL_CALL getCurrentLocale( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::lang::Locale SAL_CALL getDefaultLocale( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::uno::Sequence< ::com::sun::star::lang::Locale > SAL_CALL getLocales( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); // XStringResourceManager virtual ::sal_Bool SAL_CALL isReadOnly() - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL setCurrentLocale( const ::com::sun::star::lang::Locale& locale, ::sal_Bool FindClosestMatch ) - throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL setDefaultLocale( const ::com::sun::star::lang::Locale& locale ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, - ::com::sun::star::lang::NoSupportException); + ::com::sun::star::lang::NoSupportException, std::exception); virtual void SAL_CALL setString( const OUString& ResourceID, const OUString& Str ) - throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL setStringForLocale( const OUString& ResourceID, const OUString& Str, const ::com::sun::star::lang::Locale& locale ) - throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL removeId( const OUString& ResourceID ) throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException, - ::com::sun::star::lang::NoSupportException); + ::com::sun::star::lang::NoSupportException, std::exception); virtual void SAL_CALL removeIdForLocale( const OUString& ResourceID, const ::com::sun::star::lang::Locale& locale ) throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException, - ::com::sun::star::lang::NoSupportException); + ::com::sun::star::lang::NoSupportException, std::exception); virtual void SAL_CALL newLocale( const ::com::sun::star::lang::Locale& locale ) throw (::com::sun::star::container::ElementExistException, ::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException); + ::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL removeLocale( const ::com::sun::star::lang::Locale& locale ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, - ::com::sun::star::lang::NoSupportException); + ::com::sun::star::lang::NoSupportException, std::exception); virtual ::sal_Int32 SAL_CALL getUniqueNumericId( ) throw (::com::sun::star::lang::NoSupportException, - ::com::sun::star::uno::RuntimeException); + ::com::sun::star::uno::RuntimeException, std::exception); // XStringResourcePersistence virtual void SAL_CALL store( ) throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::Exception, - ::com::sun::star::uno::RuntimeException); + ::com::sun::star::uno::RuntimeException, std::exception); virtual ::sal_Bool SAL_CALL isModified( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL setComment( const OUString& Comment ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL storeToStorage ( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& Storage, const OUString& NameBase, const OUString& Comment ) - throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL storeToURL( const OUString& URL, const OUString& NameBase, const OUString& Comment, const ::com::sun::star::uno::Reference < ::com::sun::star::task::XInteractionHandler >& Handler ) - throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::uno::Sequence< ::sal_Int8 > SAL_CALL exportBinary( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL importBinary( const ::com::sun::star::uno::Sequence< ::sal_Int8 >& Data ) - throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception); }; @@ -446,105 +446,105 @@ 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 ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) - throw (::com::sun::star::uno::RuntimeException); + 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); + throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception); // XModifyBroadcaster virtual void SAL_CALL addModifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL removeModifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); // XStringResourceResolver virtual OUString SAL_CALL resolveString( const OUString& ResourceID ) - throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException, std::exception); virtual OUString SAL_CALL resolveStringForLocale( const OUString& ResourceID, const ::com::sun::star::lang::Locale& locale ) throw ( ::com::sun::star::resource::MissingResourceException, - ::com::sun::star::uno::RuntimeException); + ::com::sun::star::uno::RuntimeException, std::exception); virtual ::sal_Bool SAL_CALL hasEntryForId( const OUString& ResourceID ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::sal_Bool SAL_CALL hasEntryForIdAndLocale( const OUString& ResourceID, const ::com::sun::star::lang::Locale& locale ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getResourceIDs( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getResourceIDsForLocale ( const ::com::sun::star::lang::Locale& locale ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::lang::Locale SAL_CALL getCurrentLocale( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::lang::Locale SAL_CALL getDefaultLocale( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::uno::Sequence< ::com::sun::star::lang::Locale > SAL_CALL getLocales( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); // XStringResourceManager virtual ::sal_Bool SAL_CALL isReadOnly() - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL setCurrentLocale( const ::com::sun::star::lang::Locale& locale, ::sal_Bool FindClosestMatch ) - throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL setDefaultLocale( const ::com::sun::star::lang::Locale& locale ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, - ::com::sun::star::lang::NoSupportException); + ::com::sun::star::lang::NoSupportException, std::exception); virtual void SAL_CALL setString( const OUString& ResourceID, const OUString& Str ) - throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL setStringForLocale( const OUString& ResourceID, const OUString& Str, const ::com::sun::star::lang::Locale& locale ) - throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL removeId( const OUString& ResourceID ) throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException, - ::com::sun::star::lang::NoSupportException); + ::com::sun::star::lang::NoSupportException, std::exception); virtual void SAL_CALL removeIdForLocale( const OUString& ResourceID, const ::com::sun::star::lang::Locale& locale ) throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException, - ::com::sun::star::lang::NoSupportException); + ::com::sun::star::lang::NoSupportException, std::exception); virtual void SAL_CALL newLocale( const ::com::sun::star::lang::Locale& locale ) throw (::com::sun::star::container::ElementExistException, ::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException); + ::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL removeLocale( const ::com::sun::star::lang::Locale& locale ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, - ::com::sun::star::lang::NoSupportException); + ::com::sun::star::lang::NoSupportException, std::exception); virtual ::sal_Int32 SAL_CALL getUniqueNumericId( ) throw (::com::sun::star::lang::NoSupportException, - ::com::sun::star::uno::RuntimeException); + ::com::sun::star::uno::RuntimeException, std::exception); // XStringResourcePersistence virtual void SAL_CALL store( ) throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::Exception, - ::com::sun::star::uno::RuntimeException); + ::com::sun::star::uno::RuntimeException, std::exception); virtual ::sal_Bool SAL_CALL isModified( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL setComment( const OUString& Comment ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL storeToStorage ( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& Storage, const OUString& NameBase, const OUString& Comment ) - throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL storeToURL( const OUString& URL, const OUString& NameBase, const OUString& Comment, const ::com::sun::star::uno::Reference < ::com::sun::star::task::XInteractionHandler >& Handler ) - throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::uno::Sequence< ::sal_Int8 > SAL_CALL exportBinary( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL importBinary( const ::com::sun::star::uno::Sequence< ::sal_Int8 >& Data ) - throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception); // XStringResourceWithStorage virtual void SAL_CALL storeAsStorage ( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& Storage ) - throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL setStorage ( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& Storage ) - throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception); }; @@ -572,103 +572,103 @@ 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 ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) - throw (::com::sun::star::uno::RuntimeException); + 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); + throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception); // XModifyBroadcaster virtual void SAL_CALL addModifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL removeModifyListener( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener >& aListener ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); // XStringResourceResolver virtual OUString SAL_CALL resolveString( const OUString& ResourceID ) - throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException, std::exception); virtual OUString SAL_CALL resolveStringForLocale( const OUString& ResourceID, const ::com::sun::star::lang::Locale& locale ) throw ( ::com::sun::star::resource::MissingResourceException, - ::com::sun::star::uno::RuntimeException); + ::com::sun::star::uno::RuntimeException, std::exception); virtual ::sal_Bool SAL_CALL hasEntryForId( const OUString& ResourceID ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::sal_Bool SAL_CALL hasEntryForIdAndLocale( const OUString& ResourceID, const ::com::sun::star::lang::Locale& locale ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getResourceIDs( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getResourceIDsForLocale ( const ::com::sun::star::lang::Locale& locale ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::lang::Locale SAL_CALL getCurrentLocale( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::lang::Locale SAL_CALL getDefaultLocale( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::uno::Sequence< ::com::sun::star::lang::Locale > SAL_CALL getLocales( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); // XStringResourceManager virtual ::sal_Bool SAL_CALL isReadOnly() - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL setCurrentLocale( const ::com::sun::star::lang::Locale& locale, ::sal_Bool FindClosestMatch ) - throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL setDefaultLocale( const ::com::sun::star::lang::Locale& locale ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, - ::com::sun::star::lang::NoSupportException); + ::com::sun::star::lang::NoSupportException, std::exception); virtual void SAL_CALL setString( const OUString& ResourceID, const OUString& Str ) - throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL setStringForLocale( const OUString& ResourceID, const OUString& Str, const ::com::sun::star::lang::Locale& locale ) - throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL removeId( const OUString& ResourceID ) throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException, - ::com::sun::star::lang::NoSupportException); + ::com::sun::star::lang::NoSupportException, std::exception); virtual void SAL_CALL removeIdForLocale( const OUString& ResourceID, const ::com::sun::star::lang::Locale& locale ) throw (::com::sun::star::resource::MissingResourceException, ::com::sun::star::uno::RuntimeException, - ::com::sun::star::lang::NoSupportException); + ::com::sun::star::lang::NoSupportException, std::exception); virtual void SAL_CALL newLocale( const ::com::sun::star::lang::Locale& locale ) throw (::com::sun::star::container::ElementExistException, ::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException); + ::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL removeLocale( const ::com::sun::star::lang::Locale& locale ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, - ::com::sun::star::lang::NoSupportException); + ::com::sun::star::lang::NoSupportException, std::exception); virtual ::sal_Int32 SAL_CALL getUniqueNumericId( ) throw (::com::sun::star::lang::NoSupportException, - ::com::sun::star::uno::RuntimeException); + ::com::sun::star::uno::RuntimeException, std::exception); // XStringResourcePersistence virtual void SAL_CALL store( ) throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::Exception, - ::com::sun::star::uno::RuntimeException); + ::com::sun::star::uno::RuntimeException, std::exception); virtual ::sal_Bool SAL_CALL isModified( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL setComment( const OUString& Comment ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL storeToStorage ( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& Storage, const OUString& NameBase, const OUString& Comment ) - throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL storeToURL( const OUString& URL, const OUString& NameBase, const OUString& Comment, const ::com::sun::star::uno::Reference < ::com::sun::star::task::XInteractionHandler >& Handler ) - throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception); virtual ::com::sun::star::uno::Sequence< ::sal_Int8 > SAL_CALL exportBinary( ) - throw (::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL importBinary( const ::com::sun::star::uno::Sequence< ::sal_Int8 >& Data ) - throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception); // XStringResourceWithLocation virtual void SAL_CALL storeAsURL( const OUString& URL ) - throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception); virtual void SAL_CALL setURL( const OUString& URL ) - throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); + throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception); }; diff --git a/scripting/source/vbaevents/eventhelper.cxx b/scripting/source/vbaevents/eventhelper.cxx index ecae5e034c3e..48a563109077 100644 --- a/scripting/source/vbaevents/eventhelper.cxx +++ b/scripting/source/vbaevents/eventhelper.cxx @@ -467,32 +467,32 @@ public: ReadOnlyEventsNameContainer( const Sequence< OUString >& eventMethods, const OUString& sCodeName ); // XNameContainer - virtual void SAL_CALL insertByName( const OUString&, const Any& ) throw (lang::IllegalArgumentException, container::ElementExistException, lang::WrappedTargetException, RuntimeException) + virtual void SAL_CALL insertByName( const OUString&, const Any& ) throw (lang::IllegalArgumentException, container::ElementExistException, lang::WrappedTargetException, RuntimeException, std::exception) { throw RuntimeException("ReadOnly container", Reference< XInterface >() ); } - virtual void SAL_CALL removeByName( const OUString& ) throw (::com::sun::star::container::NoSuchElementException, lang::WrappedTargetException, RuntimeException) + virtual void SAL_CALL removeByName( const OUString& ) throw (::com::sun::star::container::NoSuchElementException, lang::WrappedTargetException, RuntimeException, std::exception) { throw RuntimeException("ReadOnly container", Reference< XInterface >() ); } // XNameReplace - virtual void SAL_CALL replaceByName( const OUString&, const Any& ) throw (lang::IllegalArgumentException, container::NoSuchElementException, lang::WrappedTargetException, RuntimeException) + virtual void SAL_CALL replaceByName( const OUString&, const Any& ) throw (lang::IllegalArgumentException, container::NoSuchElementException, lang::WrappedTargetException, RuntimeException, std::exception) { throw RuntimeException("ReadOnly container", Reference< XInterface >() ); } // XNameAccess - virtual Any SAL_CALL getByName( const OUString& aName ) throw (container::NoSuchElementException, lang::WrappedTargetException, RuntimeException); - virtual Sequence< OUString > SAL_CALL getElementNames( ) throw (RuntimeException); - virtual ::sal_Bool SAL_CALL hasByName( const OUString& aName ) throw (RuntimeException); + virtual Any SAL_CALL getByName( const OUString& aName ) throw (container::NoSuchElementException, lang::WrappedTargetException, RuntimeException, std::exception); + virtual Sequence< OUString > SAL_CALL getElementNames( ) throw (RuntimeException, std::exception); + virtual ::sal_Bool SAL_CALL hasByName( const OUString& aName ) throw (RuntimeException, std::exception); // XElementAccess - virtual Type SAL_CALL getElementType( ) throw (RuntimeException) + virtual Type SAL_CALL getElementType( ) throw (RuntimeException, std::exception) { return getCppuType(static_cast< const OUString * >(0) ); } - virtual ::sal_Bool SAL_CALL hasElements( ) throw (RuntimeException) + virtual ::sal_Bool SAL_CALL hasElements( ) throw (RuntimeException, std::exception) { return ( ( m_hEvents.size() > 0 ? sal_True : sal_False ) ); } private: @@ -519,7 +519,7 @@ ReadOnlyEventsNameContainer::ReadOnlyEventsNameContainer( const Sequence< OUStri } Any SAL_CALL -ReadOnlyEventsNameContainer::getByName( const OUString& aName ) throw (container::NoSuchElementException, lang::WrappedTargetException, RuntimeException){ +ReadOnlyEventsNameContainer::getByName( const OUString& aName ) throw (container::NoSuchElementException, lang::WrappedTargetException, RuntimeException, std::exception){ EventSupplierHash::const_iterator it = m_hEvents.find( aName ); if ( it == m_hEvents.end() ) throw container::NoSuchElementException(); @@ -527,7 +527,7 @@ ReadOnlyEventsNameContainer::getByName( const OUString& aName ) throw (container } Sequence< OUString > SAL_CALL -ReadOnlyEventsNameContainer::getElementNames( ) throw (RuntimeException) +ReadOnlyEventsNameContainer::getElementNames( ) throw (RuntimeException, std::exception) { Sequence< OUString > names(m_hEvents.size()); OUString* pDest = names.getArray(); @@ -539,7 +539,7 @@ ReadOnlyEventsNameContainer::getElementNames( ) throw (RuntimeException) } sal_Bool SAL_CALL -ReadOnlyEventsNameContainer::hasByName( const OUString& aName ) throw (RuntimeException) +ReadOnlyEventsNameContainer::hasByName( const OUString& aName ) throw (RuntimeException, std::exception) { EventSupplierHash::const_iterator it = m_hEvents.find( aName ); if ( it == m_hEvents.end() ) @@ -556,7 +556,7 @@ public: { m_xNameContainer = new ReadOnlyEventsNameContainer( eventMethods, sCodeName ); } // XScriptEventSupplier - virtual Reference< container::XNameContainer > SAL_CALL getEvents( ) throw (RuntimeException){ return m_xNameContainer; } + virtual Reference< container::XNameContainer > SAL_CALL getEvents( ) throw (RuntimeException, std::exception){ return m_xNameContainer; } private: Reference< container::XNameContainer > m_xNameContainer; }; @@ -576,25 +576,25 @@ class EventListener : public EventListener_BASE public: EventListener( const Reference< XComponentContext >& rxContext ); // XEventListener - virtual void SAL_CALL disposing(const lang::EventObject& Source) throw( RuntimeException ); + virtual void SAL_CALL disposing(const lang::EventObject& Source) throw( RuntimeException, std::exception ); using cppu::OPropertySetHelper::disposing; // XScriptListener - virtual void SAL_CALL firing(const ScriptEvent& evt) throw(RuntimeException); - virtual Any SAL_CALL approveFiring(const ScriptEvent& evt) throw(reflection::InvocationTargetException, RuntimeException); + virtual void SAL_CALL firing(const ScriptEvent& evt) throw(RuntimeException, std::exception); + virtual Any SAL_CALL approveFiring(const ScriptEvent& evt) throw(reflection::InvocationTargetException, RuntimeException, std::exception); // XCloseListener - virtual void SAL_CALL queryClosing( const lang::EventObject& Source, ::sal_Bool GetsOwnership ) throw (util::CloseVetoException, uno::RuntimeException); - virtual void SAL_CALL notifyClosing( const lang::EventObject& Source ) throw (uno::RuntimeException); + virtual void SAL_CALL queryClosing( const lang::EventObject& Source, ::sal_Bool GetsOwnership ) throw (util::CloseVetoException, uno::RuntimeException, std::exception); + virtual void SAL_CALL notifyClosing( const lang::EventObject& Source ) throw (uno::RuntimeException, std::exception); // XPropertySet - virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw (::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw (::com::sun::star::uno::RuntimeException, std::exception); // XInitialization - virtual void SAL_CALL initialize( const Sequence< Any >& aArguments ) throw (Exception, RuntimeException); + virtual void SAL_CALL initialize( const Sequence< Any >& aArguments ) throw (Exception, RuntimeException, std::exception); // XInterface DECLARE_XINTERFACE() // XTypeProvider DECLARE_XTYPEPROVIDER() - virtual void SAL_CALL setFastPropertyValue( sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue ) 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) + virtual void SAL_CALL setFastPropertyValue( sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue ) 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) { if ( nHandle == EVENTLSTNR_PROPERTY_ID_MODEL ) { @@ -676,14 +676,14 @@ EventListener::setShellFromModel() //XEventListener void -EventListener::disposing(const lang::EventObject&) throw( RuntimeException ) +EventListener::disposing(const lang::EventObject&) throw( RuntimeException, std::exception ) { } //XScriptListener void SAL_CALL -EventListener::firing(const ScriptEvent& evt) throw(RuntimeException) +EventListener::firing(const ScriptEvent& evt) throw(RuntimeException, std::exception) { #if ASYNC // needs some logic to check if the event handler is oneway or not @@ -719,7 +719,7 @@ IMPL_LINK( EventListener, OnAsyncScriptEvent, ScriptEvent*, _pEvent ) #endif Any SAL_CALL -EventListener::approveFiring(const ScriptEvent& evt) throw(reflection::InvocationTargetException, RuntimeException) +EventListener::approveFiring(const ScriptEvent& evt) throw(reflection::InvocationTargetException, RuntimeException, std::exception) { Any ret; firing_Impl( evt, &ret ); @@ -728,13 +728,13 @@ EventListener::approveFiring(const ScriptEvent& evt) throw(reflection::Invocatio // XCloseListener void SAL_CALL -EventListener::queryClosing( const lang::EventObject& /*Source*/, ::sal_Bool /*GetsOwnership*/ ) throw (util::CloseVetoException, uno::RuntimeException) +EventListener::queryClosing( const lang::EventObject& /*Source*/, ::sal_Bool /*GetsOwnership*/ ) throw (util::CloseVetoException, uno::RuntimeException, std::exception) { //Nothing to do } void SAL_CALL -EventListener::notifyClosing( const lang::EventObject& /*Source*/ ) throw (uno::RuntimeException) +EventListener::notifyClosing( const lang::EventObject& /*Source*/ ) throw (uno::RuntimeException, std::exception) { m_bDocClosed = true; uno::Reference< util::XCloseBroadcaster > xCloseBroadcaster( m_xModel, uno::UNO_QUERY ); @@ -746,7 +746,7 @@ EventListener::notifyClosing( const lang::EventObject& /*Source*/ ) throw (uno:: // XInitialization void SAL_CALL -EventListener::initialize( const Sequence< Any >& aArguments ) throw (Exception, RuntimeException) +EventListener::initialize( const Sequence< Any >& aArguments ) throw (Exception, RuntimeException, std::exception) { if ( aArguments.getLength() == 1 ) aArguments[0] >>= m_xModel; @@ -781,7 +781,7 @@ EventListener::createArrayHelper( ) const // XPropertySet Reference< beans::XPropertySetInfo > -EventListener::getPropertySetInfo( ) throw (RuntimeException) +EventListener::getPropertySetInfo( ) throw (RuntimeException, std::exception) { Reference< beans::XPropertySetInfo > xInfo( createPropertySetInfo( getInfoHelper() ) ); return xInfo; @@ -1024,8 +1024,8 @@ public: VBAToOOEventDescGen( const Reference< XComponentContext >& rxContext ); // XVBAToOOEventDescGen - virtual Sequence< ScriptEventDescriptor > SAL_CALL getEventDescriptions( const OUString& sCtrlServiceName, const OUString& sCodeName ) throw (RuntimeException); - virtual Reference< XScriptEventsSupplier > SAL_CALL getEventSupplier( const Reference< XInterface >& xControl, const OUString& sCodeName ) throw (::com::sun::star::uno::RuntimeException); + virtual Sequence< ScriptEventDescriptor > SAL_CALL getEventDescriptions( const OUString& sCtrlServiceName, const OUString& sCodeName ) throw (RuntimeException, std::exception); + virtual Reference< XScriptEventsSupplier > SAL_CALL getEventSupplier( const Reference< XInterface >& xControl, const OUString& sCodeName ) throw (::com::sun::star::uno::RuntimeException, std::exception); private: Reference< XComponentContext > m_xContext; @@ -1034,14 +1034,14 @@ private: VBAToOOEventDescGen::VBAToOOEventDescGen( const Reference< XComponentContext >& rxContext ):m_xContext( rxContext ) {} Sequence< ScriptEventDescriptor > SAL_CALL -VBAToOOEventDescGen::getEventDescriptions( const OUString& sCntrlServiceName, const OUString& sCodeName ) throw (RuntimeException) +VBAToOOEventDescGen::getEventDescriptions( const OUString& sCntrlServiceName, const OUString& sCodeName ) throw (RuntimeException, std::exception) { ScriptEventHelper evntHelper( sCntrlServiceName ); return evntHelper.createEvents( sCodeName ); } Reference< XScriptEventsSupplier > SAL_CALL -VBAToOOEventDescGen::getEventSupplier( const Reference< XInterface >& xControl, const OUString& sCodeName ) throw (::com::sun::star::uno::RuntimeException) +VBAToOOEventDescGen::getEventSupplier( const Reference< XInterface >& xControl, const OUString& sCodeName ) throw (::com::sun::star::uno::RuntimeException, std::exception) { ScriptEventHelper evntHelper( xControl ); Reference< XScriptEventsSupplier > xSupplier = |