diff options
-rw-r--r-- | include/vbahelper/vbacollectionimpl.hxx | 2 | ||||
-rw-r--r-- | oovbaapi/ooo/vba/XCollection.idl | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbastyles.cxx | 3 | ||||
-rw-r--r-- | sw/source/ui/vba/vbastyles.hxx | 2 |
4 files changed, 5 insertions, 4 deletions
diff --git a/include/vbahelper/vbacollectionimpl.hxx b/include/vbahelper/vbacollectionimpl.hxx index f7f03c506222..2f57ab159259 100644 --- a/include/vbahelper/vbacollectionimpl.hxx +++ b/include/vbahelper/vbacollectionimpl.hxx @@ -286,7 +286,7 @@ public: return m_xIndexAccess->getCount(); } - virtual css::uno::Any SAL_CALL Item( const css::uno::Any& Index1, const css::uno::Any& /*not processed in this base class*/ ) throw (css::uno::RuntimeException) + virtual css::uno::Any SAL_CALL Item( const css::uno::Any& Index1, const css::uno::Any& /*not processed in this base class*/ ) throw (css::script::BasicErrorException, css::uno::RuntimeException) { if ( Index1.getValueTypeClass() != css::uno::TypeClass_STRING ) { diff --git a/oovbaapi/ooo/vba/XCollection.idl b/oovbaapi/ooo/vba/XCollection.idl index 781da8199646..a2d3ad24d813 100644 --- a/oovbaapi/ooo/vba/XCollection.idl +++ b/oovbaapi/ooo/vba/XCollection.idl @@ -36,7 +36,7 @@ interface XCollection [attribute, readonly] long Count; - any Item( [in] any Index1, [in] any Index2 ); + any Item( [in] any Index1, [in] any Index2 ) raises(com::sun::star::script::BasicErrorException); }; }; }; diff --git a/sw/source/ui/vba/vbastyles.cxx b/sw/source/ui/vba/vbastyles.cxx index 728e1ff1b6ea..f8ca1d4e0357 100644 --- a/sw/source/ui/vba/vbastyles.cxx +++ b/sw/source/ui/vba/vbastyles.cxx @@ -293,7 +293,8 @@ SwVbaStyles::createEnumeration() throw (uno::RuntimeException) } uno::Any SAL_CALL -SwVbaStyles::Item( const uno::Any& Index1, const uno::Any& Index2 ) throw (uno::RuntimeException) +SwVbaStyles::Item( const uno::Any& Index1, const uno::Any& Index2 ) + throw (script::BasicErrorException, uno::RuntimeException) { //handle WdBuiltinStyle sal_Int32 nIndex = 0; diff --git a/sw/source/ui/vba/vbastyles.hxx b/sw/source/ui/vba/vbastyles.hxx index b2dd38cce737..8b1ebc30da27 100644 --- a/sw/source/ui/vba/vbastyles.hxx +++ b/sw/source/ui/vba/vbastyles.hxx @@ -31,7 +31,7 @@ public: SwVbaStyles( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::frame::XModel >& xModel ) throw ( css::script::BasicErrorException, css::uno::RuntimeException ); - virtual css::uno::Any SAL_CALL Item( const css::uno::Any& Index1, const css::uno::Any& Index2 ) throw (css::uno::RuntimeException) SAL_OVERRIDE; + virtual css::uno::Any SAL_CALL Item( const css::uno::Any& Index1, const css::uno::Any& Index2 ) throw (css::script::BasicErrorException, css::uno::RuntimeException) SAL_OVERRIDE; // XEnumerationAccess virtual css::uno::Type SAL_CALL getElementType() throw (css::uno::RuntimeException) SAL_OVERRIDE; virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() throw (css::uno::RuntimeException) SAL_OVERRIDE; |