diff options
-rw-r--r-- | include/vbahelper/vbashape.hxx | 3 | ||||
-rw-r--r-- | vbahelper/source/vbahelper/vbashape.cxx | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/vbahelper/vbashape.hxx b/include/vbahelper/vbashape.hxx index b4e6f192673b..f389c2953c1e 100644 --- a/include/vbahelper/vbashape.hxx +++ b/include/vbahelper/vbashape.hxx @@ -89,7 +89,8 @@ public: virtual sal_Bool SAL_CALL getLockAnchor() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL setLockAnchor( sal_Bool _lockanchor ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual ::sal_Int32 SAL_CALL getRelativeHorizontalPosition() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; - virtual void SAL_CALL setRelativeHorizontalPosition( ::sal_Int32 _relativehorizontalposition ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual void SAL_CALL setRelativeHorizontalPosition(::sal_Int32 _relativehorizontalposition) + throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual ::sal_Int32 SAL_CALL getRelativeVerticalPosition() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL setRelativeVerticalPosition( ::sal_Int32 _relativeverticalposition ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; diff --git a/vbahelper/source/vbahelper/vbashape.cxx b/vbahelper/source/vbahelper/vbashape.cxx index 062f5613bb6e..0077ad99137c 100644 --- a/vbahelper/source/vbahelper/vbashape.cxx +++ b/vbahelper/source/vbahelper/vbashape.cxx @@ -576,7 +576,8 @@ ScVbaShape::getRelativeHorizontalPosition() throw (uno::RuntimeException, std::e } void SAL_CALL -ScVbaShape::setRelativeHorizontalPosition( ::sal_Int32 _relativehorizontalposition ) throw (uno::RuntimeException, std::exception) +ScVbaShape::setRelativeHorizontalPosition(::sal_Int32 _relativehorizontalposition) + throw (css::script::BasicErrorException, uno::RuntimeException, std::exception) { sal_Int16 nType = text::RelOrientation::PAGE_FRAME; switch( _relativehorizontalposition ) |