summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--oovbaapi/ooo/vba/word/XSelection.idl2
-rw-r--r--sw/source/ui/vba/vbaselection.cxx3
-rw-r--r--sw/source/ui/vba/vbaselection.hxx3
3 files changed, 5 insertions, 3 deletions
diff --git a/oovbaapi/ooo/vba/word/XSelection.idl b/oovbaapi/ooo/vba/word/XSelection.idl
index 9fee2cfcfebe..3706acb61f18 100644
--- a/oovbaapi/ooo/vba/word/XSelection.idl
+++ b/oovbaapi/ooo/vba/word/XSelection.idl
@@ -61,7 +61,7 @@ interface XSelection
void InsertParagraphBefore();
void InsertParagraphAfter();
void TypeBackspace();
- XRange GoTo( [in] any What, [in] any Which, [in] any Count, [in] any Name );
+ XRange GoTo( [in] any What, [in] any Which, [in] any Count, [in] any Name ) raises (com::sun::star::script::BasicErrorException);
any Information( [in] long Type );
void InsertBreak( [in] any Type );
any ShapeRange();
diff --git a/sw/source/ui/vba/vbaselection.cxx b/sw/source/ui/vba/vbaselection.cxx
index 15728fcc85e2..bba8cf7f06c5 100644
--- a/sw/source/ui/vba/vbaselection.cxx
+++ b/sw/source/ui/vba/vbaselection.cxx
@@ -552,7 +552,8 @@ SwVbaSelection::TypeBackspace() throw ( uno::RuntimeException, std::exception )
dispatchRequests( mxModel,url );
}
-uno::Reference< word::XRange > SAL_CALL SwVbaSelection::GoTo( const uno::Any& _what, const uno::Any& _which, const uno::Any& _count, const uno::Any& _name ) throw (uno::RuntimeException, std::exception)
+uno::Reference< word::XRange > SAL_CALL SwVbaSelection::GoTo( const uno::Any& _what, const uno::Any& _which, const uno::Any& _count, const uno::Any& _name )
+ throw (script::BasicErrorException, uno::RuntimeException, std::exception)
{
sal_Int32 nWhat = 0;
if( !( _what >>= nWhat ) )
diff --git a/sw/source/ui/vba/vbaselection.hxx b/sw/source/ui/vba/vbaselection.hxx
index 48eb48a6742e..abe70b36528b 100644
--- a/sw/source/ui/vba/vbaselection.hxx
+++ b/sw/source/ui/vba/vbaselection.hxx
@@ -76,7 +76,8 @@ public:
virtual void SAL_CALL setStyle( const css::uno::Any& _xStyle ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual css::uno::Reference< ooo::vba::word::XFont > SAL_CALL getFont() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL TypeBackspace() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
- virtual css::uno::Reference< ooo::vba::word::XRange > SAL_CALL GoTo( const css::uno::Any& _what, const css::uno::Any& _which, const css::uno::Any& _count, const css::uno::Any& _name ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
+ virtual css::uno::Reference< ooo::vba::word::XRange > SAL_CALL GoTo( const css::uno::Any& _what, const css::uno::Any& _which, const css::uno::Any& _count, const css::uno::Any& _name )
+ throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual ::sal_Int32 SAL_CALL getLanguageID( ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual void SAL_CALL setLanguageID( ::sal_Int32 _languageid ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
virtual css::uno::Any SAL_CALL Information( sal_Int32 _type ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;