From 1ed642a19958e65bccd21bbb7de8f03812c23ac5 Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Fri, 24 Jan 2025 10:40:53 +0100 Subject: toolkit a11y: Port away from TableControl::GetFieldCharacterBounds TableControl::GetFieldCharacterBounds ignores the first 2 params and just calls TableControl::GetCharacterBounds, so use the latter directly instead and drop the former. Change-Id: Ib2c799cdb5f8f8515ee771b241e1fd8567dc967d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180697 Tested-by: Jenkins Reviewed-by: Michael Weghorn --- toolkit/source/controls/table/AccessibleGridControlTableCell.cxx | 2 +- toolkit/source/controls/table/tablecontrol.cxx | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) (limited to 'toolkit/source/controls') diff --git a/toolkit/source/controls/table/AccessibleGridControlTableCell.cxx b/toolkit/source/controls/table/AccessibleGridControlTableCell.cxx index 2aba147012b4..79b21c0b326a 100644 --- a/toolkit/source/controls/table/AccessibleGridControlTableCell.cxx +++ b/toolkit/source/controls/table/AccessibleGridControlTableCell.cxx @@ -139,7 +139,7 @@ namespace accessibility throw IndexOutOfBoundsException(); return vcl::unohelper::ConvertToAWTRect( - m_aTable.GetFieldCharacterBounds(getRowPos(), getColumnPos(), nIndex)); + m_aTable.GetCharacterBounds(nIndex)); } sal_Int32 SAL_CALL AccessibleGridControlTableCell::getIndexAtPoint( const css::awt::Point& _aPoint ) diff --git a/toolkit/source/controls/table/tablecontrol.cxx b/toolkit/source/controls/table/tablecontrol.cxx index 61062df11739..f9cdbc8ef545 100644 --- a/toolkit/source/controls/table/tablecontrol.cxx +++ b/toolkit/source/controls/table/tablecontrol.cxx @@ -585,13 +585,6 @@ namespace svt::table _rStateSet |= AccessibleStateType::ACTIVE; } - - tools::Rectangle TableControl::GetFieldCharacterBounds(sal_Int32,sal_Int32,sal_Int32 nIndex) - { - return GetCharacterBounds(nIndex); - } - - sal_Int32 TableControl::GetFieldIndexAtPoint(sal_Int32,sal_Int32,const Point& _rPoint) { return GetIndexForPoint(_rPoint); -- cgit