summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorSascha Ballach <sab@openoffice.org>2002-01-18 10:57:22 +0000
committerSascha Ballach <sab@openoffice.org>2002-01-18 10:57:22 +0000
commita043ecb23648772e20cd61d66626d99c4e7c9bcd (patch)
treed3cd1cda16335cc820859e3d4fa5616883b578ac /sc/source/ui
parent54c8ea368449ffb55beece6402be0ed653cc39a6 (diff)
#95584#; getAccessibleChild method throws exception lang::IndexOutOfBoundsException
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/Accessibility/AccessibleDocument.cxx14
-rw-r--r--sc/source/ui/Accessibility/AccessibleTableBase.cxx10
-rw-r--r--sc/source/ui/inc/AccessibleDocument.hxx7
-rw-r--r--sc/source/ui/inc/AccessibleTableBase.hxx7
4 files changed, 23 insertions, 15 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleDocument.cxx b/sc/source/ui/Accessibility/AccessibleDocument.cxx
index 708c20f20800..ca3cb2be58c8 100644
--- a/sc/source/ui/Accessibility/AccessibleDocument.cxx
+++ b/sc/source/ui/Accessibility/AccessibleDocument.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: AccessibleDocument.cxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: sab $ $Date: 2002-01-18 09:54:14 $
+ * last change: $Author: sab $ $Date: 2002-01-18 11:57:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -149,7 +149,8 @@ long SAL_CALL
/// Return the specified child or NULL if index is invalid.
uno::Reference<XAccessible> SAL_CALL
ScAccessibleDocument::getAccessibleChild (long nIndex)
- throw (uno::RuntimeException)
+ throw (uno::RuntimeException,
+ lang::IndexOutOfBoundsException)
{
uno::Reference<XAccessible> xAccessible = GetChild(nIndex);
if (!xAccessible.is())
@@ -157,7 +158,12 @@ uno::Reference<XAccessible> SAL_CALL
if (nIndex == 0)
xAccessible = new ScAccessibleSpreadsheet(this, mxSheetView);
else
- DBG_ERROR("should return other childs here");
+ {
+ //DBG_ERROR("should return other childs here");
+ // there is no child with this index at the moment
+ throw lang::IndexOutOfBoundsException();
+ }
+
SetChild(nIndex, xAccessible);
}
return xAccessible;
diff --git a/sc/source/ui/Accessibility/AccessibleTableBase.cxx b/sc/source/ui/Accessibility/AccessibleTableBase.cxx
index 107447f8497b..1f9cac09acd9 100644
--- a/sc/source/ui/Accessibility/AccessibleTableBase.cxx
+++ b/sc/source/ui/Accessibility/AccessibleTableBase.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: AccessibleTableBase.cxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: sab $ $Date: 2002-01-18 09:54:14 $
+ * last change: $Author: sab $ $Date: 2002-01-18 11:57:22 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -336,11 +336,11 @@ long SAL_CALL
uno::Reference< XAccessible > SAL_CALL
ScAccessibleTableBase::getAccessibleChild (long nIndex)
- throw (uno::RuntimeException)
+ throw (uno::RuntimeException,
+ lang::IndexOutOfBoundsException)
{
DBG_ERROR("not implemented yet");
- uno::Reference< XAccessible > xAccessible;
- return xAccessible;
+ return SvAccessibleContextBase::getAccessibleChild(nIndex);
}
::rtl::OUString SAL_CALL
diff --git a/sc/source/ui/inc/AccessibleDocument.hxx b/sc/source/ui/inc/AccessibleDocument.hxx
index ec210ae0ad99..5665f8cdc639 100644
--- a/sc/source/ui/inc/AccessibleDocument.hxx
+++ b/sc/source/ui/inc/AccessibleDocument.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: AccessibleDocument.hxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: sab $ $Date: 2002-01-18 09:52:47 $
+ * last change: $Author: sab $ $Date: 2002-01-18 11:56:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -102,7 +102,8 @@ public:
/// Return the specified child or NULL if index is invalid.
virtual ::com::sun::star::uno::Reference< ::drafts::com::sun::star::accessibility::XAccessible> SAL_CALL
getAccessibleChild (long nIndex)
- throw (::com::sun::star::uno::RuntimeException);
+ throw (::com::sun::star::uno::RuntimeException,
+ ::com::sun::star::lang::IndexOutOfBoundsException);
/// Return the set of current states.
virtual ::com::sun::star::uno::Reference<
diff --git a/sc/source/ui/inc/AccessibleTableBase.hxx b/sc/source/ui/inc/AccessibleTableBase.hxx
index fa76f6b14cdb..7366e0bc2c0a 100644
--- a/sc/source/ui/inc/AccessibleTableBase.hxx
+++ b/sc/source/ui/inc/AccessibleTableBase.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: AccessibleTableBase.hxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: sab $ $Date: 2002-01-18 09:52:47 $
+ * last change: $Author: sab $ $Date: 2002-01-18 11:56:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -228,7 +228,8 @@ public:
// is overloaded to calculate this on demand
virtual ::com::sun::star::uno::Reference< ::drafts::com::sun::star::accessibility::XAccessible> SAL_CALL
getAccessibleChild (long nIndex)
- throw (::com::sun::star::uno::RuntimeException);
+ throw (::com::sun::star::uno::RuntimeException,
+ ::com::sun::star::lang::IndexOutOfBoundsException);
/// Return this object's description.
virtual ::rtl::OUString SAL_CALL