summaryrefslogtreecommitdiffstats
path: root/unotools/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-19 17:48:38 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-19 18:03:10 +0100
commit53d6df4f54d92bdb527ff2824561db998695e865 (patch)
treee1031aed2c4d759d6a3f5e3748e4381df60a56d9 /unotools/source
parentNew loplugin:dynexcspec: Add @throws documentation, unoxml (diff)
downloadcore-53d6df4f54d92bdb527ff2824561db998695e865.tar.gz
core-53d6df4f54d92bdb527ff2824561db998695e865.zip
New loplugin:dynexcspec: Add @throws documentation, unotools
Change-Id: Ie1adfe09bf5b63adecc0a5a67a042e6e678b58dd
Diffstat (limited to 'unotools/source')
-rw-r--r--unotools/source/accessibility/accessiblerelationsethelper.cxx6
-rw-r--r--unotools/source/accessibility/accessiblestatesethelper.cxx5
-rw-r--r--unotools/source/config/eventcfg.cxx11
-rw-r--r--unotools/source/ucbhelper/ucblockbytes.cxx2
4 files changed, 24 insertions, 0 deletions
diff --git a/unotools/source/accessibility/accessiblerelationsethelper.cxx b/unotools/source/accessibility/accessiblerelationsethelper.cxx
index 0792c85bf3fd..fcd42ab0c316 100644
--- a/unotools/source/accessibility/accessiblerelationsethelper.cxx
+++ b/unotools/source/accessibility/accessiblerelationsethelper.cxx
@@ -33,15 +33,21 @@ public:
AccessibleRelationSetHelperImpl(const AccessibleRelationSetHelperImpl& rImpl);
~AccessibleRelationSetHelperImpl();
+ /// @throws uno::RuntimeException
sal_Int32 getRelationCount( )
throw (uno::RuntimeException);
+ /// @throws lang::IndexOutOfBoundsException
+ /// @throws uno::RuntimeException
AccessibleRelation getRelation( sal_Int32 nIndex )
throw (lang::IndexOutOfBoundsException,
uno::RuntimeException);
+ /// @throws uno::RuntimeException
bool containsRelation( sal_Int16 aRelationType )
throw (uno::RuntimeException);
+ /// @throws uno::RuntimeException
AccessibleRelation getRelationByType( sal_Int16 aRelationType )
throw (uno::RuntimeException);
+ /// @throws uno::RuntimeException
void AddRelation(const AccessibleRelation& rRelation)
throw (uno::RuntimeException);
diff --git a/unotools/source/accessibility/accessiblestatesethelper.cxx b/unotools/source/accessibility/accessiblestatesethelper.cxx
index 549c360e3c0b..a6c1d9c67d2f 100644
--- a/unotools/source/accessibility/accessiblestatesethelper.cxx
+++ b/unotools/source/accessibility/accessiblestatesethelper.cxx
@@ -36,14 +36,19 @@ public:
AccessibleStateSetHelperImpl(const AccessibleStateSetHelperImpl& rImpl);
~AccessibleStateSetHelperImpl();
+ /// @throws uno::RuntimeException
bool IsEmpty () const
throw (uno::RuntimeException);
+ /// @throws uno::RuntimeException
bool Contains (sal_Int16 aState) const
throw (uno::RuntimeException);
+ /// @throws uno::RuntimeException
uno::Sequence<sal_Int16> GetStates() const
throw (uno::RuntimeException);
+ /// @throws uno::RuntimeException
void AddState(sal_Int16 aState)
throw (uno::RuntimeException);
+ /// @throws uno::RuntimeException
void RemoveState(sal_Int16 aState)
throw (uno::RuntimeException);
diff --git a/unotools/source/config/eventcfg.cxx b/unotools/source/config/eventcfg.cxx
index c331edefd150..a2faf43afbf3 100644
--- a/unotools/source/config/eventcfg.cxx
+++ b/unotools/source/config/eventcfg.cxx
@@ -95,11 +95,22 @@ public:
void Notify( const css::uno::Sequence<OUString>& aPropertyNames) override;
+ /// @throws css::lang::IllegalArgumentException
+ /// @throws css::container::NoSuchElementException
+ /// @throws css::lang::WrappedTargetException
+ /// @throws css::uno::RuntimeException
void SAL_CALL replaceByName( const OUString& aName, const css::uno::Any& aElement ) throw (css::lang::IllegalArgumentException, css::container::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException);
+ /// @throws css::container::NoSuchElementException
+ /// @throws css::lang::WrappedTargetException
+ /// @throws css::uno::RuntimeException
css::uno::Any SAL_CALL getByName( const OUString& aName ) throw (css::container::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
css::uno::Sequence< OUString > SAL_CALL getElementNames( ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
bool SAL_CALL hasByName( const OUString& aName ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
static css::uno::Type SAL_CALL getElementType( ) throw (css::uno::RuntimeException);
+ /// @throws css::uno::RuntimeException
bool SAL_CALL hasElements( ) throw (css::uno::RuntimeException);
OUString GetEventName( GlobalEventId nID );
};
diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx
index 7c0096e24cb6..bb885a3482ee 100644
--- a/unotools/source/ucbhelper/ucblockbytes.cxx
+++ b/unotools/source/ucbhelper/ucblockbytes.cxx
@@ -219,6 +219,8 @@ class Moderator
// returns. This would imply that these class must be refcounted!!!
public:
+ /// @throws ContentCreationException
+ /// @throws RuntimeException
Moderator(
Reference < XContent > const & xContent,
Reference < XInteractionHandler > const & xInteract,