accessibility/source/extended/AccessibleGridControlHeader.cxx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
New commits: commit f7ff0468616d3ed8ded78598649a32bcb4e1ef1a Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Wed Aug 2 13:42:35 2023 +0200 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Thu Aug 3 16:54:49 2023 +0200 tdf#156473 a11y: Implement AccessibleGridControlHeader::getAccessibleCellAt With this in place, selecting a grid control cell from the tdf#156473 example in Accerciser's treeview of the LO a11y hierarchy now shows a corresponding row and header cell. Change-Id: I89978051cdb285a02cbce7a560a788b6d24ca7ad Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155251 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/accessibility/source/extended/AccessibleGridControlHeader.cxx b/accessibility/source/extended/AccessibleGridControlHeader.cxx index 86b3228d42a8..ebe5f9d09d9e 100644 --- a/accessibility/source/extended/AccessibleGridControlHeader.cxx +++ b/accessibility/source/extended/AccessibleGridControlHeader.cxx @@ -161,11 +161,15 @@ sal_Bool SAL_CALL AccessibleGridControlHeader::isAccessibleColumnSelected( sal_I { return false; } -//not implemented + Reference< XAccessible > SAL_CALL AccessibleGridControlHeader::getAccessibleCellAt( - sal_Int32 /*nRow*/, sal_Int32 /*nColumn*/ ) + sal_Int32 nRow, sal_Int32 nColumn) { - return nullptr; + SolarMutexGuard g; + + ensureIsAlive(); + ensureIsValidAddress(nRow, nColumn); + return implGetChild(nRow, nColumn); } // not selectable sal_Bool SAL_CALL AccessibleGridControlHeader::isAccessibleSelected(