summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-19 18:01:19 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-19 18:03:26 +0100
commit68044e9ec6d17cac1695b0e87c8430df98ace80e (patch)
treea156709de9f1ac42869365c2a6c9ad64e6fef33a /accessibility
parent079abb8b46a53600352c6f99a391153684ed8a98 (diff)
New loplugin:dynexcspec: Add @throws documentation, accessibility
Change-Id: I4857292372116bd8330403456d415476a5435f11
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/inc/extended/AccessibleBrowseBoxBase.hxx8
-rw-r--r--accessibility/inc/extended/AccessibleBrowseBoxTable.hxx4
-rw-r--r--accessibility/inc/extended/AccessibleGridControlBase.hxx5
-rw-r--r--accessibility/inc/extended/AccessibleGridControlTable.hxx1
-rw-r--r--accessibility/inc/extended/accessibleiconchoicectrlentry.hxx5
-rw-r--r--accessibility/inc/extended/accessiblelistboxentry.hxx5
-rw-r--r--accessibility/inc/extended/listboxaccessible.hxx2
-rw-r--r--accessibility/source/extended/AccessibleBrowseBoxTableCell.cxx1
-rw-r--r--accessibility/source/extended/AccessibleGridControlTableCell.cxx1
-rw-r--r--accessibility/source/extended/accessibleiconchoicectrlentry.cxx1
-rw-r--r--accessibility/source/extended/accessiblelistboxentry.cxx1
-rw-r--r--accessibility/source/standard/vclxaccessiblelist.cxx1
-rw-r--r--accessibility/source/standard/vclxaccessiblelistitem.cxx1
13 files changed, 32 insertions, 4 deletions
diff --git a/accessibility/inc/extended/AccessibleBrowseBoxBase.hxx b/accessibility/inc/extended/AccessibleBrowseBoxBase.hxx
index dd65a8e6edad..81e81aa91c02 100644
--- a/accessibility/inc/extended/AccessibleBrowseBoxBase.hxx
+++ b/accessibility/inc/extended/AccessibleBrowseBoxBase.hxx
@@ -289,12 +289,16 @@ protected:
/** Locks all mutex's and calculates the bounding box relative to the
parent window.
- @return The bounding box (VCL rect.) relative to the parent object. */
+ @return The bounding box (VCL rect.) relative to the parent object.
+ @throws css::lang::DisposedException
+ */
Rectangle getBoundingBox()
throw ( css::lang::DisposedException );
/** Locks all mutex's and calculates the bounding box in screen
coordinates.
- @return The bounding box (VCL rect.) in screen coordinates. */
+ @return The bounding box (VCL rect.) in screen coordinates.
+ @throws css::lang::DisposedException
+ */
Rectangle getBoundingBoxOnScreen()
throw ( css::lang::DisposedException );
diff --git a/accessibility/inc/extended/AccessibleBrowseBoxTable.hxx b/accessibility/inc/extended/AccessibleBrowseBoxTable.hxx
index 2a2a74128e71..c4a3f01939ee 100644
--- a/accessibility/inc/extended/AccessibleBrowseBoxTable.hxx
+++ b/accessibility/inc/extended/AccessibleBrowseBoxTable.hxx
@@ -137,7 +137,9 @@ protected:
// internal helper methods
/** @attention This method requires a locked mutex.
- @return The XAccessibleTable interface of the specified header bar. */
+ @return The XAccessibleTable interface of the specified header bar.
+ @throws css::uno::RuntimeException
+ */
css::uno::Reference< css::accessibility::XAccessibleTable >
implGetHeaderBar( sal_Int32 nChildIndex )
throw ( css::uno::RuntimeException );
diff --git a/accessibility/inc/extended/AccessibleGridControlBase.hxx b/accessibility/inc/extended/AccessibleGridControlBase.hxx
index 4f05285a6027..3776fb4a0037 100644
--- a/accessibility/inc/extended/AccessibleGridControlBase.hxx
+++ b/accessibility/inc/extended/AccessibleGridControlBase.hxx
@@ -260,12 +260,15 @@ protected:
/** Locks all mutex's and calculates the bounding box relative to the
parent window.
- @return The bounding box (VCL rect.) relative to the parent object. */
+ @return The bounding box (VCL rect.) relative to the parent object.
+ @throws css::lang::DisposedException
+ */
Rectangle getBoundingBox()
throw ( css::lang::DisposedException );
///** Locks all mutex's and calculates the bounding box in screen
// coordinates.
// @return The bounding box (VCL rect.) in screen coordinates. */
+ /// @throws css::lang::DisposedException
Rectangle getBoundingBoxOnScreen()
throw ( css::lang::DisposedException );
diff --git a/accessibility/inc/extended/AccessibleGridControlTable.hxx b/accessibility/inc/extended/AccessibleGridControlTable.hxx
index a2faeb045284..ab88c0284a5e 100644
--- a/accessibility/inc/extended/AccessibleGridControlTable.hxx
+++ b/accessibility/inc/extended/AccessibleGridControlTable.hxx
@@ -195,6 +195,7 @@ protected:
//// internal helper methods
///** @attention This method requires a locked mutex.
// @return The XAccessibleTable interface of the specified header bar. */
+ /// @throws css::uno::RuntimeException
css::uno::Reference< css::accessibility::XAccessibleTable >
implGetHeaderBar( sal_Int32 nChildIndex )
throw ( css::uno::RuntimeException );
diff --git a/accessibility/inc/extended/accessibleiconchoicectrlentry.hxx b/accessibility/inc/extended/accessibleiconchoicectrlentry.hxx
index 66cfc092bed6..6217ea70f43b 100644
--- a/accessibility/inc/extended/accessibleiconchoicectrlentry.hxx
+++ b/accessibility/inc/extended/accessibleiconchoicectrlentry.hxx
@@ -78,12 +78,17 @@ namespace accessibility
bool IsAlive_Impl() const;
bool IsShowing_Impl() const;
+ /// @throws css::lang::DisposedException
+ /// @throws css::uno::RuntimeException
Rectangle GetBoundingBox()
throw (css::lang::DisposedException,
css::uno::RuntimeException);
+ /// @throws css::lang::DisposedException
+ /// @throws css::uno::RuntimeException
Rectangle GetBoundingBoxOnScreen()
throw (css::lang::DisposedException,
css::uno::RuntimeException);
+ /// @throws css::lang::DisposedException
void EnsureIsAlive() const throw ( css::lang::DisposedException );
protected:
diff --git a/accessibility/inc/extended/accessiblelistboxentry.hxx b/accessibility/inc/extended/accessiblelistboxentry.hxx
index 55cb1bb3b440..7b0a49538131 100644
--- a/accessibility/inc/extended/accessiblelistboxentry.hxx
+++ b/accessibility/inc/extended/accessiblelistboxentry.hxx
@@ -94,12 +94,17 @@ namespace accessibility
bool IsAlive_Impl() const;
bool IsShowing_Impl() const;
+ /// @throws css::lang::DisposedException
+ /// @throws css::uno::RuntimeException
Rectangle GetBoundingBox()
throw (css::lang::DisposedException,
css::uno::RuntimeException);
+ /// @throws css::lang::DisposedException
+ /// @throws css::uno::RuntimeException
Rectangle GetBoundingBoxOnScreen()
throw (css::lang::DisposedException,
css::uno::RuntimeException);
+ /// @throws css::lang::DisposedException
void EnsureIsAlive() const throw ( css::lang::DisposedException );
void NotifyAccessibleEvent( sal_Int16 _nEventId, const css::uno::Any& _aOldValue, const css::uno::Any& _aNewValue );
diff --git a/accessibility/inc/extended/listboxaccessible.hxx b/accessibility/inc/extended/listboxaccessible.hxx
index 013644a5e064..58576fd1e0e3 100644
--- a/accessibility/inc/extended/listboxaccessible.hxx
+++ b/accessibility/inc/extended/listboxaccessible.hxx
@@ -57,6 +57,8 @@ namespace accessibility
<p>Usually, you derive your class from both ListBoxAccessibleBase and XComponent,
and call XComponent::dispose here.</p>
+
+ @throws css::uno::RuntimeException
*/
virtual void SAL_CALL dispose() throw ( css::uno::RuntimeException, std::exception ) = 0;
diff --git a/accessibility/source/extended/AccessibleBrowseBoxTableCell.cxx b/accessibility/source/extended/AccessibleBrowseBoxTableCell.cxx
index ce61700ed334..edf942981311 100644
--- a/accessibility/source/extended/AccessibleBrowseBoxTableCell.cxx
+++ b/accessibility/source/extended/AccessibleBrowseBoxTableCell.cxx
@@ -27,6 +27,7 @@ namespace accessibility
{
namespace
{
+ /// @throws css::lang::IndexOutOfBoundsException
void checkIndex_Impl( sal_Int32 _nIndex, const OUString& _sText ) throw (css::lang::IndexOutOfBoundsException)
{
if ( _nIndex >= _sText.getLength() )
diff --git a/accessibility/source/extended/AccessibleGridControlTableCell.cxx b/accessibility/source/extended/AccessibleGridControlTableCell.cxx
index 7703b3f3a2ec..016eea27fc5b 100644
--- a/accessibility/source/extended/AccessibleGridControlTableCell.cxx
+++ b/accessibility/source/extended/AccessibleGridControlTableCell.cxx
@@ -30,6 +30,7 @@ namespace accessibility
{
// FIXME this is a copy'n'paste from
// source/extended/AccessibleBrowseBoxTableCell.cxx, get rid of that...
+ /// @throws css::lang::IndexOutOfBoundsException
void checkIndex_Impl( sal_Int32 _nIndex, const OUString& _sText ) throw (css::lang::IndexOutOfBoundsException)
{
if ( _nIndex >= _sText.getLength() )
diff --git a/accessibility/source/extended/accessibleiconchoicectrlentry.cxx b/accessibility/source/extended/accessibleiconchoicectrlentry.cxx
index 591c254e775a..ba08bff38279 100644
--- a/accessibility/source/extended/accessibleiconchoicectrlentry.cxx
+++ b/accessibility/source/extended/accessibleiconchoicectrlentry.cxx
@@ -42,6 +42,7 @@
namespace
{
+ /// @throws css::lang::IndexOutOfBoundsException
void checkActionIndex_Impl( sal_Int32 _nIndex ) throw (css::lang::IndexOutOfBoundsException)
{
if ( _nIndex < 0 || _nIndex >= ACCESSIBLE_ACTION_COUNT )
diff --git a/accessibility/source/extended/accessiblelistboxentry.cxx b/accessibility/source/extended/accessiblelistboxentry.cxx
index e2706d9a2004..ba5500f93ca3 100644
--- a/accessibility/source/extended/accessiblelistboxentry.cxx
+++ b/accessibility/source/extended/accessiblelistboxentry.cxx
@@ -47,6 +47,7 @@
namespace
{
+ /// @throws css::lang::IndexOutOfBoundsException
void checkActionIndex_Impl( sal_Int32 _nIndex ) throw (css::lang::IndexOutOfBoundsException)
{
if ( _nIndex < 0 || _nIndex >= ACCESSIBLE_ACTION_COUNT )
diff --git a/accessibility/source/standard/vclxaccessiblelist.cxx b/accessibility/source/standard/vclxaccessiblelist.cxx
index d0f87d3e9335..f134ca7d29ca 100644
--- a/accessibility/source/standard/vclxaccessiblelist.cxx
+++ b/accessibility/source/standard/vclxaccessiblelist.cxx
@@ -41,6 +41,7 @@ using namespace ::accessibility;
namespace
{
+ /// @throws css::lang::IndexOutOfBoundsException
void checkSelection_Impl( sal_Int32 _nIndex, const IComboListBoxHelper& _rListBox, bool bSelected )
throw (css::lang::IndexOutOfBoundsException)
{
diff --git a/accessibility/source/standard/vclxaccessiblelistitem.cxx b/accessibility/source/standard/vclxaccessiblelistitem.cxx
index 0ee2bb164080..07b7ea94a49e 100644
--- a/accessibility/source/standard/vclxaccessiblelistitem.cxx
+++ b/accessibility/source/standard/vclxaccessiblelistitem.cxx
@@ -43,6 +43,7 @@
namespace
{
+ /// @throws css::lang::IndexOutOfBoundsException
void checkIndex_Impl( sal_Int32 _nIndex, const OUString& _sText ) throw (css::lang::IndexOutOfBoundsException)
{
if ( _nIndex < 0 || _nIndex > _sText.getLength() )