diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-03-22 19:12:21 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-03-22 19:12:21 +0100 |
commit | 8d68b885b021a60af0fd199a167cbaeac1f15116 (patch) | |
tree | 4c2e98355587f64f4102b2515d0835af1fd435b6 /sw | |
parent | officecfg: remove author tag from xcs files (diff) | |
download | core-8d68b885b021a60af0fd199a167cbaeac1f15116.tar.gz core-8d68b885b021a60af0fd199a167cbaeac1f15116.zip |
Looser throw specifiers
Change-Id: I671d5d6459a3e1305c3d7a5ff21b63a5f6d0a289
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/unotextcursor.hxx | 22 | ||||
-rw-r--r-- | sw/source/core/unocore/unoobj.cxx | 7 |
2 files changed, 24 insertions, 5 deletions
diff --git a/sw/inc/unotextcursor.hxx b/sw/inc/unotextcursor.hxx index d0b0dde75dd9..93c1bcf68c8a 100644 --- a/sw/inc/unotextcursor.hxx +++ b/sw/inc/unotextcursor.hxx @@ -196,17 +196,29 @@ public: // XMultiPropertySet virtual void SAL_CALL setPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, - const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues ); + const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues ) + throw ( + css::beans::PropertyVetoException, + css::lang::IllegalArgumentException, + css::lang::WrappedTargetException, css::uno::RuntimeException); + virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > SAL_CALL - getPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames ); + getPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames ) + throw (css::uno::RuntimeException); + virtual void SAL_CALL addPropertiesChangeListener( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, - const ::com::sun::star::uno::Reference< css::beans::XPropertiesChangeListener >& xListener ); + const ::com::sun::star::uno::Reference< css::beans::XPropertiesChangeListener >& xListener ) + throw (css::uno::RuntimeException); + virtual void SAL_CALL removePropertiesChangeListener( - const ::com::sun::star::uno::Reference< css::beans::XPropertiesChangeListener >& xListener ); + const ::com::sun::star::uno::Reference< css::beans::XPropertiesChangeListener >& xListener ) + throw (css::uno::RuntimeException); + virtual void SAL_CALL firePropertiesChangeEvent( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, - const ::com::sun::star::uno::Reference< css::beans::XPropertiesChangeListener >& xListener ); + const ::com::sun::star::uno::Reference< css::beans::XPropertiesChangeListener >& xListener ) + throw (css::uno::RuntimeException); // XMultiPropertyStates virtual void SAL_CALL setAllPropertiesToDefault() diff --git a/sw/source/core/unocore/unoobj.cxx b/sw/source/core/unocore/unoobj.cxx index 91b30f5cc629..050b9cbbc20c 100644 --- a/sw/source/core/unocore/unoobj.cxx +++ b/sw/source/core/unocore/unoobj.cxx @@ -2335,6 +2335,9 @@ throw (beans::UnknownPropertyException, lang::WrappedTargetException, void SAL_CALL SwXTextCursor::setPropertyValues( const uno::Sequence< ::rtl::OUString >& aPropertyNames, const uno::Sequence< uno::Any >& aValues ) + throw ( + css::beans::PropertyVetoException, css::lang::IllegalArgumentException, + css::lang::WrappedTargetException, css::uno::RuntimeException) { if( aValues.getLength() != aPropertyNames.getLength() ) { @@ -2367,6 +2370,7 @@ void SAL_CALL SwXTextCursor::setPropertyValues( uno::Sequence< uno::Any > SAL_CALL SwXTextCursor::getPropertyValues( const uno::Sequence< ::rtl::OUString >& aPropertyNames ) + throw (css::uno::RuntimeException) { // a banal implementation for now uno::Sequence< uno::Any > aValues( aPropertyNames.getLength() ); @@ -2378,11 +2382,13 @@ SwXTextCursor::getPropertyValues( const uno::Sequence< ::rtl::OUString >& aPrope void SAL_CALL SwXTextCursor::addPropertiesChangeListener( const uno::Sequence< ::rtl::OUString >& /* aPropertyNames */, const uno::Reference< css::beans::XPropertiesChangeListener >& /* xListener */ ) + throw (css::uno::RuntimeException) { OSL_FAIL("SwXTextCursor::addPropertiesChangeListener(): not implemented"); } void SAL_CALL SwXTextCursor::removePropertiesChangeListener( const uno::Reference< css::beans::XPropertiesChangeListener >& /* xListener */ ) + throw (css::uno::RuntimeException) { OSL_FAIL("SwXTextCursor::removePropertiesChangeListener(): not implemented"); } @@ -2390,6 +2396,7 @@ void SAL_CALL SwXTextCursor::removePropertiesChangeListener( void SAL_CALL SwXTextCursor::firePropertiesChangeEvent( const uno::Sequence< ::rtl::OUString >& /* aPropertyNames */, const uno::Reference< css::beans::XPropertiesChangeListener >& /* xListener */ ) + throw (css::uno::RuntimeException) { OSL_FAIL("SwXTextCursor::firePropertiesChangeEvent(): not implemented"); } |