summaryrefslogtreecommitdiff
path: root/sw
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
parent8a12673c1727381ce8ab729759c3d9cd2069342e (diff)
New loplugin:dynexcspec: Add @throws documentation, sw
Change-Id: I2da2ce4cd247e7b9f973150917b4ee7bd7a0e0c4
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/textboxhelper.hxx2
-rw-r--r--sw/inc/unochart.hxx4
-rw-r--r--sw/inc/unocrsrhelper.hxx36
-rw-r--r--sw/inc/unodraw.hxx4
-rw-r--r--sw/inc/unoframe.hxx2
-rw-r--r--sw/inc/unosett.hxx2
-rw-r--r--sw/inc/unostyle.hxx3
-rw-r--r--sw/inc/unotbl.hxx1
-rw-r--r--sw/inc/unotext.hxx3
-rw-r--r--sw/inc/unotextrange.hxx1
-rw-r--r--sw/source/core/access/acccontext.hxx1
-rw-r--r--sw/source/core/access/accpara.hxx5
-rw-r--r--sw/source/core/access/accselectionhelper.hxx11
-rw-r--r--sw/source/core/access/acctable.cxx3
-rw-r--r--sw/source/core/access/textmarkuphelper.cxx2
-rw-r--r--sw/source/core/access/textmarkuphelper.hxx8
-rw-r--r--sw/source/core/inc/unobookmark.hxx6
-rw-r--r--sw/source/core/inc/unofreg.hxx2
-rw-r--r--sw/source/core/inc/unometa.hxx4
-rw-r--r--sw/source/core/inc/unoport.hxx13
-rw-r--r--sw/source/core/unocore/unocoll.cxx1
-rw-r--r--sw/source/core/unocore/unoidx.cxx4
-rw-r--r--sw/source/core/unocore/unoobj.cxx3
-rw-r--r--sw/source/core/unocore/unoobj2.cxx3
-rw-r--r--sw/source/core/unocore/unoparagraph.cxx12
-rw-r--r--sw/source/core/unocore/unosect.cxx8
-rw-r--r--sw/source/core/unocore/unosrch.cxx3
-rw-r--r--sw/source/core/unocore/unostyle.cxx4
-rw-r--r--sw/source/core/unocore/unotbl.cxx2
-rw-r--r--sw/source/core/unocore/unotext.cxx6
-rw-r--r--sw/source/filter/ww8/docxexportfilter.cxx1
-rw-r--r--sw/source/filter/ww8/rtfexportfilter.hxx1
-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
-rw-r--r--sw/source/uibase/inc/unoatxt.hxx1
-rw-r--r--sw/source/uibase/uno/unomailmerge.cxx1
97 files changed, 328 insertions, 2 deletions
diff --git a/sw/inc/textboxhelper.hxx b/sw/inc/textboxhelper.hxx
index e135b9286a67..40b6d9777456 100644
--- a/sw/inc/textboxhelper.hxx
+++ b/sw/inc/textboxhelper.hxx
@@ -94,6 +94,8 @@ public:
/// Count number of shapes on the page, excluding TextBoxes.
static sal_Int32 getCount(SdrPage* pPage);
/// Get a shape by index, excluding TextBoxes.
+ ///
+ /// @throws css::lang::IndexOutOfBoundsException
static css::uno::Any getByIndex(SdrPage* pPage, sal_Int32 nIndex) throw(css::lang::IndexOutOfBoundsException);
/// Get the order of the shape, excluding TextBoxes.
static sal_Int32 getOrdNum(const SdrObject* pObject);
diff --git a/sw/inc/unochart.hxx b/sw/inc/unochart.hxx
index 8c67a48e7540..24523ce388da 100644
--- a/sw/inc/unochart.hxx
+++ b/sw/inc/unochart.hxx
@@ -135,10 +135,14 @@ class SwChartDataProvider :
SwChartDataProvider( const SwChartDataProvider & ) = delete;
SwChartDataProvider & operator = ( const SwChartDataProvider & ) = delete;
+ /// @throws css::lang::IllegalArgumentException
+ /// @throws css::uno::RuntimeException
css::uno::Reference< css::chart2::data::XDataSource > SAL_CALL Impl_createDataSource( const css::uno::Sequence< css::beans::PropertyValue >& aArguments, bool bTestOnly = false )
throw (css::lang::IllegalArgumentException,
css::uno::RuntimeException,
std::exception);
+ /// @throws css::lang::IllegalArgumentException
+ /// @throws css::uno::RuntimeException
css::uno::Reference< css::chart2::data::XDataSequence > SAL_CALL Impl_createDataSequenceByRangeRepresentation( const OUString& aRangeRepresentation, bool bTestOnly = false )
throw (css::lang::IllegalArgumentException,
css::uno::RuntimeException,
diff --git a/sw/inc/unocrsrhelper.hxx b/sw/inc/unocrsrhelper.hxx
index 61e89be0360d..2f3e24fef394 100644
--- a/sw/inc/unocrsrhelper.hxx
+++ b/sw/inc/unocrsrhelper.hxx
@@ -96,6 +96,9 @@ namespace SwUnoCursorHelper
rUnoCursor.GetPoint()->nContent == rUnoCursor.GetContentNode()->Len();}
void resetCursorPropertyValue(const SfxItemPropertySimpleEntry& rEntry, SwPaM& rPam);
+ /// @throws css::lang::IllegalArgumentException
+ /// @throws css::io::IOException
+ /// @throws css::uno::RuntimeException
void InsertFile(SwUnoCursor* pUnoCursor,
const OUString& rURL,
const css::uno::Sequence< css::beans::PropertyValue >& rOptions)
@@ -120,14 +123,20 @@ namespace SwUnoCursorHelper
bool DocInsertStringSplitCR( SwDoc &rDoc,
const SwPaM &rNewCursor, const OUString &rText,
const bool bForceExpandHints );
+ /// @throws css::lang::IllegalArgumentException
+ /// @throws css::uno::RuntimeException
void makeRedline( SwPaM& rPaM, const OUString& RedlineType,
const css::uno::Sequence< css::beans::PropertyValue >& RedlineProperties )
throw (css::lang::IllegalArgumentException, css::uno::RuntimeException);
+ /// @throws css::lang::IllegalArgumentException
+ /// @throws css::uno::RuntimeException
void makeTableRowRedline( SwTableLine& rTableLine, const OUString& RedlineType,
const css::uno::Sequence< css::beans::PropertyValue >& RedlineProperties )
throw (css::lang::IllegalArgumentException, css::uno::RuntimeException);
+ /// @throws css::lang::IllegalArgumentException
+ /// @throws css::uno::RuntimeException
SW_DLLPUBLIC void makeTableCellRedline( SwTableBox& rTableBox, const OUString& RedlineType,
const css::uno::Sequence< css::beans::PropertyValue >& RedlineProperties )
throw (css::lang::IllegalArgumentException, css::uno::RuntimeException);
@@ -152,6 +161,11 @@ namespace SwUnoCursorHelper
SwSortOptions & rSortOpt);
/// @param bTableMode: attributes should be applied to a table selection
+ /// @throws css::beans::UnknownPropertyException
+ /// @throws css::beans::PropertyVetoException
+ /// @throws css::lang::IllegalArgumentException
+ /// @throws css::lang::WrappedTargetException
+ /// @throws css::uno::RuntimeException
void SetPropertyValue(
SwPaM& rPaM,
const SfxItemPropertySet & rPropSet,
@@ -164,6 +178,11 @@ namespace SwUnoCursorHelper
css::lang::WrappedTargetException,
css::uno::RuntimeException);
/// @param bTableMode: attributes should be applied to a table selection
+ /// @throws css::beans::UnknownPropertyException
+ /// @throws css::beans::PropertyVetoException
+ /// @throws css::lang::IllegalArgumentException
+ /// @throws css::lang::WrappedTargetException
+ /// @throws css::uno::RuntimeException
void SetPropertyValues(
SwPaM& rPaM,
const SfxItemPropertySet & rPropSet,
@@ -177,6 +196,9 @@ namespace SwUnoCursorHelper
css::lang::WrappedTargetException,
css::uno::RuntimeException,
std::exception);
+ /// @throws css::beans::UnknownPropertyException
+ /// @throws css::lang::WrappedTargetException
+ /// @throws css::uno::RuntimeException
css::uno::Any GetPropertyValue(
SwPaM& rPaM,
const SfxItemPropertySet & rPropSet,
@@ -185,6 +207,8 @@ namespace SwUnoCursorHelper
css::lang::WrappedTargetException,
css::uno::RuntimeException,
std::exception);
+ /// @throws css::beans::UnknownPropertyException
+ /// @throws css::uno::RuntimeException
css::uno::Sequence< css::beans::PropertyState > GetPropertyStates(
SwPaM & rPaM,
const SfxItemPropertySet & rPropSet,
@@ -195,18 +219,25 @@ namespace SwUnoCursorHelper
throw (css::beans::UnknownPropertyException,
css::uno::RuntimeException,
std::exception);
+ /// @throws css::beans::UnknownPropertyException
+ /// @throws css::uno::RuntimeException
css::beans::PropertyState GetPropertyState(
SwPaM & rPaM,
const SfxItemPropertySet & rPropSet,
const OUString & rPropertyName)
throw (css::beans::UnknownPropertyException,
css::uno::RuntimeException);
+ /// @throws css::beans::UnknownPropertyException
+ /// @throws css::uno::RuntimeException
void SetPropertyToDefault(
SwPaM & rPaM,
const SfxItemPropertySet & rPropSet,
const OUString & rPropertyName)
throw (css::beans::UnknownPropertyException,
css::uno::RuntimeException, std::exception);
+ /// @throws css::beans::UnknownPropertyException
+ /// @throws css::lang::WrappedTargetException
+ /// @throws css::uno::RuntimeException
css::uno::Any GetPropertyDefault(
SwPaM & rPaM,
const SfxItemPropertySet & rPropSet,
@@ -218,8 +249,13 @@ namespace SwUnoCursorHelper
bool SetPageDesc(
const css::uno::Any& rValue,
SwDoc & rDoc, SfxItemSet & rSet);
+ /// @throws css::lang::IllegalArgumentException
+ /// @throws css::uno::RuntimeException
void SetTextFormatColl(const css::uno::Any & rAny, SwPaM & rPaM)
throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception);
+ /// @throws css::lang::IllegalArgumentException
+ /// @throws css::uno::RuntimeException
+ /// @throws css::uno::DeploymentException
bool SetCursorPropertyValue(
SfxItemPropertySimpleEntry const& rEntry,
css::uno::Any const& rValue,
diff --git a/sw/inc/unodraw.hxx b/sw/inc/unodraw.hxx
index b7ef5beaa4ec..3d41e92e8552 100644
--- a/sw/inc/unodraw.hxx
+++ b/sw/inc/unodraw.hxx
@@ -203,6 +203,10 @@ class SwXShape : public SwXShapeBaseClass,
/** method to get property from aggregation object
@author OD
+
+ @throws css::beans::UnknownPropertyException
+ @throws css::lang::WrappedTargetException
+ @throws css::uno::RuntimeException
*/
css::uno::Any _getPropAtAggrObj( const OUString& _rPropertyName )
throw( css::beans::UnknownPropertyException,
diff --git a/sw/inc/unoframe.hxx b/sw/inc/unoframe.hxx
index d8de867286fa..322c060321ef 100644
--- a/sw/inc/unoframe.hxx
+++ b/sw/inc/unoframe.hxx
@@ -138,6 +138,8 @@ public:
virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw( css::uno::RuntimeException, std::exception ) override;
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception ) override;
+ /// @throws css::lang::IllegalArgumentException
+ /// @throws css::uno::RuntimeException
void attachToRange(const css::uno::Reference< css::text::XTextRange > & xTextRange)throw(css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception);
const SwFrameFormat* GetFrameFormat() const
diff --git a/sw/inc/unosett.hxx b/sw/inc/unosett.hxx
index 73ce65c600e8..a7cc9bda12c1 100644
--- a/sw/inc/unosett.hxx
+++ b/sw/inc/unosett.hxx
@@ -194,6 +194,8 @@ public:
css::uno::Sequence< css::beans::PropertyValue>
GetNumberingRuleByIndex(const SwNumRule& rNumRule, sal_Int32 nIndex)const;
+ /// @throws css::uno::RuntimeException
+ /// @throws css::lang::IllegalArgumentException
void SetNumberingRuleByIndex(SwNumRule& rNumRule,
const css::uno::Sequence< css::beans::PropertyValue>& rProperties, sal_Int32 nIndex)
throw (css::uno::RuntimeException, css::lang::IllegalArgumentException, std::exception);
diff --git a/sw/inc/unostyle.hxx b/sw/inc/unostyle.hxx
index 58bf8c74cb97..80f527ec7ba7 100644
--- a/sw/inc/unostyle.hxx
+++ b/sw/inc/unostyle.hxx
@@ -198,6 +198,9 @@ private:
IStyleAccess::SwAutoStyleFamily meFamily;
SwDoc& mrDoc;
+ /// @throws css::beans::UnknownPropertyException
+ /// @throws css::lang::WrappedTargetException
+ /// @throws css::uno::RuntimeException
css::uno::Sequence< css::uno::Any > SAL_CALL GetPropertyValues_Impl( const css::uno::Sequence< OUString >& aPropertyNames ) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException);
public:
diff --git a/sw/inc/unotbl.hxx b/sw/inc/unotbl.hxx
index f8aa668b897d..b4cf9a1a3ec4 100644
--- a/sw/inc/unotbl.hxx
+++ b/sw/inc/unotbl.hxx
@@ -111,6 +111,7 @@ public:
virtual OUString SAL_CALL getFormula( ) throw(css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setFormula( const OUString& aFormula ) throw(css::uno::RuntimeException, std::exception) override;
virtual double SAL_CALL getValue( ) throw(css::uno::RuntimeException, std::exception) override;
+ /// @throws css::uno::RuntimeException
double SAL_CALL getValue( ) const throw(css::uno::RuntimeException, std::exception)
{ return const_cast<SwXCell*>(this)->getValue(); };
virtual void SAL_CALL setValue( double nValue ) throw(css::uno::RuntimeException, std::exception) override;
diff --git a/sw/inc/unotext.hxx b/sw/inc/unotext.hxx
index 0271e308c654..fcfc86dabd21 100644
--- a/sw/inc/unotext.hxx
+++ b/sw/inc/unotext.hxx
@@ -63,6 +63,8 @@ private:
virtual void PrepareForAttach(
css::uno::Reference< css::text::XTextRange > & xRange,
SwPaM const & rPam);
+ /// @throws css::lang::IllegalArgumentException
+ /// @throws css::uno::RuntimeException
virtual bool CheckForOwnMemberMeta(
const SwPaM & rPam, const bool bAbsorb)
throw (css::lang::IllegalArgumentException,
@@ -86,6 +88,7 @@ public:
const SwDoc* GetDoc() const;
SwDoc* GetDoc();
+ /// @throws css::uno::RuntimeException
virtual css::uno::Reference< css::text::XTextCursor >
CreateCursor()
throw (css::uno::RuntimeException);
diff --git a/sw/inc/unotextrange.hxx b/sw/inc/unotextrange.hxx
index 11613bb12499..ae6941f2fcab 100644
--- a/sw/inc/unotextrange.hxx
+++ b/sw/inc/unotextrange.hxx
@@ -99,6 +99,7 @@ private:
void SetPositions(SwPaM const& rPam);
//TODO: new exception type for protected content
+ /// @throws css::uno::RuntimeException
void DeleteAndInsert(
const OUString& rText, const bool bForceExpandHints)
throw (css::uno::RuntimeException);
diff --git a/sw/source/core/access/acccontext.hxx b/sw/source/core/access/acccontext.hxx
index 31ed088111e4..6ffab870371c 100644
--- a/sw/source/core/access/acccontext.hxx
+++ b/sw/source/core/access/acccontext.hxx
@@ -178,6 +178,7 @@ protected:
bool IsEditableState();
+ /// @throws css::uno::RuntimeException
css::awt::Rectangle SAL_CALL
getBoundsImpl(bool bRelative)
throw (css::uno::RuntimeException, std::exception);
diff --git a/sw/source/core/access/accpara.hxx b/sw/source/core/access/accpara.hxx
index 95f941b4fc8a..22054d82935f 100644
--- a/sw/source/core/access/accpara.hxx
+++ b/sw/source/core/access/accpara.hxx
@@ -181,6 +181,7 @@ protected:
// handling of data for the text portions
// force update of new portion data
+ /// @throws css::uno::RuntimeException
void UpdatePortionData()
throw( css::uno::RuntimeException );
@@ -188,6 +189,7 @@ protected:
void ClearPortionData();
// get portion data; update if necessary
+ /// @throws css::uno::RuntimeException
SwAccessiblePortionData& GetPortionData()
throw( css::uno::RuntimeException )
{
@@ -222,6 +224,9 @@ protected:
// get boundaries of word/sentence/etc. for specified text type
// Does all argument checking, and then delegates to helper methods above.
+ /// @throws css::lang::IndexOutOfBoundsException
+ /// @throws css::lang::IllegalArgumentException
+ /// @throws css::uno::RuntimeException
bool GetTextBoundary( css::i18n::Boundary& rBound,
const OUString& rText,
sal_Int32 nPos,
diff --git a/sw/source/core/access/accselectionhelper.hxx b/sw/source/core/access/accselectionhelper.hxx
index dad67cc4cbe0..e1ab1e8924ef 100644
--- a/sw/source/core/access/accselectionhelper.hxx
+++ b/sw/source/core/access/accselectionhelper.hxx
@@ -32,6 +32,7 @@ class SwAccessibleSelectionHelper
/// get FE-Shell
SwFEShell* GetFEShell();
+ /// @throws css::lang::IndexOutOfBoundsException
void throwIndexOutOfBoundsException()
throw ( css::lang::IndexOutOfBoundsException );
@@ -41,24 +42,34 @@ public:
// XAccessibleSelection
+ /// @throws css::lang::IndexOutOfBoundsException
+ /// @throws css::uno::RuntimeException
void selectAccessibleChild(
sal_Int32 nChildIndex )
throw ( css::lang::IndexOutOfBoundsException,
css::uno::RuntimeException );
+ /// @throws css::lang::IndexOutOfBoundsException
+ /// @throws css::uno::RuntimeException
bool isAccessibleChildSelected(
sal_Int32 nChildIndex )
throw ( css::lang::IndexOutOfBoundsException,
css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
void selectAllAccessibleChildren( )
throw ( css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
sal_Int32 getSelectedAccessibleChildCount( )
throw ( css::uno::RuntimeException );
+ /// @throws css::lang::IndexOutOfBoundsException
+ /// @throws css::uno::RuntimeException
css::uno::Reference< css::accessibility::XAccessible > getSelectedAccessibleChild(
sal_Int32 nSelectedChildIndex )
throw ( css::lang::IndexOutOfBoundsException,
css::uno::RuntimeException);
// index has to be treated as global child index.
+ /// @throws css::lang::IndexOutOfBoundsException
+ /// @throws css::uno::RuntimeException
void deselectAccessibleChild(
sal_Int32 nChildIndex )
throw ( css::lang::IndexOutOfBoundsException,
diff --git a/sw/source/core/access/acctable.cxx b/sw/source/core/access/acctable.cxx
index 0402dd153d4e..7a2463c1905f 100644
--- a/sw/source/core/access/acctable.cxx
+++ b/sw/source/core/access/acctable.cxx
@@ -115,6 +115,8 @@ public:
inline Int32Set_Impl::const_iterator GetRowIter( sal_Int32 nRow ) const;
inline Int32Set_Impl::const_iterator GetColumnIter( sal_Int32 nCol ) const;
+ /// @throws lang::IndexOutOfBoundsException
+ /// @throws uno::RuntimeException
const SwFrame *GetCell( sal_Int32 nRow, sal_Int32 nColumn, SwAccessibleTable *pThis ) const
throw (lang::IndexOutOfBoundsException, uno::RuntimeException, std::exception);
const SwFrame *GetCellAtPos( sal_Int32 nLeft, sal_Int32 nTop ) const;
@@ -127,6 +129,7 @@ public:
SwAccTableSelHander_Impl& rSelHdl,
bool bColumns ) const;
+ /// @throws lang::IndexOutOfBoundsException
void CheckRowAndCol( sal_Int32 nRow, sal_Int32 nCol,
SwAccessibleTable *pThis ) const
throw(lang::IndexOutOfBoundsException );
diff --git a/sw/source/core/access/textmarkuphelper.cxx b/sw/source/core/access/textmarkuphelper.cxx
index 960c14ec5a98..407458aa75b2 100644
--- a/sw/source/core/access/textmarkuphelper.cxx
+++ b/sw/source/core/access/textmarkuphelper.cxx
@@ -33,6 +33,8 @@ using namespace com::sun::star;
// helper functions
namespace {
+ /// @throws css::lang::IllegalArgumentException
+ /// @throws css::uno::RuntimeException
const SwWrongList* getTextMarkupList( const SwTextNode& rTextNode,
const sal_Int32 nTextMarkupType )
throw (css::lang::IllegalArgumentException,
diff --git a/sw/source/core/access/textmarkuphelper.hxx b/sw/source/core/access/textmarkuphelper.hxx
index 08491b05d707..4c1a2f6223c2 100644
--- a/sw/source/core/access/textmarkuphelper.hxx
+++ b/sw/source/core/access/textmarkuphelper.hxx
@@ -41,10 +41,15 @@ class SwTextMarkupHelper
const SwWrongList& rTextMarkupList ); // #i108125#
~SwTextMarkupHelper() {}
+ /// @throws css::lang::IllegalArgumentException
+ /// @throws css::uno::RuntimeException
sal_Int32 getTextMarkupCount( const sal_Int32 nTextMarkupType )
throw (css::lang::IllegalArgumentException,
css::uno::RuntimeException);
+ /// @throws css::lang::IndexOutOfBoundsException
+ /// @throws css::lang::IllegalArgumentException
+ /// @throws css::uno::RuntimeException
css::accessibility::TextSegment getTextMarkup(
const sal_Int32 nTextMarkupIndex,
const sal_Int32 nTextMarkupType )
@@ -52,6 +57,9 @@ class SwTextMarkupHelper
css::lang::IllegalArgumentException,
css::uno::RuntimeException);
+ /// @throws css::lang::IndexOutOfBoundsException
+ /// @throws css::lang::IllegalArgumentException
+ /// @throws css::uno::RuntimeException
css::uno::Sequence< css::accessibility::TextSegment >
getTextMarkupAtIndex( const sal_Int32 nCharIndex,
const sal_Int32 nTextMarkupType )
diff --git a/sw/source/core/inc/unobookmark.hxx b/sw/source/core/inc/unobookmark.hxx
index 0cfa4ede4479..122f240cc604 100644
--- a/sw/source/core/inc/unobookmark.hxx
+++ b/sw/source/core/inc/unobookmark.hxx
@@ -55,12 +55,15 @@ private:
::sw::UnoImplPtr<Impl> m_pImpl;
protected:
-
+ /// @throws css::lang::IllegalArgumentException
+ /// @throws css::uno::RuntimeException
void attachToRangeEx(
const css::uno::Reference< css::text::XTextRange > & xTextRange,
IDocumentMarkAccess::MarkType eType)
throw (css::lang::IllegalArgumentException,
css::uno::RuntimeException );
+ /// @throws css::lang::IllegalArgumentException
+ /// @throws css::uno::RuntimeException
virtual void attachToRange(
const css::uno::Reference< css::text::XTextRange > & xTextRange)
throw (css::lang::IllegalArgumentException,
@@ -203,6 +206,7 @@ class SwXFieldmarkParameters
//SwClient
virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew ) override;
private:
+ /// @throws css::uno::RuntimeException
::sw::mark::IFieldmark::parameter_map_t* getCoreParameters() throw (css::uno::RuntimeException);
};
diff --git a/sw/source/core/inc/unofreg.hxx b/sw/source/core/inc/unofreg.hxx
index b7c2aeb20fbc..42339b84b75f 100644
--- a/sw/source/core/inc/unofreg.hxx
+++ b/sw/source/core/inc/unofreg.hxx
@@ -33,11 +33,13 @@ namespace com { namespace sun { namespace star { namespace lang {
// module
css::uno::Sequence< OUString > SAL_CALL SwUnoModule_getSupportedServiceNames() throw();
OUString SAL_CALL SwUnoModule_getImplementationName() throw();
+/// @throws css::uno::Exception
css::uno::Reference< css::uno::XInterface > SAL_CALL SwUnoModule_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory > &rSMgr ) throw( css::uno::Exception );
// writer documents
css::uno::Sequence< OUString > SAL_CALL SwTextDocument_getSupportedServiceNames() throw();
OUString SAL_CALL SwTextDocument_getImplementationName() throw();
+/// @throws css::uno::Exception
css::uno::Reference< css::uno::XInterface > SAL_CALL SwTextDocument_createInstance( const css::uno::Reference< css::lang::XMultiServiceFactory > &rSMgr, SfxModelFlags _nCreationFlags ) throw( css::uno::Exception );
#endif
diff --git a/sw/source/core/inc/unometa.hxx b/sw/source/core/inc/unometa.hxx
index c360af0e8373..2af5b0ad7a81 100644
--- a/sw/source/core/inc/unometa.hxx
+++ b/sw/source/core/inc/unometa.hxx
@@ -69,6 +69,8 @@ protected:
::sw::UnoImplPtr<Impl> m_pImpl;
+ /// @throws css::lang::IllegalArgumentException
+ /// @throws css::uno::RuntimeException
void SAL_CALL AttachImpl(
const css::uno::Reference< css::text::XTextRange > & xTextRange,
const sal_uInt16 nWhich)
@@ -102,6 +104,8 @@ public:
bool SetContentRange( SwTextNode *& rpNode, sal_Int32 & rStart, sal_Int32 & rEnd) const;
css::uno::Reference< css::text::XText > GetParentText() const;
+ /// @throws css::lang::IllegalArgumentException
+ /// @throws css::uno::RuntimeException
bool CheckForOwnMemberMeta(const SwPaM & rPam, const bool bAbsorb)
throw (css::lang::IllegalArgumentException,
css::uno::RuntimeException);
diff --git a/sw/source/core/inc/unoport.hxx b/sw/source/core/inc/unoport.hxx
index fa82c830c06c..154068af8e95 100644
--- a/sw/source/core/inc/unoport.hxx
+++ b/sw/source/core/inc/unoport.hxx
@@ -122,11 +122,18 @@ private:
void init(const SwUnoCursor* pPortionCursor);
protected:
-
+ /// @throws css::beans::UnknownPropertyException
+ /// @throws css::beans::PropertyVetoException
+ /// @throws css::lang::IllegalArgumentException
+ /// @throws css::lang::WrappedTargetException
+ /// @trhows css::uno::RuntimeException
void SAL_CALL SetPropertyValues_Impl(
const css::uno::Sequence< OUString >& aPropertyNames,
const css::uno::Sequence< css::uno::Any >& aValues )
throw(css::beans::UnknownPropertyException, css::beans::PropertyVetoException, css::lang::IllegalArgumentException, css::lang::WrappedTargetException, css::uno::RuntimeException);
+ /// @throws css::beans::UnknownPropertyException
+ /// @throws css::lang::WrappedTargetException
+ /// @trhows css::uno::RuntimeException
css::uno::Sequence< css::uno::Any > SAL_CALL GetPropertyValues_Impl(
const css::uno::Sequence< OUString >& aPropertyNames )
throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException);
@@ -134,6 +141,7 @@ protected:
void GetPropertyValue( css::uno::Any &rVal,
const SfxItemPropertySimpleEntry& rEntry, SwUnoCursor *pUnoCursor, SfxItemSet *&pSet );
+ /// @throws css::uno::RuntimeException
css::uno::Sequence<css::beans::GetDirectPropertyTolerantResult> SAL_CALL GetPropertyValuesTolerant_Impl(
const css::uno::Sequence< OUString >& rPropertyNames, bool bDirectValuesOnly )
throw (css::uno::RuntimeException, std::exception);
@@ -277,6 +285,7 @@ class SwXRedlinePortion : public SwXTextPortion
private:
SwRangeRedline const& m_rRedline;
+ /// @throws css::uno::RuntimeException
void Validate() throw (css::uno::RuntimeException);
using SwXTextPortion::GetPropertyValue;
@@ -290,8 +299,10 @@ public:
css::uno::Reference< css::text::XText > const& xParent,
bool const bIsStart);
+ /// @throws std::exception
static css::uno::Any GetPropertyValue(
OUString const& PropertyName, SwRangeRedline const& rRedline) throw (std::exception);
+ /// @throws std::exception
static css::uno::Sequence< css::beans::PropertyValue > CreateRedlineProperties(
SwRangeRedline const& rRedline, bool const bIsStart) throw (std::exception);
diff --git a/sw/source/core/unocore/unocoll.cxx b/sw/source/core/unocore/unocoll.cxx
index 814b1e92fdb1..6b183b033ff4 100644
--- a/sw/source/core/unocore/unocoll.cxx
+++ b/sw/source/core/unocore/unocoll.cxx
@@ -1038,6 +1038,7 @@ namespace
}
// runtime adapter for lcl_UnoWrapFrame
+ /// @throws uno::RuntimeException
uno::Any lcl_UnoWrapFrame(SwFrameFormat* pFormat, FlyCntType eType) throw(uno::RuntimeException)
{
switch(eType)
diff --git a/sw/source/core/unocore/unoidx.cxx b/sw/source/core/unocore/unoidx.cxx
index 5cd0397df4f3..a25780a4e67d 100644
--- a/sw/source/core/unocore/unoidx.cxx
+++ b/sw/source/core/unocore/unoidx.cxx
@@ -65,6 +65,7 @@
using namespace ::com::sun::star;
+/// @throws lang::IllegalArgumentException
static OUString
lcl_AnyToString(uno::Any const& rVal) throw (lang::IllegalArgumentException)
{
@@ -76,6 +77,7 @@ lcl_AnyToString(uno::Any const& rVal) throw (lang::IllegalArgumentException)
return sRet;
}
+/// @throws lang::IllegalArgumentException
static sal_Int16
lcl_AnyToInt16(uno::Any const& rVal) throw (lang::IllegalArgumentException)
{
@@ -87,6 +89,7 @@ lcl_AnyToInt16(uno::Any const& rVal) throw (lang::IllegalArgumentException)
return nRet;
}
+/// @throws lang::IllegalArgumentException
static bool
lcl_AnyToBool(uno::Any const& rVal) throw (lang::IllegalArgumentException)
{
@@ -98,6 +101,7 @@ lcl_AnyToBool(uno::Any const& rVal) throw (lang::IllegalArgumentException)
return bRet;
}
+/// @throws lang::IllegalArgumentException
template<typename T>
void lcl_AnyToBitMask(uno::Any const& rValue,
T & rBitMask, const T nBit)
diff --git a/sw/source/core/unocore/unoobj.cxx b/sw/source/core/unocore/unoobj.cxx
index 5bf08d500f69..d11c866405c4 100644
--- a/sw/source/core/unocore/unoobj.cxx
+++ b/sw/source/core/unocore/unoobj.cxx
@@ -206,6 +206,8 @@ void SwUnoCursorHelper::GetTextFromPam(SwPaM & rPam, OUString & rBuffer)
}
}
+/// @throws lang::IllegalArgumentException
+/// @throws uno::RuntimeException
static void
lcl_setCharStyle(SwDoc *const pDoc, const uno::Any & rValue, SfxItemSet & rSet)
throw (lang::IllegalArgumentException, uno::RuntimeException, std::exception)
@@ -232,6 +234,7 @@ lcl_setCharStyle(SwDoc *const pDoc, const uno::Any & rValue, SfxItemSet & rSet)
}
};
+/// @throws lang::IllegalArgumentException
static void
lcl_setAutoStyle(IStyleAccess & rStyleAccess, const uno::Any & rValue,
SfxItemSet & rSet, const bool bPara)
diff --git a/sw/source/core/unocore/unoobj2.cxx b/sw/source/core/unocore/unoobj2.cxx
index a8cf485f2839..a0100495b039 100644
--- a/sw/source/core/unocore/unoobj2.cxx
+++ b/sw/source/core/unocore/unoobj2.cxx
@@ -508,6 +508,9 @@ struct SwXParagraphEnumerationImpl final : public SwXParagraphEnumeration
SwUnoCursor& GetCursor()
{ return *m_pCursor; }
+ /// @throws container::NoSuchElementException
+ /// @throws lang::WrappedTargetException
+ /// @throws uno::RuntimeException
uno::Reference< text::XTextContent > NextElement_Impl()
throw (container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException);
};
diff --git a/sw/source/core/unocore/unoparagraph.cxx b/sw/source/core/unocore/unoparagraph.cxx
index 4ac356ece5b5..1dc1a8fa84a5 100644
--- a/sw/source/core/unocore/unoparagraph.cxx
+++ b/sw/source/core/unocore/unoparagraph.cxx
@@ -94,6 +94,8 @@ SwParaSelection::~SwParaSelection()
}
}
+/// @throws beans::UnknownPropertyException
+/// @throws uno::RuntimeException
static beans::PropertyState lcl_SwXParagraph_getPropertyState(
const SwTextNode& rTextNode,
const SwAttrSet** ppSet,
@@ -147,6 +149,11 @@ public:
bool IsDescriptor() const { return m_bIsDescriptor; }
+ /// @throws beans::UnknownPropertyException
+ /// @throws beans::PropertyVetoException
+ /// @throws lang::IllegalArgumentException
+ /// @throws lang::WrappedTargetException
+ /// @throws uno::RuntimeException
void SetPropertyValues_Impl(
const uno::Sequence< OUString >& rPropertyNames,
const uno::Sequence< uno::Any >& rValues)
@@ -154,6 +161,9 @@ public:
lang::IllegalArgumentException, lang::WrappedTargetException,
uno::RuntimeException);
+ /// @throws beans::UnknownPropertyException
+ /// @throws lang::WrappedTargetException
+ /// @throws uno::RuntimeException
uno::Sequence< uno::Any >
GetPropertyValues_Impl(
const uno::Sequence< OUString >& rPropertyNames)
@@ -161,12 +171,14 @@ public:
uno::RuntimeException, std::exception);
//UUUU
+ /// @throws uno::RuntimeException
void GetSinglePropertyValue_Impl(
const SfxItemPropertySimpleEntry& rEntry,
const SfxItemSet& rSet,
uno::Any& rAny ) const
throw(uno::RuntimeException);
+ /// @throws uno::RuntimeException
uno::Sequence< beans::GetDirectPropertyTolerantResult >
GetPropertyValuesTolerant_Impl(
const uno::Sequence< OUString >& rPropertyNames,
diff --git a/sw/source/core/unocore/unosect.cxx b/sw/source/core/unocore/unosect.cxx
index 39b2ddaf5954..96c0d35530f5 100644
--- a/sw/source/core/unocore/unosect.cxx
+++ b/sw/source/core/unocore/unosect.cxx
@@ -140,12 +140,20 @@ public:
return *pFormat;
}
+ /// @throws beans::UnknownPropertyException
+ /// @throws beans::PropertyVetoException,
+ /// @throws lang::IllegalArgumentException
+ /// @throws lang::WrappedTargetException,
+ /// @throws uno::RuntimeException
void SAL_CALL SetPropertyValues_Impl(
const uno::Sequence< OUString >& rPropertyNames,
const uno::Sequence< uno::Any >& aValues)
throw (beans::UnknownPropertyException, beans::PropertyVetoException,
lang::IllegalArgumentException, lang::WrappedTargetException,
uno::RuntimeException, std::exception);
+ /// @throws beans::UnknownPropertyException
+ /// @throws lang::WrappedTargetException,
+ /// @throws uno::RuntimeException
uno::Sequence< uno::Any > SAL_CALL
GetPropertyValues_Impl(
const uno::Sequence< OUString >& rPropertyNames)
diff --git a/sw/source/core/unocore/unosrch.cxx b/sw/source/core/unocore/unosrch.cxx
index d218881a827f..5f5c9cc6f30c 100644
--- a/sw/source/core/unocore/unosrch.cxx
+++ b/sw/source/core/unocore/unosrch.cxx
@@ -51,6 +51,9 @@ public:
SwSearchProperties_Impl();
~SwSearchProperties_Impl();
+ /// @throws beans::UnknownPropertyException
+ /// @throws lang::IllegalArgumentException
+ /// @throws uno::RuntimeException
void SetProperties(const uno::Sequence< beans::PropertyValue >& aSearchAttribs)
throw( beans::UnknownPropertyException, lang::IllegalArgumentException, uno::RuntimeException );
const uno::Sequence< beans::PropertyValue > GetProperties() const;
diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx
index ee0a421af411..53852a4b0987 100644
--- a/sw/source/core/unocore/unostyle.cxx
+++ b/sw/source/core/unocore/unostyle.cxx
@@ -380,6 +380,10 @@ public:
void Invalidate();
void ApplyDescriptorProperties();
void SetStyleName(const OUString& rSet){ m_sStyleName = rSet;}
+ /// @throws beans::PropertyVetoException
+ /// @throws lang::IllegalArgumentException
+ /// @throws lang::WrappedTargetException
+ /// @throws uno::RuntimeException
void SetStyleProperty(const SfxItemPropertySimpleEntry& rEntry, const SfxItemPropertySet& rPropSet, const uno::Any& rValue, SwStyleBase_Impl& rBase) throw(beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException, std::exception);
void PutItemToSet(const SvxSetItem* pSetItem, const SfxItemPropertySet& rPropSet, const SfxItemPropertySimpleEntry& rEntry, const uno::Any& rVal, SwStyleBase_Impl& rBaseImpl);
};
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index 0eab02785d22..1fa5f23b555d 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -207,6 +207,8 @@ static bool lcl_LineToSvxLine(const table::BorderLine& rLine, SvxBorderLine& rSv
return rLine.InnerLineWidth > 0 || rLine.OuterLineWidth > 0;
}
+/// @throws lang::IllegalArgumentException
+/// @throws uno::RuntimeException
static void lcl_SetSpecialProperty(SwFrameFormat* pFormat,
const SfxItemPropertySimpleEntry* pEntry,
const uno::Any& aValue)
diff --git a/sw/source/core/unocore/unotext.cxx b/sw/source/core/unocore/unotext.cxx
index 37ec4681d715..2a54d97c6301 100644
--- a/sw/source/core/unocore/unotext.cxx
+++ b/sw/source/core/unocore/unotext.cxx
@@ -92,6 +92,8 @@ public:
{
}
+ /// @throws lang::IllegalArgumentException
+ /// @throws uno::RuntimeException
uno::Reference< text::XTextRange >
finishOrAppendParagraph(
const uno::Sequence< beans::PropertyValue >&
@@ -99,11 +101,15 @@ public:
const uno::Reference< text::XTextRange >& xInsertPosition)
throw (lang::IllegalArgumentException, uno::RuntimeException, std::exception);
+ /// @throws lang::IllegalArgumentException
+ /// @throws uno::RuntimeException
sal_Int16 ComparePositions(
const uno::Reference<text::XTextRange>& xPos1,
const uno::Reference<text::XTextRange>& xPos2)
throw (lang::IllegalArgumentException, uno::RuntimeException);
+ /// @throws lang::IllegalArgumentException
+ /// @throws uno::RuntimeException
bool CheckForOwnMember(const SwPaM & rPaM)
throw (lang::IllegalArgumentException, uno::RuntimeException);
diff --git a/sw/source/filter/ww8/docxexportfilter.cxx b/sw/source/filter/ww8/docxexportfilter.cxx
index cf4acf222c63..6b4d1b016c3c 100644
--- a/sw/source/filter/ww8/docxexportfilter.cxx
+++ b/sw/source/filter/ww8/docxexportfilter.cxx
@@ -99,6 +99,7 @@ uno::Sequence< OUString > SAL_CALL DocxExport_getSupportedServiceNames() throw()
return uno::Sequence< OUString > { "com.sun.star.document.ExportFilter" };
}
+/// @throws uno::Exception
uno::Reference< uno::XInterface > SAL_CALL DocxExport_createInstance(const uno::Reference< uno::XComponentContext > & xCtx ) throw( uno::Exception )
{
return static_cast<cppu::OWeakObject*>(new DocxExportFilter( xCtx ));
diff --git a/sw/source/filter/ww8/rtfexportfilter.hxx b/sw/source/filter/ww8/rtfexportfilter.hxx
index d1896a742238..13921975b1f6 100644
--- a/sw/source/filter/ww8/rtfexportfilter.hxx
+++ b/sw/source/filter/ww8/rtfexportfilter.hxx
@@ -63,6 +63,7 @@ public:
OUString RtfExport_getImplementationName();
css::uno::Sequence<OUString> SAL_CALL RtfExport_getSupportedServiceNames() throw();
+/// @throws css::uno::Exception
css::uno::Reference<css::uno::XInterface> SAL_CALL RtfExport_createInstance(const css::uno::Reference<css::uno::XComponentContext>& xCtx) throw(css::uno::Exception);
#define IMPL_NAME_RTFEXPORT "com.sun.star.comp.Writer.RtfExport"
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
diff --git a/sw/source/uibase/inc/unoatxt.hxx b/sw/source/uibase/inc/unoatxt.hxx
index a991b1d7e0f0..feaf0ce69e04 100644
--- a/sw/source/uibase/inc/unoatxt.hxx
+++ b/sw/source/uibase/inc/unoatxt.hxx
@@ -47,6 +47,7 @@ class SwXBodyText;
typedef tools::SvRef<SwDocShell> SwDocShellRef;
#endif
+/// @throws css::uno::Exception
css::uno::Reference< css::uno::XInterface >
SAL_CALL SwXAutoTextContainer_createInstance(
const css::uno::Reference< css::lang::XMultiServiceFactory > & ) throw ( css::uno::Exception );
diff --git a/sw/source/uibase/uno/unomailmerge.cxx b/sw/source/uibase/uno/unomailmerge.cxx
index 3d055c45a005..5f73576d2fed 100644
--- a/sw/source/uibase/uno/unomailmerge.cxx
+++ b/sw/source/uibase/uno/unomailmerge.cxx
@@ -126,6 +126,7 @@ static CloseResult CloseModelAndDocSh(
return eResult;
}
+/// @throws RuntimeException
static bool LoadFromURL_impl(
Reference< frame::XModel > &rxModel,
SfxObjectShellRef &rxDocSh,