summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2025-01-24 19:10:54 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2025-01-24 22:02:15 +0100
commit23d2869e9b74673a11a9f8c3d45a2f5e6990dc5c (patch)
treee97d88dc91422edd276b0128bb616f55b604b883 /toolkit
parent7107db3fe773629cc511eb5922bc9c28c9c5c60a (diff)
toolkit a11y: Drop AccessibleGridControlBase::getAccessibleIndexInParent
It effectively does the same as the base class implementation, OCommonAccessibleComponent::getAccessibleIndexInParent. Change-Id: I649841c4676009797612cbe0e6422dd088218a78 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180724 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/inc/controls/table/AccessibleGridControlBase.hxx3
-rw-r--r--toolkit/source/controls/table/AccessibleGridControlBase.cxx35
2 files changed, 0 insertions, 38 deletions
diff --git a/toolkit/inc/controls/table/AccessibleGridControlBase.hxx b/toolkit/inc/controls/table/AccessibleGridControlBase.hxx
index 960eca6b610a..22e6f4500006 100644
--- a/toolkit/inc/controls/table/AccessibleGridControlBase.hxx
+++ b/toolkit/inc/controls/table/AccessibleGridControlBase.hxx
@@ -70,9 +70,6 @@ public:
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL
getAccessibleParent() override;
- /** @return The index of this object among the parent's children. */
- virtual sal_Int64 SAL_CALL getAccessibleIndexInParent() override;
-
/** @return
The description of this object.
*/
diff --git a/toolkit/source/controls/table/AccessibleGridControlBase.cxx b/toolkit/source/controls/table/AccessibleGridControlBase.cxx
index add068d6dc7f..5b169f94b7dd 100644
--- a/toolkit/source/controls/table/AccessibleGridControlBase.cxx
+++ b/toolkit/source/controls/table/AccessibleGridControlBase.cxx
@@ -76,41 +76,6 @@ css::uno::Reference< css::accessibility::XAccessible > SAL_CALL AccessibleGridCo
return m_xParent;
}
-sal_Int64 SAL_CALL AccessibleGridControlBase::getAccessibleIndexInParent()
-{
- SolarMutexGuard g;
-
- ensureAlive();
-
- // -1 for child not found/no parent (according to specification)
- sal_Int64 nRet = -1;
-
- css::uno::Reference< uno::XInterface > xMeMyselfAndI( static_cast< css::accessibility::XAccessibleContext* >( this ), uno::UNO_QUERY );
-
- // iterate over parent's children and search for this object
- if( m_xParent.is() )
- {
- css::uno::Reference< css::accessibility::XAccessibleContext >
- xParentContext( m_xParent->getAccessibleContext() );
- if( xParentContext.is() )
- {
- css::uno::Reference< uno::XInterface > xChild;
-
- sal_Int64 nChildCount = xParentContext->getAccessibleChildCount();
- for( sal_Int64 nChild = 0; nChild < nChildCount; ++nChild )
- {
- xChild.set(xParentContext->getAccessibleChild( nChild ), css::uno::UNO_QUERY);
- if ( xMeMyselfAndI.get() == xChild.get() )
- {
- nRet = nChild;
- break;
- }
- }
- }
- }
- return nRet;
-}
-
OUString SAL_CALL AccessibleGridControlBase::getAccessibleDescription()
{
SolarMutexGuard g;