summaryrefslogtreecommitdiff
path: root/svtools/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-19 17:50:25 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-19 18:03:12 +0100
commit2527c001408b17b5a740d81debcf97a1385932e0 (patch)
tree7935f00217ec102995b7cf4656bbfa3e8dbb9474 /svtools/source
parent9859ee7b1901449e63e4047554776f23c2de20ce (diff)
New loplugin:dynexcspec: Add @throws documentation, svtools
Change-Id: I274142728ea25be094343e3489758314e371a857
Diffstat (limited to 'svtools/source')
-rw-r--r--svtools/source/control/toolbarmenuimp.hxx14
-rw-r--r--svtools/source/control/valueimp.hxx1
-rw-r--r--svtools/source/graphic/graphicunofactory.cxx1
-rw-r--r--svtools/source/uno/treecontrolpeer.hxx4
-rw-r--r--svtools/source/uno/unoevent.cxx1
-rw-r--r--svtools/source/uno/unoimap.cxx1
6 files changed, 22 insertions, 0 deletions
diff --git a/svtools/source/control/toolbarmenuimp.hxx b/svtools/source/control/toolbarmenuimp.hxx
index 7ad29acf1b1e..5a43ba8b1cf9 100644
--- a/svtools/source/control/toolbarmenuimp.hxx
+++ b/svtools/source/control/toolbarmenuimp.hxx
@@ -86,7 +86,10 @@ public:
const css::uno::Reference< css::accessibility::XAccessibleContext >& GetAccessible();
+ /// @throws css::uno::RuntimeException
sal_Int32 getAccessibleChildCount() throw (css::uno::RuntimeException);
+ /// @throws css::lang::IndexOutOfBoundsException
+ /// @throws css::uno::RuntimeException
css::uno::Reference< css::accessibility::XAccessible > getAccessibleChild( sal_Int32 index ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException);
bool HasCheck() const
@@ -174,6 +177,8 @@ private:
state of being disposed). If that is the case then
DisposedException is thrown to inform the (indirect) caller of the
foul deed.
+
+ @throws css::lang::DisposedException
*/
void ThrowIfDisposed() throw (css::lang::DisposedException);
};
@@ -261,11 +266,20 @@ struct ToolbarMenu_Impl
void fireAccessibleEvent( short nEventId, const css::uno::Any& rOldValue, const css::uno::Any& rNewValue );
+ /// @throws css::uno::RuntimeException
sal_Int32 getAccessibleChildCount() throw (css::uno::RuntimeException);
+ /// @throws css::lang::IndexOutOfBoundsException
+ /// @throws css::uno::RuntimeException
css::uno::Reference< css::accessibility::XAccessible > getAccessibleChild( sal_Int32 index ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException);
+ /// @throws css::lang::IndexOutOfBoundsException
+ /// @throws css::uno::RuntimeException
css::uno::Reference< css::accessibility::XAccessible > getAccessibleChild( Control* pControl, sal_Int32 childIndex ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException);
+ /// @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);
void clearAccessibleSelection();
diff --git a/svtools/source/control/valueimp.hxx b/svtools/source/control/valueimp.hxx
index 04857d91d6a7..3a05b9a5656c 100644
--- a/svtools/source/control/valueimp.hxx
+++ b/svtools/source/control/valueimp.hxx
@@ -178,6 +178,7 @@ private:
state of being disposed). If that is the case then
DisposedException is thrown to inform the (indirect) caller of the
foul deed.
+ @throws css::lang::DisposedException
*/
void ThrowIfDisposed()
throw (css::lang::DisposedException);
diff --git a/svtools/source/graphic/graphicunofactory.cxx b/svtools/source/graphic/graphicunofactory.cxx
index eb8b75305a4d..fa2c98043c70 100644
--- a/svtools/source/graphic/graphicunofactory.cxx
+++ b/svtools/source/graphic/graphicunofactory.cxx
@@ -39,6 +39,7 @@ class GObjectImpl : public GObjectAccess_BASE
::osl::Mutex m_aMutex;
std::unique_ptr< GraphicObject > mpGObject;
public:
+ /// @throws uno::RuntimeException
explicit GObjectImpl(uno::Sequence< uno::Any > const & args) throw (uno::RuntimeException, std::exception);
// XGraphicObject
diff --git a/svtools/source/uno/treecontrolpeer.hxx b/svtools/source/uno/treecontrolpeer.hxx
index 367317319caf..2106cb18eece 100644
--- a/svtools/source/uno/treecontrolpeer.hxx
+++ b/svtools/source/uno/treecontrolpeer.hxx
@@ -113,6 +113,7 @@ public:
css::uno::Any SAL_CALL getProperty( const OUString& PropertyName ) throw(css::uno::RuntimeException, std::exception) override;
private:
+ /// @throws css::lang::IllegalArgumentException
UnoTreeListEntry* getEntry( const css::uno::Reference< css::awt::tree::XTreeNode >& xNode, bool bThrow = true ) throw (css::lang::IllegalArgumentException );
void disposeControl();
@@ -132,7 +133,10 @@ private:
static OUString getEntryString( const css::uno::Any& rValue );
+ /// @throws css::uno::RuntimeException
UnoTreeListBoxImpl& getTreeListBoxOrThrow() const throw (css::uno::RuntimeException );
+ /// @throws css::uno::RuntimeException
+ /// @throws css::lang::IllegalArgumentException
void ChangeNodesSelection( const css::uno::Any& rSelection, bool bSelect, bool bSetSelection ) throw( css::uno::RuntimeException, css::lang::IllegalArgumentException );
void onChangeDataModel( UnoTreeListBoxImpl& rTree, const css::uno::Reference< css::awt::tree::XTreeDataModel >& xDataModel );
diff --git a/svtools/source/uno/unoevent.cxx b/svtools/source/uno/unoevent.cxx
index c8a6a061b59b..e8f6cbd5cdcf 100644
--- a/svtools/source/uno/unoevent.cxx
+++ b/svtools/source/uno/unoevent.cxx
@@ -134,6 +134,7 @@ void getAnyFromMacro(Any& rAny, const SvxMacro& rMacro)
}
}
+/// @throws IllegalArgumentException
void getMacroFromAny(
SvxMacro& rMacro,
const Any& rAny)
diff --git a/svtools/source/uno/unoimap.cxx b/svtools/source/uno/unoimap.cxx
index 7fd31632e864..691df2d42565 100644
--- a/svtools/source/uno/unoimap.cxx
+++ b/svtools/source/uno/unoimap.cxx
@@ -516,6 +516,7 @@ public:
virtual ~SvUnoImageMap() override;
bool fillImageMap( ImageMap& rMap ) const;
+ /// @throws IllegalArgumentException
static SvUnoImageMapObject* getObject( const Any& aElement ) throw( IllegalArgumentException );
UNO3_GETIMPLEMENTATION_DECL( SvUnoImageMap )