summaryrefslogtreecommitdiff
path: root/lingucomponent/source/spellcheck/spell
diff options
context:
space:
mode:
Diffstat (limited to 'lingucomponent/source/spellcheck/spell')
-rw-r--r--lingucomponent/source/spellcheck/spell/sspellimp.cxx15
-rw-r--r--lingucomponent/source/spellcheck/spell/sspellimp.hxx28
2 files changed, 14 insertions, 29 deletions
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
index d93b093bb465..bb370e144c93 100644
--- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx
+++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
@@ -112,7 +112,6 @@ PropertyHelper_Spelling & SpellChecker::GetPropHelper_Impl()
}
Sequence< Locale > SAL_CALL SpellChecker::getLocales()
- throw(RuntimeException, std::exception)
{
MutexGuard aGuard( GetLinguMutex() );
@@ -256,7 +255,6 @@ Sequence< Locale > SAL_CALL SpellChecker::getLocales()
}
sal_Bool SAL_CALL SpellChecker::hasLocale(const Locale& rLocale)
- throw(RuntimeException, std::exception)
{
MutexGuard aGuard( GetLinguMutex() );
@@ -409,7 +407,6 @@ sal_Int16 SpellChecker::GetSpellFailure(const OUString &rWord, const Locale &rLo
sal_Bool SAL_CALL SpellChecker::isValid( const OUString& rWord, const Locale& rLocale,
const PropertyValues& rProperties )
- throw(IllegalArgumentException, RuntimeException, std::exception)
{
MutexGuard aGuard( GetLinguMutex() );
@@ -535,7 +532,6 @@ Reference< XSpellAlternatives >
Reference< XSpellAlternatives > SAL_CALL SpellChecker::spell(
const OUString& rWord, const Locale& rLocale,
const PropertyValues& rProperties )
- throw(IllegalArgumentException, RuntimeException, std::exception)
{
MutexGuard aGuard( GetLinguMutex() );
@@ -556,7 +552,6 @@ Reference< XSpellAlternatives > SAL_CALL SpellChecker::spell(
/// @throws Exception
Reference< XInterface > SAL_CALL SpellChecker_CreateInstance(
const Reference< XMultiServiceFactory > & /*rSMgr*/ )
- throw(Exception)
{
Reference< XInterface > xService = static_cast<cppu::OWeakObject*>(new SpellChecker);
@@ -565,7 +560,6 @@ Reference< XInterface > SAL_CALL SpellChecker_CreateInstance(
sal_Bool SAL_CALL SpellChecker::addLinguServiceEventListener(
const Reference< XLinguServiceEventListener >& rxLstnr )
- throw(RuntimeException, std::exception)
{
MutexGuard aGuard( GetLinguMutex() );
@@ -579,7 +573,6 @@ sal_Bool SAL_CALL SpellChecker::addLinguServiceEventListener(
sal_Bool SAL_CALL SpellChecker::removeLinguServiceEventListener(
const Reference< XLinguServiceEventListener >& rxLstnr )
- throw(RuntimeException, std::exception)
{
MutexGuard aGuard( GetLinguMutex() );
@@ -592,13 +585,11 @@ sal_Bool SAL_CALL SpellChecker::removeLinguServiceEventListener(
}
OUString SAL_CALL SpellChecker::getServiceDisplayName( const Locale& /*rLocale*/ )
- throw(RuntimeException, std::exception)
{
return OUString( "Hunspell SpellChecker" );
}
void SAL_CALL SpellChecker::initialize( const Sequence< Any >& rArguments )
- throw(Exception, RuntimeException, std::exception)
{
MutexGuard aGuard( GetLinguMutex() );
@@ -625,7 +616,6 @@ void SAL_CALL SpellChecker::initialize( const Sequence< Any >& rArguments )
}
void SAL_CALL SpellChecker::dispose()
- throw(RuntimeException, std::exception)
{
MutexGuard aGuard( GetLinguMutex() );
@@ -644,7 +634,6 @@ void SAL_CALL SpellChecker::dispose()
}
void SAL_CALL SpellChecker::addEventListener( const Reference< XEventListener >& rxListener )
- throw(RuntimeException, std::exception)
{
MutexGuard aGuard( GetLinguMutex() );
@@ -653,7 +642,6 @@ void SAL_CALL SpellChecker::addEventListener( const Reference< XEventListener >&
}
void SAL_CALL SpellChecker::removeEventListener( const Reference< XEventListener >& rxListener )
- throw(RuntimeException, std::exception)
{
MutexGuard aGuard( GetLinguMutex() );
@@ -663,19 +651,16 @@ void SAL_CALL SpellChecker::removeEventListener( const Reference< XEventListener
// Service specific part
OUString SAL_CALL SpellChecker::getImplementationName()
- throw(RuntimeException, std::exception)
{
return getImplementationName_Static();
}
sal_Bool SAL_CALL SpellChecker::supportsService( const OUString& ServiceName )
- throw(RuntimeException, std::exception)
{
return cppu::supportsService(this, ServiceName);
}
Sequence< OUString > SAL_CALL SpellChecker::getSupportedServiceNames()
- throw(RuntimeException, std::exception)
{
return getSupportedServiceNames_Static();
}
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.hxx b/lingucomponent/source/spellcheck/spell/sspellimp.hxx
index 50f9578bf3d4..a1320bc6f597 100644
--- a/lingucomponent/source/spellcheck/spell/sspellimp.hxx
+++ b/lingucomponent/source/spellcheck/spell/sspellimp.hxx
@@ -82,32 +82,32 @@ public:
virtual ~SpellChecker() override;
// XSupportedLocales (for XSpellChecker)
- virtual Sequence< Locale > SAL_CALL getLocales() throw(RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL hasLocale( const Locale& rLocale ) throw(RuntimeException, std::exception) override;
+ virtual Sequence< Locale > SAL_CALL getLocales() override;
+ virtual sal_Bool SAL_CALL hasLocale( const Locale& rLocale ) override;
// XSpellChecker
- virtual sal_Bool SAL_CALL isValid( const OUString& rWord, const Locale& rLocale, const PropertyValues& rProperties ) throw(IllegalArgumentException, RuntimeException, std::exception) override;
- virtual Reference< XSpellAlternatives > SAL_CALL spell( const OUString& rWord, const Locale& rLocale, const PropertyValues& rProperties ) throw(IllegalArgumentException, RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL isValid( const OUString& rWord, const Locale& rLocale, const PropertyValues& rProperties ) override;
+ virtual Reference< XSpellAlternatives > SAL_CALL spell( const OUString& rWord, const Locale& rLocale, const PropertyValues& rProperties ) override;
// XLinguServiceEventBroadcaster
- virtual sal_Bool SAL_CALL addLinguServiceEventListener( const Reference< XLinguServiceEventListener >& rxLstnr ) throw(RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL removeLinguServiceEventListener( const Reference< XLinguServiceEventListener >& rxLstnr ) throw(RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL addLinguServiceEventListener( const Reference< XLinguServiceEventListener >& rxLstnr ) override;
+ virtual sal_Bool SAL_CALL removeLinguServiceEventListener( const Reference< XLinguServiceEventListener >& rxLstnr ) override;
// XServiceDisplayName
- virtual OUString SAL_CALL getServiceDisplayName( const Locale& rLocale ) throw(RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getServiceDisplayName( const Locale& rLocale ) override;
// XInitialization
- virtual void SAL_CALL initialize( const Sequence< Any >& rArguments ) throw(Exception, RuntimeException, std::exception) override;
+ virtual void SAL_CALL initialize( const Sequence< Any >& rArguments ) override;
// XComponent
- virtual void SAL_CALL dispose() throw(RuntimeException, std::exception) override;
- virtual void SAL_CALL addEventListener( const Reference< XEventListener >& rxListener ) throw(RuntimeException, std::exception) override;
- virtual void SAL_CALL removeEventListener( const Reference< XEventListener >& rxListener ) throw(RuntimeException, std::exception) override;
+ virtual void SAL_CALL dispose() override;
+ virtual void SAL_CALL addEventListener( const Reference< XEventListener >& rxListener ) override;
+ virtual void SAL_CALL removeEventListener( const Reference< XEventListener >& rxListener ) override;
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName() throw(RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& rServiceName ) throw(RuntimeException, std::exception) override;
- virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getImplementationName() override;
+ virtual sal_Bool SAL_CALL supportsService( const OUString& rServiceName ) override;
+ virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
static inline OUString getImplementationName_Static() throw();
static Sequence< OUString > getSupportedServiceNames_Static() throw();