diff options
-rw-r--r-- | offapi/com/sun/star/text/XTextPortionAppend.idl | 8 | ||||
-rw-r--r-- | sw/inc/unotext.hxx | 7 | ||||
-rw-r--r-- | sw/source/core/unocore/unotext.cxx | 4 |
3 files changed, 13 insertions, 6 deletions
diff --git a/offapi/com/sun/star/text/XTextPortionAppend.idl b/offapi/com/sun/star/text/XTextPortionAppend.idl index b15ade7dd4e3..8930ab89773d 100644 --- a/offapi/com/sun/star/text/XTextPortionAppend.idl +++ b/offapi/com/sun/star/text/XTextPortionAppend.idl @@ -22,8 +22,8 @@ #include <com/sun/star/uno/XInterface.idl> #include <com/sun/star/beans/PropertyValues.idl> #include <com/sun/star/lang/IllegalArgumentException.idl> - #include <com/sun/star/beans/UnknownPropertyException.idl> +#include <com/sun/star/beans/PropertyVetoException,idl> #include <com/sun/star/text/XTextRange.idl> @@ -51,7 +51,8 @@ interface XTextPortionAppend : com::sun::star::uno::XInterface [in] string Text, [in] com::sun::star::beans::PropertyValues CharacterAndParagraphProperties ) raises( com::sun::star::lang::IllegalArgumentException, - com::sun::star::beans::UnknownPropertyException ); + com::sun::star::beans::UnknownPropertyException, + com::sun::star::beans::PropertyVetoException ); /** inserts a new text portion to the paragraph at a given position. @@ -76,7 +77,8 @@ interface XTextPortionAppend : com::sun::star::uno::XInterface [in] com::sun::star::beans::PropertyValues CharacterAndParagraphProperties, [in] com::sun::star::text::XTextRange TextRange) raises( com::sun::star::lang::IllegalArgumentException, - com::sun::star::beans::UnknownPropertyException ); + com::sun::star::beans::UnknownPropertyException, + com::sun::star::beans::PropertyVetoException ); }; diff --git a/sw/inc/unotext.hxx b/sw/inc/unotext.hxx index d7457a4c409a..69490db383c6 100644 --- a/sw/inc/unotext.hxx +++ b/sw/inc/unotext.hxx @@ -228,8 +228,10 @@ public: const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rCharacterAndParagraphProperties) - throw (::com::sun::star::lang::IllegalArgumentException, - ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; + throw (css::lang::IllegalArgumentException, + css::beans::UnknownPropertyException, + css::beans::PropertyVetoException, + css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange > SAL_CALL @@ -243,6 +245,7 @@ public: rTextRange) throw (css::lang::IllegalArgumentException, css::beans::UnknownPropertyException, + css::beans::PropertyVetoException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE; diff --git a/sw/source/core/unocore/unotext.cxx b/sw/source/core/unocore/unotext.cxx index 4f05654080e5..029c5960fb0f 100644 --- a/sw/source/core/unocore/unotext.cxx +++ b/sw/source/core/unocore/unotext.cxx @@ -1363,6 +1363,7 @@ SwXText::insertTextPortion( rCharacterAndParagraphProperties, const uno::Reference<text::XTextRange>& xInsertPosition) throw (lang::IllegalArgumentException, beans::UnknownPropertyException, + beans::PropertyVetoException, uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; @@ -1443,7 +1444,8 @@ SwXText::appendTextPortion( const OUString& rText, const uno::Sequence< beans::PropertyValue > & rCharacterAndParagraphProperties) -throw (lang::IllegalArgumentException, uno::RuntimeException, std::exception) +throw (lang::IllegalArgumentException, beans::UnknownPropertyException, + beans::PropertyVetoException, uno::RuntimeException, std::exception) { // Right now this doesn't need a guard, as it's just calling the insert // version, that has it already. |