[Libreoffice-commits] core.git: sw/inc sw/source
Stephan Bergmann
sbergman at redhat.com
Fri Mar 22 11:12:48 PDT 2013
sw/inc/unotextcursor.hxx | 22 +++++++++++++++++-----
sw/source/core/unocore/unoobj.cxx | 7 +++++++
2 files changed, 24 insertions(+), 5 deletions(-)
New commits:
commit 8d68b885b021a60af0fd199a167cbaeac1f15116
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Mar 22 19:12:21 2013 +0100
Looser throw specifiers
Change-Id: I671d5d6459a3e1305c3d7a5ff21b63a5f6d0a289
diff --git a/sw/inc/unotextcursor.hxx b/sw/inc/unotextcursor.hxx
index d0b0dde..93c1bcf 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 91b30f5..050b9cb 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");
}
More information about the Libreoffice-commits
mailing list