diff options
Diffstat (limited to 'linguistic/source/lngopt.hxx')
-rw-r--r-- | linguistic/source/lngopt.hxx | 110 |
1 files changed, 55 insertions, 55 deletions
diff --git a/linguistic/source/lngopt.hxx b/linguistic/source/lngopt.hxx index 5eb5b92925af..1efed14d4dc1 100644 --- a/linguistic/source/lngopt.hxx +++ b/linguistic/source/lngopt.hxx @@ -90,115 +90,115 @@ class LinguProps : void launchEvent( const css::beans::PropertyChangeEvent &rEvt ) const; /// @throws css::uno::RuntimeException - bool getPropertyBool(const OUString& aPropertyName) throw (css::uno::RuntimeException); + bool getPropertyBool(const OUString& aPropertyName); /// @throws css::uno::RuntimeException - sal_Int16 getPropertyInt16(const OUString& aPropertyName) throw (css::uno::RuntimeException); + sal_Int16 getPropertyInt16(const OUString& aPropertyName); /// @throws css::uno::RuntimeException - css::lang::Locale getPropertyLocale(const OUString& aPropertyName) throw (css::uno::RuntimeException); + css::lang::Locale getPropertyLocale(const OUString& aPropertyName); /// @throws css::uno::RuntimeException - void setProperty(const OUString& aPropertyName, bool p1) throw (css::uno::RuntimeException) + void setProperty(const OUString& aPropertyName, bool p1) { setPropertyValue( aPropertyName, css::uno::Any(p1) ); } /// @throws css::uno::RuntimeException - void setProperty(const OUString& aPropertyName, sal_Int16 p1) throw (css::uno::RuntimeException) + void setProperty(const OUString& aPropertyName, sal_Int16 p1) { setPropertyValue( aPropertyName, css::uno::Any(p1) ); } /// @throws css::uno::RuntimeException - void setProperty(const OUString& aPropertyName, css::lang::Locale p1) throw (css::uno::RuntimeException) + void setProperty(const OUString& aPropertyName, css::lang::Locale p1) { setPropertyValue( aPropertyName, css::uno::Any(p1) ); } public: LinguProps(); - virtual sal_Bool SAL_CALL getIsUseDictionaryList() throw (css::uno::RuntimeException, std::exception) override + virtual sal_Bool SAL_CALL getIsUseDictionaryList() override { return getPropertyBool(UPN_IS_USE_DICTIONARY_LIST); } - virtual void SAL_CALL setIsUseDictionaryList(sal_Bool p1) throw (css::uno::RuntimeException, std::exception) override + virtual void SAL_CALL setIsUseDictionaryList(sal_Bool p1) override { setProperty(UPN_IS_USE_DICTIONARY_LIST, (bool) p1); } - virtual sal_Bool SAL_CALL getIsIgnoreControlCharacters() throw (css::uno::RuntimeException, std::exception) override + virtual sal_Bool SAL_CALL getIsIgnoreControlCharacters() override { return getPropertyBool(UPN_IS_IGNORE_CONTROL_CHARACTERS); } - virtual void SAL_CALL setIsIgnoreControlCharacters(sal_Bool p1) throw (css::uno::RuntimeException, std::exception) override + virtual void SAL_CALL setIsIgnoreControlCharacters(sal_Bool p1) override { setProperty(UPN_IS_IGNORE_CONTROL_CHARACTERS, (bool) p1); } - virtual sal_Bool SAL_CALL getIsSpellUpperCase() throw (css::uno::RuntimeException, std::exception) override + virtual sal_Bool SAL_CALL getIsSpellUpperCase() override { return getPropertyBool(UPN_IS_SPELL_UPPER_CASE); } - virtual void SAL_CALL setIsSpellUpperCase(sal_Bool p1) throw (css::uno::RuntimeException, std::exception) override + virtual void SAL_CALL setIsSpellUpperCase(sal_Bool p1) override { setProperty(UPN_IS_SPELL_UPPER_CASE, (bool) p1); } - virtual sal_Bool SAL_CALL getIsSpellWithDigits() throw (css::uno::RuntimeException, std::exception) override + virtual sal_Bool SAL_CALL getIsSpellWithDigits() override { return getPropertyBool(UPN_IS_SPELL_WITH_DIGITS); } - virtual void SAL_CALL setIsSpellWithDigits(sal_Bool p1) throw (css::uno::RuntimeException, std::exception) override + virtual void SAL_CALL setIsSpellWithDigits(sal_Bool p1) override { setProperty(UPN_IS_SPELL_WITH_DIGITS, (bool) p1); } - virtual sal_Bool SAL_CALL getIsSpellCapitalization() throw (css::uno::RuntimeException, std::exception) override + virtual sal_Bool SAL_CALL getIsSpellCapitalization() override { return getPropertyBool(UPN_IS_SPELL_CAPITALIZATION); } - virtual void SAL_CALL setIsSpellCapitalization(sal_Bool p1) throw (css::uno::RuntimeException, std::exception) override + virtual void SAL_CALL setIsSpellCapitalization(sal_Bool p1) override { setProperty(UPN_IS_SPELL_CAPITALIZATION, (bool) p1); } - virtual sal_Int16 SAL_CALL getHyphMinLeading() throw (css::uno::RuntimeException, std::exception) override + virtual sal_Int16 SAL_CALL getHyphMinLeading() override { return getPropertyInt16(UPN_HYPH_MIN_LEADING); } - virtual void SAL_CALL setHyphMinLeading(sal_Int16 p1) throw (css::uno::RuntimeException, std::exception) override + virtual void SAL_CALL setHyphMinLeading(sal_Int16 p1) override { setProperty(UPN_HYPH_MIN_LEADING, p1); } - virtual sal_Int16 SAL_CALL getHyphMinTrailing() throw (css::uno::RuntimeException, std::exception) override + virtual sal_Int16 SAL_CALL getHyphMinTrailing() override { return getPropertyInt16(UPN_HYPH_MIN_TRAILING); } - virtual void SAL_CALL setHyphMinTrailing(sal_Int16 p1) throw (css::uno::RuntimeException, std::exception) override + virtual void SAL_CALL setHyphMinTrailing(sal_Int16 p1) override { setProperty(UPN_HYPH_MIN_TRAILING, p1); } - virtual sal_Int16 SAL_CALL getHyphMinWordLength() throw (css::uno::RuntimeException, std::exception) override + virtual sal_Int16 SAL_CALL getHyphMinWordLength() override { return getPropertyInt16(UPN_HYPH_MIN_WORD_LENGTH); } - virtual void SAL_CALL setHyphMinWordLength(sal_Int16 p1) throw (css::uno::RuntimeException, std::exception) override + virtual void SAL_CALL setHyphMinWordLength(sal_Int16 p1) override { setProperty(UPN_HYPH_MIN_WORD_LENGTH, p1); } - virtual css::lang::Locale SAL_CALL getDefaultLocale() throw (css::uno::RuntimeException, std::exception) override + virtual css::lang::Locale SAL_CALL getDefaultLocale() override { return getPropertyLocale(UPN_DEFAULT_LOCALE); } - virtual void SAL_CALL setDefaultLocale(const css::lang::Locale& p1) throw (css::uno::RuntimeException, std::exception) override + virtual void SAL_CALL setDefaultLocale(const css::lang::Locale& p1) override { setProperty(UPN_DEFAULT_LOCALE, p1); } - virtual sal_Bool SAL_CALL getIsHyphAuto() throw (css::uno::RuntimeException, std::exception) override + virtual sal_Bool SAL_CALL getIsHyphAuto() override { return getPropertyBool(UPN_IS_HYPH_AUTO); } - virtual void SAL_CALL setIsHyphAuto(sal_Bool p1) throw (css::uno::RuntimeException, std::exception) override + virtual void SAL_CALL setIsHyphAuto(sal_Bool p1) override { setProperty(UPN_IS_HYPH_AUTO, (bool) p1); } - virtual sal_Bool SAL_CALL getIsHyphSpecial() throw (css::uno::RuntimeException, std::exception) override + virtual sal_Bool SAL_CALL getIsHyphSpecial() override { return getPropertyBool(UPN_IS_HYPH_SPECIAL); } - virtual void SAL_CALL setIsHyphSpecial(sal_Bool p1) throw (css::uno::RuntimeException, std::exception) override + virtual void SAL_CALL setIsHyphSpecial(sal_Bool p1) override { setProperty(UPN_IS_HYPH_SPECIAL, (bool) p1); } - virtual sal_Bool SAL_CALL getIsSpellAuto() throw (css::uno::RuntimeException, std::exception) override + virtual sal_Bool SAL_CALL getIsSpellAuto() override { return getPropertyBool(UPN_IS_SPELL_AUTO); } - virtual void SAL_CALL setIsSpellAuto(sal_Bool p1) throw (css::uno::RuntimeException, std::exception) override + virtual void SAL_CALL setIsSpellAuto(sal_Bool p1) override { setProperty(UPN_IS_SPELL_AUTO, (bool) p1); } - virtual sal_Bool SAL_CALL getIsSpellSpecial() throw (css::uno::RuntimeException, std::exception) override + virtual sal_Bool SAL_CALL getIsSpellSpecial() override { return getPropertyBool(UPN_IS_SPELL_SPECIAL); } - virtual void SAL_CALL setIsSpellSpecial(sal_Bool p1) throw (css::uno::RuntimeException, std::exception) override + virtual void SAL_CALL setIsSpellSpecial(sal_Bool p1) override { setProperty(UPN_IS_SPELL_SPECIAL, (bool) p1); } - virtual sal_Bool SAL_CALL getIsWrapReverse() throw (css::uno::RuntimeException, std::exception) override + virtual sal_Bool SAL_CALL getIsWrapReverse() override { return getPropertyBool(UPN_IS_WRAP_REVERSE); } - virtual void SAL_CALL setIsWrapReverse(sal_Bool p1) throw (css::uno::RuntimeException, std::exception) override + virtual void SAL_CALL setIsWrapReverse(sal_Bool p1) override { setProperty(UPN_IS_WRAP_REVERSE, (bool) p1); } - virtual css::lang::Locale SAL_CALL getDefaultLocale_CJK() throw (css::uno::RuntimeException, std::exception) override + virtual css::lang::Locale SAL_CALL getDefaultLocale_CJK() override { return getPropertyLocale(UPN_DEFAULT_LOCALE_CJK); } - virtual void SAL_CALL setDefaultLocale_CJK(const css::lang::Locale& p1) throw (css::uno::RuntimeException, std::exception) override + virtual void SAL_CALL setDefaultLocale_CJK(const css::lang::Locale& p1) override { setProperty(UPN_DEFAULT_LOCALE_CJK, p1); } - virtual css::lang::Locale SAL_CALL getDefaultLocale_CTL() throw (css::uno::RuntimeException, std::exception) override + virtual css::lang::Locale SAL_CALL getDefaultLocale_CTL() override { return getPropertyLocale(UPN_DEFAULT_LOCALE_CTL); } - virtual void SAL_CALL setDefaultLocale_CTL(const css::lang::Locale& p1) throw (css::uno::RuntimeException, std::exception) override + virtual void SAL_CALL setDefaultLocale_CTL(const css::lang::Locale& p1) override { setProperty(UPN_DEFAULT_LOCALE_CTL, p1); } // XPropertySet - virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() throw(css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) throw(css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override; - virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& rxListener ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& rxListener ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& rxListener ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& rxListener ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override; + virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override; + virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override; + virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override; + virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& rxListener ) override; + virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener >& rxListener ) override; + virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& rxListener ) override; + virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener >& rxListener ) override; // XFastPropertySet - virtual void SAL_CALL setFastPropertyValue( sal_Int32 nHandle, const css::uno::Any& aValue ) throw(css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override; - virtual css::uno::Any SAL_CALL getFastPropertyValue( sal_Int32 nHandle ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL setFastPropertyValue( sal_Int32 nHandle, const css::uno::Any& aValue ) override; + virtual css::uno::Any SAL_CALL getFastPropertyValue( sal_Int32 nHandle ) override; // XPropertyAccess - virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getPropertyValues() throw(css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL setPropertyValues( const css::uno::Sequence< css::beans::PropertyValue >& aProps ) throw(css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override; + virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getPropertyValues() override; + virtual void SAL_CALL setPropertyValues( const css::uno::Sequence< css::beans::PropertyValue >& aProps ) override; // XComponent - virtual void SAL_CALL dispose() throw(css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL addEventListener( const css::uno::Reference< css::lang::XEventListener >& rxListener ) throw(css::uno::RuntimeException, std::exception) override; - virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::lang::XEventListener >& rxListener ) throw(css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL dispose() override; + virtual void SAL_CALL addEventListener( const css::uno::Reference< css::lang::XEventListener >& rxListener ) override; + virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::lang::XEventListener >& rxListener ) override; // XServiceInfo - virtual OUString SAL_CALL getImplementationName() throw(css::uno::RuntimeException, std::exception) override; - virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw(css::uno::RuntimeException, std::exception) override; - virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(css::uno::RuntimeException, std::exception) override; + virtual OUString SAL_CALL getImplementationName() override; + virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override; + virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; static inline OUString getImplementationName_Static() throw(); |