diff options
Diffstat (limited to 'scripting/source/stringresource/stringresource.cxx')
-rw-r--r-- | scripting/source/stringresource/stringresource.cxx | 246 |
1 files changed, 123 insertions, 123 deletions
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" ); |