diff options
-rw-r--r-- | oovbaapi/ooo/vba/word/XParagraphFormat.idl | 7 | ||||
-rw-r--r-- | sw/source/ui/vba/vbaparagraphformat.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbaparagraphformat.hxx | 2 |
3 files changed, 7 insertions, 4 deletions
diff --git a/oovbaapi/ooo/vba/word/XParagraphFormat.idl b/oovbaapi/ooo/vba/word/XParagraphFormat.idl index 693eb0ce3b52..61b9478a9fa1 100644 --- a/oovbaapi/ooo/vba/word/XParagraphFormat.idl +++ b/oovbaapi/ooo/vba/word/XParagraphFormat.idl @@ -20,16 +20,19 @@ #define __ooo_vba_word_XParagraphFormat_idl__ #include <com/sun/star/uno/XInterface.idl> +#include <com/sun/star/script/BasicErrorException.idl> #include <ooo/vba/XHelperInterface.idl> - module ooo { module vba { module word { interface XParagraphFormat { interface ooo::vba::XHelperInterface; - [attribute] long Alignment; + [attribute] long Alignment + { + get raises ( com::sun::star::script::BasicErrorException ); + }; [attribute] float FirstLineIndent; [attribute] any KeepTogether; [attribute] any KeepWithNext; diff --git a/sw/source/ui/vba/vbaparagraphformat.cxx b/sw/source/ui/vba/vbaparagraphformat.cxx index 976200d9308e..6edd55aed454 100644 --- a/sw/source/ui/vba/vbaparagraphformat.cxx +++ b/sw/source/ui/vba/vbaparagraphformat.cxx @@ -44,7 +44,7 @@ SwVbaParagraphFormat::~SwVbaParagraphFormat() { } -sal_Int32 SAL_CALL SwVbaParagraphFormat::getAlignment() throw (uno::RuntimeException, std::exception) +sal_Int32 SAL_CALL SwVbaParagraphFormat::getAlignment() throw (uno::RuntimeException, css::script::BasicErrorException, std::exception) { style::ParagraphAdjust aParaAdjust = style::ParagraphAdjust_LEFT; mxParaProps->getPropertyValue("ParaAdjust") >>= aParaAdjust; diff --git a/sw/source/ui/vba/vbaparagraphformat.hxx b/sw/source/ui/vba/vbaparagraphformat.hxx index e4f4071fc30c..3911e05ad967 100644 --- a/sw/source/ui/vba/vbaparagraphformat.hxx +++ b/sw/source/ui/vba/vbaparagraphformat.hxx @@ -47,7 +47,7 @@ public: virtual ~SwVbaParagraphFormat(); // Attributes - virtual ::sal_Int32 SAL_CALL getAlignment() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; + virtual ::sal_Int32 SAL_CALL getAlignment() throw (css::uno::RuntimeException, css::script::BasicErrorException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL setAlignment( ::sal_Int32 _alignment ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual float SAL_CALL getFirstLineIndent() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual void SAL_CALL setFirstLineIndent( float _firstlineindent ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; |