From c6c471546ee82d939092da3ac25a6548145c56c9 Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Thu, 23 Jan 2025 17:29:32 +0100 Subject: 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 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 --- toolkit/source/controls/table/AccessibleGridControlBase.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'toolkit/source/controls/table/AccessibleGridControlBase.cxx') 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 + #include #include #include @@ -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) { -- cgit