summaryrefslogtreecommitdiff
path: root/toolkit/source/controls/table/AccessibleGridControlBase.cxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2025-01-23 17:29:32 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2025-01-24 07:38:15 +0100
commitc6c471546ee82d939092da3ac25a6548145c56c9 (patch)
tree296a18144c889028fe416800d17376ec4d616f91 /toolkit/source/controls/table/AccessibleGridControlBase.cxx
parent80409cacf1ea34f395848875d304326d2755e5c5 (diff)
toolkit a11y: Use pointers/refs to concrete TableControl class
Use pointers/references to the concrete TableControl class instead of the interface (abstract base class) IAccessibleTable, now that all relevant code is located inside toolkit since Change-Id: Ic93796bce96916192da7cfffcf1faf00905373c7 Author: Michael Weghorn <m.weghorn@posteo.de> Date: Thu Jan 23 16:26:57 2025 +0100 a11y: Move AccessibleGridControl* classes to toolkit and there's no more need to use an abstract interface to avoid dependencies between multiple modules anymore. As requested by loplugin:vclwidgets, use a VclPtr now for AccessibleGridControlAccess::m_pTable (now renamed to `m_xTable`). Getting rid of the IAccessibleTable base class altogether can be considered for a separate commit. Change-Id: I5c8c8ae22db3a7b3e1ba8cb751482a647bb9663a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180670 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'toolkit/source/controls/table/AccessibleGridControlBase.cxx')
-rw-r--r--toolkit/source/controls/table/AccessibleGridControlBase.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/toolkit/source/controls/table/AccessibleGridControlBase.cxx b/toolkit/source/controls/table/AccessibleGridControlBase.cxx
index 015baa8a8d11..df9edea866ab 100644
--- a/toolkit/source/controls/table/AccessibleGridControlBase.cxx
+++ b/toolkit/source/controls/table/AccessibleGridControlBase.cxx
@@ -18,6 +18,7 @@
*/
#include <controls/table/AccessibleGridControlBase.hxx>
+
#include <utility>
#include <vcl/accessibletable.hxx>
#include <vcl/svapp.hxx>
@@ -49,7 +50,7 @@ using namespace com::sun::star::accessibility::AccessibleStateType;
AccessibleGridControlBase::AccessibleGridControlBase(
css::uno::Reference< css::accessibility::XAccessible > xParent,
- ::vcl::table::IAccessibleTable& rTable,
+ svt::table::TableControl& rTable,
::vcl::table::AccessibleTableControlObjType eObjType ) :
AccessibleGridControlImplHelper( m_aMutex ),
m_xParent(std::move( xParent )),
@@ -428,7 +429,7 @@ sal_Int32 SAL_CALL AccessibleGridControlBase::getBackground( )
GridControlAccessibleElement::GridControlAccessibleElement( const css::uno::Reference< css::accessibility::XAccessible >& rxParent,
- ::vcl::table::IAccessibleTable& rTable,
+ svt::table::TableControl& rTable,
::vcl::table::AccessibleTableControlObjType eObjType )
: GridControlAccessibleElement_Base(rxParent, rTable, eObjType)
{