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/inc/controls/table/AccessibleGridControlHeaderCell.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'toolkit/inc/controls/table/AccessibleGridControlHeaderCell.hxx') diff --git a/toolkit/inc/controls/table/AccessibleGridControlHeaderCell.hxx b/toolkit/inc/controls/table/AccessibleGridControlHeaderCell.hxx index 8f3022807e13..20d71e381b45 100644 --- a/toolkit/inc/controls/table/AccessibleGridControlHeaderCell.hxx +++ b/toolkit/inc/controls/table/AccessibleGridControlHeaderCell.hxx @@ -19,6 +19,7 @@ #pragma once #include +#include namespace accessibility { @@ -28,7 +29,7 @@ namespace accessibility public: AccessibleGridControlHeaderCell(sal_Int32 _nColumnRowId, const css::uno::Reference< css::accessibility::XAccessible >& rxParent, - ::vcl::table::IAccessibleTable& _rTable, + svt::table::TableControl& _rTable, ::vcl::table::AccessibleTableControlObjType _eObjType); /** @return The count of visible children. */ virtual sal_Int64 SAL_CALL getAccessibleChildCount() override; -- cgit