summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-19 17:49:29 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-19 18:03:12 +0100
commit1d5372daac88346d59c2bf6a14ec9dd9ce6eb1bc (patch)
treed254f11caebd6305d369d526689a9f5a050e715e /sw/source/ui/vba
parent8a12673c1727381ce8ab729759c3d9cd2069342e (diff)
New loplugin:dynexcspec: Add @throws documentation, sw
Change-Id: I2da2ce4cd247e7b9f973150917b4ee7bd7a0e0c4
Diffstat (limited to 'sw/source/ui/vba')
-rw-r--r--sw/source/ui/vba/vbaaddin.hxx1
-rw-r--r--sw/source/ui/vba/vbaaddins.hxx1
-rw-r--r--sw/source/ui/vba/vbaautotextentry.hxx2
-rw-r--r--sw/source/ui/vba/vbabookmark.hxx2
-rw-r--r--sw/source/ui/vba/vbabookmarks.cxx2
-rw-r--r--sw/source/ui/vba/vbabookmarks.hxx2
-rw-r--r--sw/source/ui/vba/vbacell.hxx1
-rw-r--r--sw/source/ui/vba/vbacells.cxx1
-rw-r--r--sw/source/ui/vba/vbacells.hxx1
-rw-r--r--sw/source/ui/vba/vbacolumn.hxx2
-rw-r--r--sw/source/ui/vba/vbacolumns.hxx3
-rw-r--r--sw/source/ui/vba/vbadocumentproperties.cxx1
-rw-r--r--sw/source/ui/vba/vbadocuments.cxx1
-rw-r--r--sw/source/ui/vba/vbafield.cxx1
-rw-r--r--sw/source/ui/vba/vbafield.hxx4
-rw-r--r--sw/source/ui/vba/vbafind.hxx7
-rw-r--r--sw/source/ui/vba/vbafont.cxx2
-rw-r--r--sw/source/ui/vba/vbafont.hxx1
-rw-r--r--sw/source/ui/vba/vbaframe.hxx1
-rw-r--r--sw/source/ui/vba/vbaframes.cxx1
-rw-r--r--sw/source/ui/vba/vbaglobals.hxx1
-rw-r--r--sw/source/ui/vba/vbaheaderfooter.hxx1
-rw-r--r--sw/source/ui/vba/vbaheaderfooterhelper.hxx8
-rw-r--r--sw/source/ui/vba/vbainformationhelper.hxx3
-rw-r--r--sw/source/ui/vba/vbalistformat.hxx1
-rw-r--r--sw/source/ui/vba/vbalistgalleries.hxx1
-rw-r--r--sw/source/ui/vba/vbalistgallery.hxx1
-rw-r--r--sw/source/ui/vba/vbalisthelper.hxx15
-rw-r--r--sw/source/ui/vba/vbalistlevel.hxx1
-rw-r--r--sw/source/ui/vba/vbalistlevels.hxx1
-rw-r--r--sw/source/ui/vba/vbalisttemplate.hxx2
-rw-r--r--sw/source/ui/vba/vbalisttemplates.hxx1
-rw-r--r--sw/source/ui/vba/vbapagesetup.hxx2
-rw-r--r--sw/source/ui/vba/vbapane.hxx1
-rw-r--r--sw/source/ui/vba/vbaparagraph.cxx2
-rw-r--r--sw/source/ui/vba/vbaparagraph.hxx2
-rw-r--r--sw/source/ui/vba/vbaparagraphformat.hxx1
-rw-r--r--sw/source/ui/vba/vbarange.hxx9
-rw-r--r--sw/source/ui/vba/vbarangehelper.hxx6
-rw-r--r--sw/source/ui/vba/vbareplacement.hxx1
-rw-r--r--sw/source/ui/vba/vbarevision.hxx2
-rw-r--r--sw/source/ui/vba/vbarevisions.cxx2
-rw-r--r--sw/source/ui/vba/vbarow.hxx2
-rw-r--r--sw/source/ui/vba/vbarows.hxx6
-rw-r--r--sw/source/ui/vba/vbasection.hxx1
-rw-r--r--sw/source/ui/vba/vbasections.cxx3
-rw-r--r--sw/source/ui/vba/vbaselection.hxx10
-rw-r--r--sw/source/ui/vba/vbastyle.hxx5
-rw-r--r--sw/source/ui/vba/vbastyles.hxx2
-rw-r--r--sw/source/ui/vba/vbatable.hxx1
-rw-r--r--sw/source/ui/vba/vbatablehelper.hxx11
-rw-r--r--sw/source/ui/vba/vbatableofcontents.hxx1
-rw-r--r--sw/source/ui/vba/vbatablesofcontents.cxx1
-rw-r--r--sw/source/ui/vba/vbatablesofcontents.hxx1
-rw-r--r--sw/source/ui/vba/vbatabstop.hxx1
-rw-r--r--sw/source/ui/vba/vbatabstops.cxx3
-rw-r--r--sw/source/ui/vba/vbatabstops.hxx1
-rw-r--r--sw/source/ui/vba/vbavariable.hxx1
-rw-r--r--sw/source/ui/vba/vbavariables.cxx1
-rw-r--r--sw/source/ui/vba/vbaview.hxx3
-rw-r--r--sw/source/ui/vba/vbawindow.hxx1
-rw-r--r--sw/source/ui/vba/vbawrapformat.hxx3
-rw-r--r--sw/source/ui/vba/wordvbahelper.hxx8
63 files changed, 167 insertions, 0 deletions
diff --git a/sw/source/ui/vba/vbaaddin.hxx b/sw/source/ui/vba/vbaaddin.hxx
index 6e15132281a4..e5a779f7ab22 100644
--- a/sw/source/ui/vba/vbaaddin.hxx
+++ b/sw/source/ui/vba/vbaaddin.hxx
@@ -31,6 +31,7 @@ private:
bool mbInstalled;
public:
+ /// @throws css::uno::RuntimeException
SwVbaAddin( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const OUString& rFileURL ) throw ( css::uno::RuntimeException );
virtual ~SwVbaAddin() override;
diff --git a/sw/source/ui/vba/vbaaddins.hxx b/sw/source/ui/vba/vbaaddins.hxx
index 87406b0eb2ca..bdbc949f2448 100644
--- a/sw/source/ui/vba/vbaaddins.hxx
+++ b/sw/source/ui/vba/vbaaddins.hxx
@@ -28,6 +28,7 @@ typedef CollTestImplHelper< ooo::vba::word::XAddins > SwVbaAddins_BASE;
class SwVbaAddins : public SwVbaAddins_BASE
{
public:
+ /// @throws css::uno::RuntimeException
SwVbaAddins( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext ) throw (css::uno::RuntimeException);
virtual ~SwVbaAddins() override {}
diff --git a/sw/source/ui/vba/vbaautotextentry.hxx b/sw/source/ui/vba/vbaautotextentry.hxx
index 8b7a4f268435..29cf0ff2c550 100644
--- a/sw/source/ui/vba/vbaautotextentry.hxx
+++ b/sw/source/ui/vba/vbaautotextentry.hxx
@@ -34,6 +34,7 @@ private:
css::uno::Reference< css::text::XAutoTextEntry > mxEntry;
public:
+ /// @throws css::uno::RuntimeException
SwVbaAutoTextEntry( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< css::text::XAutoTextEntry >& xEntry ) throw ( css::uno::RuntimeException );
virtual ~SwVbaAutoTextEntry() override;
@@ -50,6 +51,7 @@ typedef CollTestImplHelper< ooo::vba::word::XAutoTextEntries > SwVbaAutoTextEntr
class SwVbaAutoTextEntries : public SwVbaAutoTextEntries_BASE
{
public:
+ /// @throws css::uno::RuntimeException
SwVbaAutoTextEntries( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::container::XIndexAccess >& xIndexAccess ) throw (css::uno::RuntimeException);
virtual ~SwVbaAutoTextEntries() override {}
diff --git a/sw/source/ui/vba/vbabookmark.hxx b/sw/source/ui/vba/vbabookmark.hxx
index daee6585232b..d963db155def 100644
--- a/sw/source/ui/vba/vbabookmark.hxx
+++ b/sw/source/ui/vba/vbabookmark.hxx
@@ -35,9 +35,11 @@ private:
bool mbValid;
private:
+ /// @throws css::uno::RuntimeException
void checkVality() throw ( css::uno::RuntimeException );
public:
+ /// @throws css::uno::RuntimeException
SwVbaBookmark( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext,
const css::uno::Reference< css::frame::XModel >& rModel, const OUString& rName ) throw ( css::uno::RuntimeException );
virtual ~SwVbaBookmark() override;
diff --git a/sw/source/ui/vba/vbabookmarks.cxx b/sw/source/ui/vba/vbabookmarks.cxx
index 585a03e94390..dc095523043f 100644
--- a/sw/source/ui/vba/vbabookmarks.cxx
+++ b/sw/source/ui/vba/vbabookmarks.cxx
@@ -35,6 +35,7 @@ class BookmarksEnumeration : public EnumerationHelperImpl
{
uno::Reference< frame::XModel > mxModel;
public:
+ /// @throws uno::RuntimeException
BookmarksEnumeration( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< container::XEnumeration >& xEnumeration, const uno::Reference< frame::XModel >& xModel ) throw ( uno::RuntimeException ) : EnumerationHelperImpl( xParent, xContext, xEnumeration ), mxModel( xModel ) {}
virtual uno::Any SAL_CALL nextElement( ) throw (container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException, std::exception) override
@@ -55,6 +56,7 @@ private:
uno::Reference< container::XIndexAccess > mxIndexAccess;
uno::Any cachePos;
public:
+ /// @throws uno::RuntimeException
explicit BookmarkCollectionHelper( const uno::Reference< container::XIndexAccess >& xIndexAccess ) throw (uno::RuntimeException) : mxIndexAccess( xIndexAccess )
{
mxNameAccess.set( mxIndexAccess, uno::UNO_QUERY_THROW );
diff --git a/sw/source/ui/vba/vbabookmarks.hxx b/sw/source/ui/vba/vbabookmarks.hxx
index 24df319a7760..19e18ab1a388 100644
--- a/sw/source/ui/vba/vbabookmarks.hxx
+++ b/sw/source/ui/vba/vbabookmarks.hxx
@@ -37,12 +37,14 @@ private:
css::uno::Reference< css::text::XBookmarksSupplier > mxBookmarksSupplier;
private:
+ /// @throws css::uno::RuntimeException
void removeBookmarkByName( const OUString& rName ) throw (css::uno::RuntimeException);
public:
SwVbaBookmarks( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::container::XIndexAccess >& xBookmarks, const css::uno::Reference< css::frame::XModel >& xModel );
virtual ~SwVbaBookmarks() override {}
+ /// @throws css::uno::RuntimeException
static void addBookmarkByName( const css::uno::Reference< css::frame::XModel >& xModel, const OUString& rName, const css::uno::Reference< css::text::XTextRange >& rTextRange ) throw (css::uno::RuntimeException);
// XEnumerationAccess
virtual css::uno::Type SAL_CALL getElementType() throw (css::uno::RuntimeException) override;
diff --git a/sw/source/ui/vba/vbacell.hxx b/sw/source/ui/vba/vbacell.hxx
index f617df664488..63c6569d327d 100644
--- a/sw/source/ui/vba/vbacell.hxx
+++ b/sw/source/ui/vba/vbacell.hxx
@@ -33,6 +33,7 @@ private:
sal_Int32 mnRow;
public:
+ /// @throws css::uno::RuntimeException
SwVbaCell( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< css::text::XTextTable >& xTextTable, sal_Int32 nColumn, sal_Int32 nRow ) throw ( css::uno::RuntimeException );
virtual ~SwVbaCell() override;
diff --git a/sw/source/ui/vba/vbacells.cxx b/sw/source/ui/vba/vbacells.cxx
index 2e36a33b18e8..19251712385f 100644
--- a/sw/source/ui/vba/vbacells.cxx
+++ b/sw/source/ui/vba/vbacells.cxx
@@ -63,6 +63,7 @@ private:
sal_Int32 mnBottom;
public:
+ /// @throws css::uno::RuntimeException
CellCollectionHelper( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::text::XTextTable >& xTextTable, sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nRight, sal_Int32 nBottom ) throw ( css::uno::RuntimeException ): mxParent( xParent ), mxContext( xContext ), mxTextTable( xTextTable ), mnLeft( nLeft ), mnTop( nTop ), mnRight( nRight ), mnBottom( nBottom )
{
}
diff --git a/sw/source/ui/vba/vbacells.hxx b/sw/source/ui/vba/vbacells.hxx
index 2626eb8dacca..adfcb163f2d9 100644
--- a/sw/source/ui/vba/vbacells.hxx
+++ b/sw/source/ui/vba/vbacells.hxx
@@ -34,6 +34,7 @@ private:
sal_Int32 mnBottom;
public:
+ /// @throws css::uno::RuntimeException
SwVbaCells( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::text::XTextTable >& xTextTable, sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nRight, sal_Int32 nBottom ) throw ( css::uno::RuntimeException );
virtual ~SwVbaCells() override {}
diff --git a/sw/source/ui/vba/vbacolumn.hxx b/sw/source/ui/vba/vbacolumn.hxx
index ac8d6a7623c6..8ecbbd21f1a2 100644
--- a/sw/source/ui/vba/vbacolumn.hxx
+++ b/sw/source/ui/vba/vbacolumn.hxx
@@ -35,6 +35,7 @@ private:
sal_Int32 mnIndex;
public:
+ /// @throws css::uno::RuntimeException
SwVbaColumn( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< css::text::XTextTable >& xTextTable, sal_Int32 nIndex ) throw ( css::uno::RuntimeException );
virtual ~SwVbaColumn() override;
@@ -43,6 +44,7 @@ public:
virtual void SAL_CALL setWidth( sal_Int32 _width ) throw ( css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL Select( ) throw (css::uno::RuntimeException, std::exception) override;
+ /// @throws css::uno::RuntimeException
static void SelectColumn( const css::uno::Reference< css::frame::XModel >& xModel, const css::uno::Reference< css::text::XTextTable >& xTextTable, sal_Int32 nStartColumn, sal_Int32 nEndColumn ) throw (css::uno::RuntimeException);
// XHelperInterface
diff --git a/sw/source/ui/vba/vbacolumns.hxx b/sw/source/ui/vba/vbacolumns.hxx
index e1735f29fead..0439d84c13a6 100644
--- a/sw/source/ui/vba/vbacolumns.hxx
+++ b/sw/source/ui/vba/vbacolumns.hxx
@@ -36,10 +36,13 @@ private:
sal_Int32 mnEndColumnIndex;
private:
+ /// @throws css::uno::RuntimeException
css::uno::Reference< ooo::vba::word::XColumn > getColumnAtIndex( sal_Int32 index ) throw (css::uno::RuntimeException);
public:
+ /// @throws css::uno::RuntimeException
SwVbaColumns( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::text::XTextTable >& xTextTable, const css::uno::Reference< css::table::XTableColumns >& xTableColumns ) throw ( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
SwVbaColumns( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::text::XTextTable >& xTextTable, const css::uno::Reference< css::table::XTableColumns >& xTableColumns, sal_Int32 nStartCol, sal_Int32 nEndCol ) throw ( css::uno::RuntimeException );
virtual ~SwVbaColumns() override {}
diff --git a/sw/source/ui/vba/vbadocumentproperties.cxx b/sw/source/ui/vba/vbadocumentproperties.cxx
index 2135395bc0c3..4ca696d2960c 100644
--- a/sw/source/ui/vba/vbadocumentproperties.cxx
+++ b/sw/source/ui/vba/vbadocumentproperties.cxx
@@ -31,6 +31,7 @@
using namespace ::ooo::vba;
using namespace css;
+/// @throws lang::IllegalArgumentException
static sal_Int8 lcl_toMSOPropType( const uno::Type& aType ) throw ( lang::IllegalArgumentException )
{
sal_Int16 msoType = office::MsoDocProperties::msoPropertyTypeString;
diff --git a/sw/source/ui/vba/vbadocuments.cxx b/sw/source/ui/vba/vbadocuments.cxx
index 82d16828b88a..7b130a8ed284 100644
--- a/sw/source/ui/vba/vbadocuments.cxx
+++ b/sw/source/ui/vba/vbadocuments.cxx
@@ -64,6 +64,7 @@ class DocumentEnumImpl : public EnumerationHelperImpl
{
uno::Any m_aApplication;
public:
+ /// @throws uno::RuntimeException
DocumentEnumImpl( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< container::XEnumeration >& xEnumeration, const uno::Any& aApplication ) throw ( uno::RuntimeException ) : EnumerationHelperImpl( xParent, xContext, xEnumeration ), m_aApplication( aApplication ) {}
virtual uno::Any SAL_CALL nextElement( ) throw (container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException, std::exception) override
diff --git a/sw/source/ui/vba/vbafield.cxx b/sw/source/ui/vba/vbafield.cxx
index f5816cdd8c0e..4263eb158f27 100644
--- a/sw/source/ui/vba/vbafield.cxx
+++ b/sw/source/ui/vba/vbafield.cxx
@@ -259,6 +259,7 @@ class FieldCollectionHelper : public ::cppu::WeakImplHelper< container::XIndexAc
uno::Reference< frame::XModel > mxModel;
uno::Reference< container::XEnumerationAccess > mxEnumerationAccess;
public:
+ /// @throws css::uno::RuntimeException
FieldCollectionHelper( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< frame::XModel >& xModel ) throw (css::uno::RuntimeException) : mxParent( xParent ), mxContext( xContext ), mxModel( xModel )
{
uno::Reference< text::XTextFieldsSupplier > xSupp( xModel, uno::UNO_QUERY_THROW );
diff --git a/sw/source/ui/vba/vbafield.hxx b/sw/source/ui/vba/vbafield.hxx
index af3c53172228..650a09692219 100644
--- a/sw/source/ui/vba/vbafield.hxx
+++ b/sw/source/ui/vba/vbafield.hxx
@@ -32,6 +32,7 @@ class SwVbaField : public SwVbaField_BASE
{
css::uno::Reference< css::text::XTextField > mxTextField;
public:
+ /// @throws css::uno::RuntimeException
SwVbaField( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< css::text::XTextField >& xTextField) throw ( css::uno::RuntimeException);
virtual sal_Bool SAL_CALL Update() throw ( css::uno::RuntimeException, std::exception) override;
@@ -47,8 +48,11 @@ class SwVbaFields : public SwVbaFields_BASE
css::uno::Reference< css::frame::XModel > mxModel;
css::uno::Reference< css::lang::XMultiServiceFactory > mxMSF;
private:
+ /// @throws css::uno::RuntimeException
+ /// @throws css::script::BasicErrorException
css::uno::Reference< css::text::XTextField > Create_Field_FileName(const OUString& rText)
throw (css::uno::RuntimeException, css::script::BasicErrorException);
+ /// @throws css::uno::RuntimeException
css::uno::Reference< css::text::XTextField > Create_Field_DocProperty( const OUString& _text ) throw (css::uno::RuntimeException);
public:
diff --git a/sw/source/ui/vba/vbafind.hxx b/sw/source/ui/vba/vbafind.hxx
index d605a8a81692..3ce55cc329a4 100644
--- a/sw/source/ui/vba/vbafind.hxx
+++ b/sw/source/ui/vba/vbafind.hxx
@@ -44,15 +44,22 @@ private:
sal_Int32 mnWrap;
private:
+ /// @throws css::uno::RuntimeException
bool InRange( const css::uno::Reference< css::text::XTextRange >& xCurrentRange ) throw ( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
bool InEqualRange( const css::uno::Reference< css::text::XTextRange >& xCurrentRange ) throw ( css::uno::RuntimeException );
void SetReplace( sal_Int32 type );
+ /// @throws css::uno::RuntimeException
void SetReplaceWith( const OUString& rText ) throw ( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
OUString GetReplaceWith() throw ( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
css::uno::Reference< css::text::XTextRange > FindOneElement() throw ( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
bool SearchReplace() throw ( css::uno::RuntimeException );
public:
+ /// @throws css::uno::RuntimeException
SwVbaFind( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< css::frame::XModel >& xModel, const css::uno::Reference< css::text::XTextRange >& xTextRange ) throw ( css::uno::RuntimeException );
virtual ~SwVbaFind() override;
diff --git a/sw/source/ui/vba/vbafont.cxx b/sw/source/ui/vba/vbafont.cxx
index a9d3ca1bc2b6..4d043d11287a 100644
--- a/sw/source/ui/vba/vbafont.cxx
+++ b/sw/source/ui/vba/vbafont.cxx
@@ -87,6 +87,7 @@ public:
return theMapper;
}
+ /// @throws lang::IllegalArgumentException
sal_Int32 getOOOFromMSO( sal_Int32 nMSOConst ) throw( lang::IllegalArgumentException )
{
ConstToConst::iterator it = MSO2OOO.find( nMSOConst );
@@ -94,6 +95,7 @@ public:
throw lang::IllegalArgumentException();
return it->second;
}
+ /// @throws lang::IllegalArgumentException
sal_Int32 getMSOFromOOO( sal_Int32 nOOOConst ) throw( lang::IllegalArgumentException )
{
ConstToConst::iterator it = OOO2MSO.find( nOOOConst );
diff --git a/sw/source/ui/vba/vbafont.hxx b/sw/source/ui/vba/vbafont.hxx
index aedb392af125..0a24b2e87cb1 100644
--- a/sw/source/ui/vba/vbafont.hxx
+++ b/sw/source/ui/vba/vbafont.hxx
@@ -29,6 +29,7 @@ typedef cppu::ImplInheritanceHelper< VbaFontBase, ov::word::XFont > SwVbaFont_BA
class SwVbaFont : public SwVbaFont_BASE
{
public:
+ /// @throws css::uno::RuntimeException
SwVbaFont( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess >& xPalette, css::uno::Reference< css::beans::XPropertySet > const & xPropertySet ) throw ( css::uno::RuntimeException );
virtual ~SwVbaFont() override {}
diff --git a/sw/source/ui/vba/vbaframe.hxx b/sw/source/ui/vba/vbaframe.hxx
index 166fe7fd13e7..099366aced21 100644
--- a/sw/source/ui/vba/vbaframe.hxx
+++ b/sw/source/ui/vba/vbaframe.hxx
@@ -32,6 +32,7 @@ private:
css::uno::Reference< css::text::XTextFrame > mxTextFrame;
public:
+ /// @throws css::uno::RuntimeException
SwVbaFrame( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< css::frame::XModel >& rModel, const css::uno::Reference< css::text::XTextFrame >& xTextFrame ) throw ( css::uno::RuntimeException );
virtual ~SwVbaFrame() override;
diff --git a/sw/source/ui/vba/vbaframes.cxx b/sw/source/ui/vba/vbaframes.cxx
index 9d26468b21a8..3e733ac1efe4 100644
--- a/sw/source/ui/vba/vbaframes.cxx
+++ b/sw/source/ui/vba/vbaframes.cxx
@@ -36,6 +36,7 @@ private:
uno::Reference< frame::XModel > mxModel;
sal_Int32 nCurrentPos;
public:
+ /// @throws uno::RuntimeException
FramesEnumeration( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< container::XIndexAccess >& xIndexAccess, const uno::Reference< frame::XModel >& xModel ) throw ( uno::RuntimeException ) : mxParent( xParent ), mxContext( xContext), mxIndexAccess( xIndexAccess ), mxModel( xModel ), nCurrentPos(0)
{
}
diff --git a/sw/source/ui/vba/vbaglobals.hxx b/sw/source/ui/vba/vbaglobals.hxx
index f45f43de8c19..e82783366307 100644
--- a/sw/source/ui/vba/vbaglobals.hxx
+++ b/sw/source/ui/vba/vbaglobals.hxx
@@ -38,6 +38,7 @@ class SwVbaGlobals : public SwVbaGlobals_BASE
private:
css::uno::Reference< ooo::vba::word::XApplication > mxApplication;
+ /// @throws css::uno::RuntimeException
css::uno::Reference< ooo::vba::word::XApplication > const & getApplication() throw (css::uno::RuntimeException);
public:
diff --git a/sw/source/ui/vba/vbaheaderfooter.hxx b/sw/source/ui/vba/vbaheaderfooter.hxx
index ba10bfbb8812..d8ce89e37e17 100644
--- a/sw/source/ui/vba/vbaheaderfooter.hxx
+++ b/sw/source/ui/vba/vbaheaderfooter.hxx
@@ -34,6 +34,7 @@ private:
sal_Int32 mnIndex;
public:
+ /// @throws css::uno::RuntimeException
SwVbaHeaderFooter( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< css::frame::XModel >& xModel, const css::uno::Reference< css::beans::XPropertySet >& xProps, bool isHeader, sal_Int32 index ) throw ( css::uno::RuntimeException );
virtual ~SwVbaHeaderFooter() override {}
diff --git a/sw/source/ui/vba/vbaheaderfooterhelper.hxx b/sw/source/ui/vba/vbaheaderfooterhelper.hxx
index 0cbf54867bb1..1706a63fd7c9 100644
--- a/sw/source/ui/vba/vbaheaderfooterhelper.hxx
+++ b/sw/source/ui/vba/vbaheaderfooterhelper.hxx
@@ -28,13 +28,21 @@
class HeaderFooterHelper
{
public:
+ /// @throws css::uno::RuntimeException
static bool isHeaderFooter( const css::uno::Reference< css::frame::XModel >& xModel ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
static bool isHeaderFooter( const css::uno::Reference< css::text::XText >& xText ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
static bool isHeader( const css::uno::Reference< css::frame::XModel >& xModel ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
static bool isFirstPageHeader( const css::uno::Reference< css::frame::XModel >& xModel ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
static bool isEvenPagesHeader( const css::uno::Reference< css::frame::XModel >& xModel ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
static bool isFooter( const css::uno::Reference< css::frame::XModel >& xModel ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
static bool isFirstPageFooter( const css::uno::Reference< css::frame::XModel >& xModel ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
static bool isEvenPagesFooter( const css::uno::Reference< css::frame::XModel >& xModel ) throw (css::uno::RuntimeException);
};
diff --git a/sw/source/ui/vba/vbainformationhelper.hxx b/sw/source/ui/vba/vbainformationhelper.hxx
index 543927407079..86191061d0eb 100644
--- a/sw/source/ui/vba/vbainformationhelper.hxx
+++ b/sw/source/ui/vba/vbainformationhelper.hxx
@@ -26,8 +26,11 @@
class SwVbaInformationHelper
{
public:
+ /// @throws css::uno::RuntimeException
static sal_Int32 handleWdActiveEndPageNumber( const css::uno::Reference< css::text::XTextViewCursor >& xTVCursor ) throw( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
static sal_Int32 handleWdNumberOfPagesInDocument( const css::uno::Reference< css::frame::XModel >& xModel ) throw( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
static double handleWdVerticalPositionRelativeToPage( const css::uno::Reference< css::frame::XModel >& xModel, const css::uno::Reference< css::text::XTextViewCursor >& xTVCursor ) throw( css::uno::RuntimeException );
//static double verticalPositionRelativeToPageBoundary( const css::uno::Reference< css::frame::XModel >& xModel, const css::uno::Reference< css::text::XTextViewCursor >& xTVCursor, const css::uno::Reference< css::beans::XPropertySet >& xStyleProps ) throw( css::uno::RuntimeException );
diff --git a/sw/source/ui/vba/vbalistformat.hxx b/sw/source/ui/vba/vbalistformat.hxx
index d9c3e9a283eb..9223714ed894 100644
--- a/sw/source/ui/vba/vbalistformat.hxx
+++ b/sw/source/ui/vba/vbalistformat.hxx
@@ -33,6 +33,7 @@ private:
css::uno::Reference< css::text::XTextRange > mxTextRange;
public:
+ /// @throws css::uno::RuntimeException
SwVbaListFormat( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< css::text::XTextRange >& xTextRange ) throw ( css::uno::RuntimeException );
virtual ~SwVbaListFormat() override;
diff --git a/sw/source/ui/vba/vbalistgalleries.hxx b/sw/source/ui/vba/vbalistgalleries.hxx
index c82c56fdf40b..4b09498e54d1 100644
--- a/sw/source/ui/vba/vbalistgalleries.hxx
+++ b/sw/source/ui/vba/vbalistgalleries.hxx
@@ -32,6 +32,7 @@ private:
css::uno::Reference< css::text::XTextDocument > mxTextDocument;
public:
+ /// @throws css::uno::RuntimeException
SwVbaListGalleries( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::text::XTextDocument >& xTextDoc ) throw (css::uno::RuntimeException);
virtual ~SwVbaListGalleries() override {}
diff --git a/sw/source/ui/vba/vbalistgallery.hxx b/sw/source/ui/vba/vbalistgallery.hxx
index 2c9df465a1aa..3fe3618aecfb 100644
--- a/sw/source/ui/vba/vbalistgallery.hxx
+++ b/sw/source/ui/vba/vbalistgallery.hxx
@@ -32,6 +32,7 @@ private:
sal_Int32 mnType;
public:
+ /// @throws css::uno::RuntimeException
SwVbaListGallery( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< css::text::XTextDocument >& xTextDoc, sal_Int32 nType ) throw ( css::uno::RuntimeException );
virtual ~SwVbaListGallery() override;
diff --git a/sw/source/ui/vba/vbalisthelper.hxx b/sw/source/ui/vba/vbalisthelper.hxx
index 86c449fa7072..b6ece448dd51 100644
--- a/sw/source/ui/vba/vbalisthelper.hxx
+++ b/sw/source/ui/vba/vbalisthelper.hxx
@@ -28,25 +28,40 @@ private:
sal_Int32 mnTemplateType;
OUString msStyleName;
+ /// @throws css::uno::RuntimeException
void Init() throw( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
void CreateListTemplate() throw( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
void CreateBulletListTemplate() throw( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
void CreateNumberListTemplate() throw( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
void CreateOutlineNumberListTemplate() throw( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
void CreateOutlineNumberForType1() throw( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
void CreateOutlineNumberForType2() throw( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
void CreateOutlineNumberForType3() throw( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
void CreateOutlineNumberForType4() throw( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
void CreateOutlineNumberForType5() throw( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
void CreateOutlineNumberForType6() throw( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
void CreateOutlineNumberForType7() throw( css::uno::RuntimeException );
public:
+ /// @throws css::uno::RuntimeException
SwVbaListHelper( const css::uno::Reference< css::text::XTextDocument >& xTextDoc, sal_Int32 nGalleryType, sal_Int32 nTemplateType ) throw( css::uno::RuntimeException );
sal_Int32 getGalleryType() const { return mnGalleryType; }
const css::uno::Reference< css::container::XIndexReplace >& getNumberingRules() const { return mxNumberingRules; }
+ /// @throws css::uno::RuntimeException
css::uno::Any getPropertyValueWithNameAndLevel( sal_Int32 nLevel, const OUString& sName ) throw( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
void setPropertyValueWithNameAndLevel( sal_Int32 nLevel, const OUString& sName, const css::uno::Any& aValue ) throw( css::uno::RuntimeException );
};
diff --git a/sw/source/ui/vba/vbalistlevel.hxx b/sw/source/ui/vba/vbalistlevel.hxx
index 369debc64c43..c4ec40ce37c6 100644
--- a/sw/source/ui/vba/vbalistlevel.hxx
+++ b/sw/source/ui/vba/vbalistlevel.hxx
@@ -33,6 +33,7 @@ private:
sal_Int32 mnLevel;
public:
+ /// @throws css::uno::RuntimeException
SwVbaListLevel( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, SwVbaListHelperRef const & pHelper, sal_Int32 nLevel ) throw ( css::uno::RuntimeException );
virtual ~SwVbaListLevel() override;
diff --git a/sw/source/ui/vba/vbalistlevels.hxx b/sw/source/ui/vba/vbalistlevels.hxx
index 98eeab0b48c2..dfd9e16759e7 100644
--- a/sw/source/ui/vba/vbalistlevels.hxx
+++ b/sw/source/ui/vba/vbalistlevels.hxx
@@ -32,6 +32,7 @@ private:
SwVbaListHelperRef pListHelper;
public:
+ /// @throws css::uno::RuntimeException
SwVbaListLevels( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, SwVbaListHelperRef const & pHelper ) throw ( css::uno::RuntimeException );
virtual ~SwVbaListLevels() override {}
diff --git a/sw/source/ui/vba/vbalisttemplate.hxx b/sw/source/ui/vba/vbalisttemplate.hxx
index 59234fff56c3..e3d277d5bf82 100644
--- a/sw/source/ui/vba/vbalisttemplate.hxx
+++ b/sw/source/ui/vba/vbalisttemplate.hxx
@@ -32,9 +32,11 @@ private:
SwVbaListHelperRef pListHelper;
public:
+ /// @throws css::uno::RuntimeException
SwVbaListTemplate( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< css::text::XTextDocument >& xTextDoc, sal_Int32 nGalleryType, sal_Int32 nTemplateType ) throw ( css::uno::RuntimeException );
virtual ~SwVbaListTemplate() override;
+ /// @throws css::uno::RuntimeException
void applyListTemplate( css::uno::Reference< css::beans::XPropertySet >& xProps ) throw ( css::uno::RuntimeException );
// Methods
diff --git a/sw/source/ui/vba/vbalisttemplates.hxx b/sw/source/ui/vba/vbalisttemplates.hxx
index 6bcc6a59b226..1fdd7074889c 100644
--- a/sw/source/ui/vba/vbalisttemplates.hxx
+++ b/sw/source/ui/vba/vbalisttemplates.hxx
@@ -33,6 +33,7 @@ private:
sal_Int32 mnGalleryType;
public:
+ /// @throws css::uno::RuntimeException
SwVbaListTemplates( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::text::XTextDocument >& xTextDoc, sal_Int32 nType ) throw (css::uno::RuntimeException);
virtual ~SwVbaListTemplates() override {}
diff --git a/sw/source/ui/vba/vbapagesetup.hxx b/sw/source/ui/vba/vbapagesetup.hxx
index f921464cf472..8fa12dd2717e 100644
--- a/sw/source/ui/vba/vbapagesetup.hxx
+++ b/sw/source/ui/vba/vbapagesetup.hxx
@@ -31,9 +31,11 @@ typedef cppu::ImplInheritanceHelper< VbaPageSetupBase, ooo::vba::word::XPageSetu
class SwVbaPageSetup : public SwVbaPageSetup_BASE
{
private:
+ /// @throws css::uno::RuntimeException
OUString getStyleOfFirstPage() throw (css::uno::RuntimeException);
public:
+ /// @throws css::uno::RuntimeException
SwVbaPageSetup( const css::uno::Reference< ooo::vba::XHelperInterface >& xParent,
const css::uno::Reference< css::uno::XComponentContext >& xContext,
const css::uno::Reference< css::frame::XModel >& xModel,
diff --git a/sw/source/ui/vba/vbapane.hxx b/sw/source/ui/vba/vbapane.hxx
index d0bf4e16d056..5cf09bc90e41 100644
--- a/sw/source/ui/vba/vbapane.hxx
+++ b/sw/source/ui/vba/vbapane.hxx
@@ -30,6 +30,7 @@ private:
css::uno::Reference< css::frame::XModel > mxModel;
public:
+ /// @throws css::uno::RuntimeException
SwVbaPane( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext,
const css::uno::Reference< css::frame::XModel >& xModel ) throw ( css::uno::RuntimeException );
virtual ~SwVbaPane() override;
diff --git a/sw/source/ui/vba/vbaparagraph.cxx b/sw/source/ui/vba/vbaparagraph.cxx
index 7f132c4c6c78..b4108654e30c 100644
--- a/sw/source/ui/vba/vbaparagraph.cxx
+++ b/sw/source/ui/vba/vbaparagraph.cxx
@@ -79,6 +79,7 @@ class ParagraphCollectionHelper : public ::cppu::WeakImplHelper< container::XInd
private:
uno::Reference< text::XTextDocument > mxTextDocument;
+ /// @throws uno::RuntimeException
uno::Reference< container::XEnumeration > getEnumeration() throw (uno::RuntimeException)
{
uno::Reference< container::XEnumerationAccess > xParEnumAccess( mxTextDocument->getText(), uno::UNO_QUERY_THROW );
@@ -86,6 +87,7 @@ private:
}
public:
+ /// @throws uno::RuntimeException
explicit ParagraphCollectionHelper( const uno::Reference< text::XTextDocument >& xDocument ) throw (uno::RuntimeException): mxTextDocument( xDocument )
{
}
diff --git a/sw/source/ui/vba/vbaparagraph.hxx b/sw/source/ui/vba/vbaparagraph.hxx
index 7ab48f95b355..793631a31d67 100644
--- a/sw/source/ui/vba/vbaparagraph.hxx
+++ b/sw/source/ui/vba/vbaparagraph.hxx
@@ -35,6 +35,7 @@ private:
css::uno::Reference< css::text::XTextRange > mxTextRange;
public:
+ /// @throws css::uno::RuntimeException
SwVbaParagraph( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< css::text::XTextDocument >& xDocument, const css::uno::Reference< css::text::XTextRange >& xTextRange ) throw ( css::uno::RuntimeException );
virtual ~SwVbaParagraph() override;
@@ -55,6 +56,7 @@ class SwVbaParagraphs : public SwVbaParagraphs_BASE
private:
css::uno::Reference< css::text::XTextDocument > mxTextDocument;
public:
+ /// @throws css::uno::RuntimeException
SwVbaParagraphs( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::text::XTextDocument >& xDocument ) throw (css::uno::RuntimeException);
virtual ~SwVbaParagraphs() override {}
diff --git a/sw/source/ui/vba/vbaparagraphformat.hxx b/sw/source/ui/vba/vbaparagraphformat.hxx
index 656bc6bad536..2c6387e8a527 100644
--- a/sw/source/ui/vba/vbaparagraphformat.hxx
+++ b/sw/source/ui/vba/vbaparagraphformat.hxx
@@ -36,6 +36,7 @@ private:
css::style::LineSpacing getOOoLineSpacingFromRule( sal_Int32 _linespacingrule );
static float getMSWordLineSpacing( css::style::LineSpacing& rLineSpacing );
static sal_Int32 getMSWordLineSpacingRule( css::style::LineSpacing& rLineSpacing );
+ /// @throws css::uno::RuntimeException
sal_Int16 getCharHeight() throw (css::uno::RuntimeException);
static sal_Int32 getOOoAlignment( sal_Int32 _alignment );
static sal_Int32 getMSWordAlignment( sal_Int32 _alignment );
diff --git a/sw/source/ui/vba/vbarange.hxx b/sw/source/ui/vba/vbarange.hxx
index 8d29f7a9570d..816e12c3549a 100644
--- a/sw/source/ui/vba/vbarange.hxx
+++ b/sw/source/ui/vba/vbarange.hxx
@@ -39,11 +39,20 @@ private:
css::uno::Reference< css::text::XText > mxText;
private:
+ /// @throws css::script::BasicErrorException
+ /// @throws css::uno::RuntimeException
void initialize( const css::uno::Reference< css::text::XTextRange >& rStart, const css::uno::Reference< css::text::XTextRange >& rEnd ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
void GetStyleInfo(OUString& aStyleName, OUString& aStyleType ) throw ( css::uno::RuntimeException );
public:
+ /// @throws css::script::BasicErrorException
+ /// @throws css::uno::RuntimeException
SwVbaRange( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< css::text::XTextDocument >& rTextDocument, const css::uno::Reference< css::text::XTextRange >& rStart) throw (css::script::BasicErrorException, css::uno::RuntimeException);
+ /// @throws css::script::BasicErrorException
+ /// @throws css::uno::RuntimeException
SwVbaRange( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< css::text::XTextDocument >& rTextDocument, const css::uno::Reference< css::text::XTextRange >& rStart, const css::uno::Reference< css::text::XTextRange >& rEnd ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
+ /// @throws css::script::BasicErrorException
+ /// @throws css::uno::RuntimeException
SwVbaRange( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< css::text::XTextDocument >& rTextDocument, const css::uno::Reference< css::text::XTextRange >& rStart, const css::uno::Reference< css::text::XTextRange >& rEnd, const css::uno::Reference< css::text::XText >& rText) throw (css::script::BasicErrorException, css::uno::RuntimeException);
virtual ~SwVbaRange() override;
const css::uno::Reference< css::text::XTextDocument >& getDocument() const { return mxTextDocument; }
diff --git a/sw/source/ui/vba/vbarangehelper.hxx b/sw/source/ui/vba/vbarangehelper.hxx
index b4be49c30d3b..f5eecabe0120 100644
--- a/sw/source/ui/vba/vbarangehelper.hxx
+++ b/sw/source/ui/vba/vbarangehelper.hxx
@@ -28,10 +28,16 @@
class SwVbaRangeHelper
{
public:
+ /// @throws css::uno::RuntimeException
static css::uno::Reference< css::text::XTextRange > getRangeByPosition( const css::uno::Reference< css::text::XText >& rText, sal_Int32 _position )throw ( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
static void insertString( css::uno::Reference< css::text::XTextRange >& rTextRange, css::uno::Reference< css::text::XText >& rText, const OUString& rStr, bool _bAbsorb ) throw ( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
+ /// @throws css::script::BasicErrorException
static css::uno::Reference< css::text::XTextCursor > initCursor( const css::uno::Reference< css::text::XTextRange >& rTextRange, const css::uno::Reference< css::text::XText >& rText ) throw ( css::uno::RuntimeException, css::script::BasicErrorException );
+ /// @throws css::uno::RuntimeException
static sal_Int32 getPosition( const css::uno::Reference< css::text::XText >& rText, const css::uno::Reference< css::text::XTextRange >& rTextRange ) throw ( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
static css::uno::Reference< css::text::XTextContent > findBookmarkByPosition( const css::uno::Reference< css::text::XTextDocument >& xTextDoc, const css::uno::Reference< css::text::XTextRange >& xTextRange ) throw ( css::uno::RuntimeException );
};
diff --git a/sw/source/ui/vba/vbareplacement.hxx b/sw/source/ui/vba/vbareplacement.hxx
index ebe338e3a70d..f68f41fc609c 100644
--- a/sw/source/ui/vba/vbareplacement.hxx
+++ b/sw/source/ui/vba/vbareplacement.hxx
@@ -31,6 +31,7 @@ private:
css::uno::Reference< css::util::XPropertyReplace> mxPropertyReplace;
public:
+ /// @throws css::uno::RuntimeException
SwVbaReplacement( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< css::util::XPropertyReplace >& xPropertyReplace ) throw ( css::uno::RuntimeException );
virtual ~SwVbaReplacement() override;
diff --git a/sw/source/ui/vba/vbarevision.hxx b/sw/source/ui/vba/vbarevision.hxx
index 841f5bd018f4..8fb556510d8f 100644
--- a/sw/source/ui/vba/vbarevision.hxx
+++ b/sw/source/ui/vba/vbarevision.hxx
@@ -31,9 +31,11 @@ private:
css::uno::Reference< css::beans::XPropertySet > mxRedlineProps;
private:
+ /// @throws css::uno::RuntimeException
sal_Int32 GetPosition() throw (css::uno::RuntimeException);
public:
+ /// @throws css::uno::RuntimeException
SwVbaRevision( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< css::frame::XModel >& xModel, const css::uno::Reference< css::beans::XPropertySet >& xRedlineProps ) throw ( css::uno::RuntimeException );
virtual ~SwVbaRevision() override;
diff --git a/sw/source/ui/vba/vbarevisions.cxx b/sw/source/ui/vba/vbarevisions.cxx
index 0a818389a280..68b6c1560eca 100644
--- a/sw/source/ui/vba/vbarevisions.cxx
+++ b/sw/source/ui/vba/vbarevisions.cxx
@@ -52,6 +52,7 @@ class RevisionCollectionHelper : public ::cppu::WeakImplHelper< container::XInde
{
RevisionMap mRevisionMap;
public:
+/// @throws css::uno::RuntimeException
RevisionCollectionHelper( const uno::Reference< frame::XModel >& xModel, const uno::Reference< text::XTextRange >& xTextRange ) throw (uno::RuntimeException);
// XElementAccess
@@ -94,6 +95,7 @@ class RevisionsEnumeration : public EnumerationHelperImpl
{
uno::Reference< frame::XModel > m_xModel;
public:
+ /// @throws uno::RuntimeException
RevisionsEnumeration( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< container::XEnumeration >& xEnumeration, const uno::Reference< frame::XModel >& xModel ) throw ( uno::RuntimeException ) : EnumerationHelperImpl( xParent, xContext, xEnumeration ), m_xModel( xModel ) {}
virtual uno::Any SAL_CALL nextElement( ) throw (container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException, std::exception) override
diff --git a/sw/source/ui/vba/vbarow.hxx b/sw/source/ui/vba/vbarow.hxx
index 94463add6636..a529e5c123df 100644
--- a/sw/source/ui/vba/vbarow.hxx
+++ b/sw/source/ui/vba/vbarow.hxx
@@ -35,6 +35,7 @@ private:
sal_Int32 mnIndex;
public:
+ /// @throws css::uno::RuntimeException
SwVbaRow( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< css::text::XTextTable >& xTextTable, sal_Int32 nIndex ) throw ( css::uno::RuntimeException );
virtual ~SwVbaRow() override;
@@ -48,6 +49,7 @@ public:
virtual void SAL_CALL Select( ) throw (css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL SetHeight( float height, sal_Int32 heightrule ) throw (css::uno::RuntimeException, std::exception) override;
+ /// @throws css::uno::RuntimeException
static void SelectRow( const css::uno::Reference< css::frame::XModel >& xModel, const css::uno::Reference< css::text::XTextTable >& xTextTable, sal_Int32 nStartRow, sal_Int32 nEndRow ) throw (css::uno::RuntimeException);
// XHelperInterface
diff --git a/sw/source/ui/vba/vbarows.hxx b/sw/source/ui/vba/vbarows.hxx
index eb91dc01dba7..0ceae62fa9bc 100644
--- a/sw/source/ui/vba/vbarows.hxx
+++ b/sw/source/ui/vba/vbarows.hxx
@@ -37,13 +37,19 @@ private:
sal_Int32 mnEndRowIndex;
private:
+ /// @throws css::uno::RuntimeException
void setIndentWithAdjustNone( sal_Int32 indent ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
void setIndentWithAdjustFirstColumn( const css::uno::Reference< ooo::vba::word::XColumns >& xColumns, sal_Int32 indent ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
void setIndentWithAdjustProportional( const css::uno::Reference< ooo::vba::word::XColumns >& xColumns, sal_Int32 indent ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
void setIndentWithAdjustSameWidth( const css::uno::Reference< ooo::vba::word::XColumns >& xColumns, sal_Int32 indent ) throw (css::uno::RuntimeException);
public:
+ /// @throws css::uno::RuntimeException
SwVbaRows( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::text::XTextTable >& xTextTable, const css::uno::Reference< css::table::XTableRows >& xTableRows ) throw ( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
SwVbaRows( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::text::XTextTable >& xTextTable, const css::uno::Reference< css::table::XTableRows >& xTableRows, sal_Int32 nStarIndex, sal_Int32 nEndIndex ) throw ( css::uno::RuntimeException );
virtual ~SwVbaRows() override {}
diff --git a/sw/source/ui/vba/vbasection.hxx b/sw/source/ui/vba/vbasection.hxx
index 3d5b5f4451c8..d34da89637be 100644
--- a/sw/source/ui/vba/vbasection.hxx
+++ b/sw/source/ui/vba/vbasection.hxx
@@ -31,6 +31,7 @@ private:
css::uno::Reference< css::beans::XPropertySet > mxPageProps;
public:
+ /// @throws css::uno::RuntimeException
SwVbaSection( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< css::frame::XModel >& xModel, const css::uno::Reference< css::beans::XPropertySet >& xProps ) throw ( css::uno::RuntimeException );
virtual ~SwVbaSection() override;
diff --git a/sw/source/ui/vba/vbasections.cxx b/sw/source/ui/vba/vbasections.cxx
index ffc62b755284..bf5847574e4e 100644
--- a/sw/source/ui/vba/vbasections.cxx
+++ b/sw/source/ui/vba/vbasections.cxx
@@ -61,6 +61,7 @@ private:
XSectionVec mxSections;
public:
+ /// @throws uno::RuntimeException
SectionCollectionHelper( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< frame::XModel >& xModel ) throw (uno::RuntimeException) : mxParent( xParent ), mxContext( xContext ), mxModel( xModel )
{
uno::Reference< style::XStyleFamiliesSupplier > xSytleFamSupp( mxModel, uno::UNO_QUERY_THROW );
@@ -79,6 +80,7 @@ public:
}
}
+ /// @throws uno::RuntimeException
SectionCollectionHelper( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< frame::XModel >& xModel, const uno::Reference< text::XTextRange >& xTextRange ) throw (uno::RuntimeException) : mxParent( xParent ), mxContext( xContext ), mxModel( xModel )
{
// Hacky implementation of Range.Sections, only support 1 section
@@ -120,6 +122,7 @@ class SectionsEnumWrapper : public EnumerationHelperImpl
{
uno::Reference< frame::XModel > mxModel;
public:
+ /// @throws uno::RuntimeException
SectionsEnumWrapper( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< container::XEnumeration >& xEnumeration, const uno::Reference< frame::XModel >& xModel ) throw ( uno::RuntimeException ) : EnumerationHelperImpl( xParent, xContext, xEnumeration ), mxModel( xModel ){}
virtual uno::Any SAL_CALL nextElement( ) throw (container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException, std::exception) override
diff --git a/sw/source/ui/vba/vbaselection.hxx b/sw/source/ui/vba/vbaselection.hxx
index 5643c65e8879..a9727ac3e7fd 100644
--- a/sw/source/ui/vba/vbaselection.hxx
+++ b/sw/source/ui/vba/vbaselection.hxx
@@ -40,16 +40,26 @@ private:
css::uno::Reference< css::text::XTextViewCursor > mxTextViewCursor;
private:
+ /// @throws css::script::BasicErrorException
+ /// @throws css::uno::RuntimeException
void Move( const css::uno::Any& _unit, const css::uno::Any& _count, const css::uno::Any& _extend, ooo::vba::word::E_DIRECTION eDirection ) throw (css::script::BasicErrorException, css::uno::RuntimeException);
+ /// @throws css::script::BasicErrorException
+ /// @throws css::uno::RuntimeException
void NextCell( sal_Int32 nCount, ooo::vba::word::E_DIRECTION eDirection )
throw (css::script::BasicErrorException, css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
css::uno::Reference< css::text::XTextRange > GetSelectedRange() throw ( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
void GetSelectedCellRange( OUString& sTLName, OUString& sBRName ) throw ( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
css::uno::Reference< css::text::XTextTable > GetXTextTable() throw ( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
bool IsInTable() throw ( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
bool HasSelection() throw ( css::uno::RuntimeException );
public:
+ /// @throws css::uno::RuntimeException
SwVbaSelection( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< css::frame::XModel >& rModel ) throw ( css::uno::RuntimeException );
virtual ~SwVbaSelection() override;
diff --git a/sw/source/ui/vba/vbastyle.hxx b/sw/source/ui/vba/vbastyle.hxx
index 1e7c974ae4c2..8a7d68a38b39 100644
--- a/sw/source/ui/vba/vbastyle.hxx
+++ b/sw/source/ui/vba/vbastyle.hxx
@@ -36,11 +36,16 @@ private:
css::uno::Reference< css::beans::XPropertySet > mxStyleProps;
css::uno::Reference< css::style::XStyle > mxStyle;
public:
+ /// @throws css::script::BasicErrorException
+ /// @throws css::uno::RuntimeException
SwVbaStyle( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::frame::XModel >& xModel, const css::uno::Reference< css::beans::XPropertySet >& _xPropertySet ) throw ( css::script::BasicErrorException, css::uno::RuntimeException );
virtual ~SwVbaStyle() override {}
+ /// @throws css::uno::RuntimeException
static void setStyle( const css::uno::Reference< css::beans::XPropertySet >& xParaProps, const css::uno::Any& xStyle ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
static sal_Int32 getLanguageID( const css::uno::Reference< css::beans::XPropertySet >& xTCProps ) throw (css::uno::RuntimeException, std::exception);
+ /// @throws css::uno::RuntimeException
static void setLanguageID( const css::uno::Reference< css::beans::XPropertySet >& xTCProps, sal_Int32 _languageid ) throw (css::uno::RuntimeException);
// Attributes
diff --git a/sw/source/ui/vba/vbastyles.hxx b/sw/source/ui/vba/vbastyles.hxx
index 80a645ebbc83..ec78f17326a0 100644
--- a/sw/source/ui/vba/vbastyles.hxx
+++ b/sw/source/ui/vba/vbastyles.hxx
@@ -29,6 +29,8 @@ class SwVbaStyles: public SwVbaStyles_BASE
css::uno::Reference< css::frame::XModel > mxModel;
css::uno::Reference< css::lang::XMultiServiceFactory > mxMSF;
public:
+ /// @throws css::script::BasicErrorException
+ /// @throws css::uno::RuntimeException
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 );
diff --git a/sw/source/ui/vba/vbatable.hxx b/sw/source/ui/vba/vbatable.hxx
index a9571015565e..ecfae7a37367 100644
--- a/sw/source/ui/vba/vbatable.hxx
+++ b/sw/source/ui/vba/vbatable.hxx
@@ -32,6 +32,7 @@ class SwVbaTable : public SwVbaTable_BASE
css::uno::Reference< css::text::XTextDocument > mxTextDocument;
css::uno::Reference< css::text::XTextTable > mxTextTable;
public:
+ /// @throws css::uno::RuntimeException
SwVbaTable( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< css::text::XTextDocument >& rDocument, const css::uno::Reference< css::text::XTextTable >& xTextTable) throw ( css::uno::RuntimeException);
virtual css::uno::Reference< ::ooo::vba::word::XRange > SAL_CALL Range( ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL Select( ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) override;
diff --git a/sw/source/ui/vba/vbatablehelper.hxx b/sw/source/ui/vba/vbatablehelper.hxx
index f787ec56cd1e..741aeea6f216 100644
--- a/sw/source/ui/vba/vbatablehelper.hxx
+++ b/sw/source/ui/vba/vbatablehelper.hxx
@@ -31,24 +31,35 @@ private:
SwTable* pTable;
private:
+ /// @throws css::uno::RuntimeException
SwTableBox* GetTabBox( sal_Int32 nCol, sal_Int32 nRow ) throw (css::uno::RuntimeException);
void InitTabCols( SwTabCols& rCols, const SwTableBox *pStart, bool bCurRowOnly );
static sal_Int32 GetRightSeparator( SwTabCols& rCols, sal_Int32 nNum);
static sal_Int32 GetColCount( SwTabCols& rCols );
+ /// @throws css::uno::RuntimeException
static sal_Int32 GetColWidth( SwTabCols& rCols, sal_Int32 nNum ) throw (css::uno::RuntimeException);
public:
+ /// @throws css::uno::RuntimeException
explicit SwVbaTableHelper( const css::uno::Reference< css::text::XTextTable >& xTextTable ) throw (css::uno::RuntimeException);
~SwVbaTableHelper() {}
+ /// @throws css::uno::RuntimeException
sal_Int32 getTabColumnsCount( sal_Int32 nRowIndex ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
sal_Int32 getTabColumnsMaxCount( ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
sal_Int32 getTabRowIndex( const OUString& sCellName ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
sal_Int32 getTabColIndex( const OUString& sCellName ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
sal_Int32 getTableWidth( ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
sal_Int32 GetColWidth( sal_Int32 nCol, sal_Int32 nRow = 0, bool bCurRowOnly = false ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
void SetColWidth( sal_Int32 _width, sal_Int32 nCol, sal_Int32 nRow = 0, bool bCurRowOnly = false ) throw (css::uno::RuntimeException, std::exception);
+ /// @throws css::uno::RuntimeException
static SwTable* GetSwTable( const css::uno::Reference< css::text::XTextTable >& xTextTable ) throw (css::uno::RuntimeException);
static OUString getColumnStr( sal_Int32 nCol );
};
diff --git a/sw/source/ui/vba/vbatableofcontents.hxx b/sw/source/ui/vba/vbatableofcontents.hxx
index fb62dcc0a8f8..11071043193c 100644
--- a/sw/source/ui/vba/vbatableofcontents.hxx
+++ b/sw/source/ui/vba/vbatableofcontents.hxx
@@ -34,6 +34,7 @@ private:
css::uno::Reference< css::beans::XPropertySet > mxTocProps;
public:
+ /// @throws css::uno::RuntimeException
SwVbaTableOfContents( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< css::text::XTextDocument >& xDoc, const css::uno::Reference< css::text::XDocumentIndex >& xDocumentIndex ) throw ( css::uno::RuntimeException );
virtual ~SwVbaTableOfContents() override;
diff --git a/sw/source/ui/vba/vbatablesofcontents.cxx b/sw/source/ui/vba/vbatablesofcontents.cxx
index 8a426e193253..e069402d6aef 100644
--- a/sw/source/ui/vba/vbatablesofcontents.cxx
+++ b/sw/source/ui/vba/vbatablesofcontents.cxx
@@ -60,6 +60,7 @@ private:
std::vector< uno::Reference< text::XDocumentIndex > > maToc;
public:
+ /// @throws uno::RuntimeException
TableOfContentsCollectionHelper( const uno::Reference< ov::XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext > & xContext, const uno::Reference< text::XTextDocument >& xDoc ) throw ( uno::RuntimeException ): mxParent( xParent ), mxContext( xContext ), mxTextDocument( xDoc )
{
uno::Reference< text::XDocumentIndexesSupplier > xDocIndexSupp( mxTextDocument, uno::UNO_QUERY_THROW );
diff --git a/sw/source/ui/vba/vbatablesofcontents.hxx b/sw/source/ui/vba/vbatablesofcontents.hxx
index 30d19c2a5dda..0a2c6c796ccf 100644
--- a/sw/source/ui/vba/vbatablesofcontents.hxx
+++ b/sw/source/ui/vba/vbatablesofcontents.hxx
@@ -34,6 +34,7 @@ private:
css::uno::Reference< css::text::XTextDocument > mxTextDocument;
public:
+ /// @throws css::uno::RuntimeException
SwVbaTablesOfContents( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::text::XTextDocument >& xDoc ) throw ( css::uno::RuntimeException );
virtual ~SwVbaTablesOfContents() override {}
diff --git a/sw/source/ui/vba/vbatabstop.hxx b/sw/source/ui/vba/vbatabstop.hxx
index a28cd6d10f8c..9e009e9adf8e 100644
--- a/sw/source/ui/vba/vbatabstop.hxx
+++ b/sw/source/ui/vba/vbatabstop.hxx
@@ -27,6 +27,7 @@ typedef InheritedHelperInterfaceWeakImpl< ooo::vba::word::XTabStop > SwVbaTabSto
class SwVbaTabStop : public SwVbaTabStop_BASE
{
public:
+ /// @throws css::uno::RuntimeException
SwVbaTabStop( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext ) throw ( css::uno::RuntimeException );
virtual ~SwVbaTabStop() override;
diff --git a/sw/source/ui/vba/vbatabstops.cxx b/sw/source/ui/vba/vbatabstops.cxx
index f85426e835b9..75b05f87927e 100644
--- a/sw/source/ui/vba/vbatabstops.cxx
+++ b/sw/source/ui/vba/vbatabstops.cxx
@@ -29,6 +29,7 @@
using namespace ::ooo::vba;
using namespace ::com::sun::star;
+/// @throws uno::RuntimeException
static uno::Sequence< style::TabStop > lcl_getTabStops( const uno::Reference< beans::XPropertySet >& xParaProps ) throw (uno::RuntimeException)
{
uno::Sequence< style::TabStop > aSeq;
@@ -36,6 +37,7 @@ static uno::Sequence< style::TabStop > lcl_getTabStops( const uno::Reference< be
return aSeq;
}
+/// @throws uno::RuntimeException
static void lcl_setTabStops( const uno::Reference< beans::XPropertySet >& xParaProps, const uno::Sequence< style::TabStop >& aSeq ) throw (uno::RuntimeException)
{
xParaProps->setPropertyValue("ParaTabStops", uno::makeAny( aSeq ) );
@@ -74,6 +76,7 @@ private:
sal_Int32 mnTabStops;
public:
+ /// @throws css::uno::RuntimeException
TabStopCollectionHelper( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::beans::XPropertySet >& xParaProps ) throw ( css::uno::RuntimeException ): mxParent( xParent ), mxContext( xContext )
{
mnTabStops = lcl_getTabStops( xParaProps ).getLength();
diff --git a/sw/source/ui/vba/vbatabstops.hxx b/sw/source/ui/vba/vbatabstops.hxx
index 7ec75b529b49..98c05a900221 100644
--- a/sw/source/ui/vba/vbatabstops.hxx
+++ b/sw/source/ui/vba/vbatabstops.hxx
@@ -34,6 +34,7 @@ private:
css::uno::Reference< css::beans::XPropertySet > mxParaProps;
public:
+ /// @throws css::uno::RuntimeException
SwVbaTabStops( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::beans::XPropertySet >& xParaProps ) throw ( css::uno::RuntimeException );
virtual ~SwVbaTabStops() override {}
diff --git a/sw/source/ui/vba/vbavariable.hxx b/sw/source/ui/vba/vbavariable.hxx
index 8f24179671da..a354ae5bbf38 100644
--- a/sw/source/ui/vba/vbavariable.hxx
+++ b/sw/source/ui/vba/vbavariable.hxx
@@ -32,6 +32,7 @@ private:
OUString maVariableName;
public:
+ /// @throws css::uno::RuntimeException
SwVbaVariable( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext,
const css::uno::Reference< css::beans::XPropertyAccess >& rUserDefined, const OUString& rName ) throw ( css::uno::RuntimeException );
virtual ~SwVbaVariable() override;
diff --git a/sw/source/ui/vba/vbavariables.cxx b/sw/source/ui/vba/vbavariables.cxx
index ba2e445bf735..2556cc401de3 100644
--- a/sw/source/ui/vba/vbavariables.cxx
+++ b/sw/source/ui/vba/vbavariables.cxx
@@ -24,6 +24,7 @@
using namespace ::ooo::vba;
using namespace ::com::sun::star;
+/// @throws uno::RuntimeException
uno::Reference< container::XIndexAccess > createVariablesAccess( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< beans::XPropertyAccess >& xUserDefined ) throw ( uno::RuntimeException )
{
// FIXME: the performance is poor?
diff --git a/sw/source/ui/vba/vbaview.hxx b/sw/source/ui/vba/vbaview.hxx
index 5c6ee55ef49d..a69735d22e4f 100644
--- a/sw/source/ui/vba/vbaview.hxx
+++ b/sw/source/ui/vba/vbaview.hxx
@@ -35,9 +35,12 @@ private:
css::uno::Reference< css::text::XTextViewCursor > mxViewCursor;
css::uno::Reference< css::beans::XPropertySet > mxViewSettings;
+ /// @throws css::uno::RuntimeException
+ /// @throws css::script::BasicErrorException
css::uno::Reference< css::text::XTextRange > getHFTextRange( sal_Int32 nType ) throw (css::uno::RuntimeException, css::script::BasicErrorException, std::exception);
public:
+ /// @throws css::uno::RuntimeException
SwVbaView( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext,
const css::uno::Reference< css::frame::XModel >& rModel ) throw ( css::uno::RuntimeException );
virtual ~SwVbaView() override;
diff --git a/sw/source/ui/vba/vbawindow.hxx b/sw/source/ui/vba/vbawindow.hxx
index 5b9f02b9690d..5163f86ba275 100644
--- a/sw/source/ui/vba/vbawindow.hxx
+++ b/sw/source/ui/vba/vbawindow.hxx
@@ -30,6 +30,7 @@ typedef cppu::ImplInheritanceHelper< VbaWindowBase, ov::word::XWindow > WindowIm
class SwVbaWindow : public WindowImpl_BASE
{
public:
+ /// @throws css::uno::RuntimeException
SwVbaWindow(
const css::uno::Reference< ov::XHelperInterface >& xParent,
const css::uno::Reference< css::uno::XComponentContext >& xContext,
diff --git a/sw/source/ui/vba/vbawrapformat.hxx b/sw/source/ui/vba/vbawrapformat.hxx
index 749dad582521..5008197d7d55 100644
--- a/sw/source/ui/vba/vbawrapformat.hxx
+++ b/sw/source/ui/vba/vbawrapformat.hxx
@@ -34,8 +34,11 @@ private:
sal_Int32 mnSide;
private:
+ /// @throws css::uno::RuntimeException
void makeWrap() throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
float getDistance( const OUString& sName ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
void setDistance( const OUString& sName, float _distance ) throw (css::uno::RuntimeException);
public:
diff --git a/sw/source/ui/vba/wordvbahelper.hxx b/sw/source/ui/vba/wordvbahelper.hxx
index a51ae116c2d4..b66b310f154e 100644
--- a/sw/source/ui/vba/wordvbahelper.hxx
+++ b/sw/source/ui/vba/wordvbahelper.hxx
@@ -38,13 +38,21 @@ namespace ooo
//css::uno::Reference< css::frame::XModel > getCurrentDocument() throw (css::uno::RuntimeException);
SwDocShell* getDocShell( const css::uno::Reference< css::frame::XModel>& xModel );
SwView* getView( const css::uno::Reference< css::frame::XModel>& xModel );
+ /// @throws css::uno::RuntimeException
css::uno::Reference< css::text::XTextViewCursor > getXTextViewCursor( const css::uno::Reference< css::frame::XModel >& xModel ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
css::uno::Reference< css::style::XStyle > getCurrentPageStyle( const css::uno::Reference< css::frame::XModel >& xModel ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
css::uno::Reference< css::style::XStyle > getCurrentPageStyle( const css::uno::Reference< css::frame::XModel>& xModel, const css::uno::Reference< css::beans::XPropertySet >& xProps ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
sal_Int32 getPageCount( const css::uno::Reference< css::frame::XModel>& xModel ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
css::uno::Reference< css::style::XStyle > getDefaultParagraphStyle( const css::uno::Reference< css::frame::XModel >& xModel ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
css::uno::Reference< css::text::XTextRange > getFirstObjectPosition( const css::uno::Reference< css::text::XText >& xText ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
css::uno::Reference< css::text::XText > getCurrentXText( const css::uno::Reference< css::frame::XModel>& xModel ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
bool gotoSelectedObjectAnchor( const css::uno::Reference< css::frame::XModel>& xModel ) throw (css::uno::RuntimeException);
enum E_DIRECTION