summaryrefslogtreecommitdiff
path: root/toolkit/source/controls
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2025-01-24 10:40:53 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2025-01-24 22:01:03 +0100
commit1ed642a19958e65bccd21bbb7de8f03812c23ac5 (patch)
tree1bdbc37c0e2f3a94e91dabb3958bb94f5a158b73 /toolkit/source/controls
parent7bdaccecdfd82fd2c6853be8d740a3a9dc466954 (diff)
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 <m.weghorn@posteo.de>
Diffstat (limited to 'toolkit/source/controls')
-rw-r--r--toolkit/source/controls/table/AccessibleGridControlTableCell.cxx2
-rw-r--r--toolkit/source/controls/table/tablecontrol.cxx7
2 files changed, 1 insertions, 8 deletions
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);