summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2025-02-05 12:04:00 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2025-02-07 09:18:00 +0100
commitef5e4af1ce07dcbbb2c58864b0a5c6eb674cc28d (patch)
treeaec7da8e19a55a86e068d2b0a3c6a8ab81b8e5bf /vcl/source
parentad226c0fdf76a22f992f960e249b37ccf24feb34 (diff)
a11y: Rename IAccessibleTableProvider::GetFieldRectPixel
to IAccessibleTableProvider::calcFieldRectPixel. This aligns the naming with the IAccessibleTableProvider::calcHeaderRect and IAccessibleTableProvider::calcHeaderRect methods and prevents a name clash with the other BrowseBox::GetFieldRectPixel variant only taking 3 params in an upcoming commit that will drop the `_bOnScreen` param from the now renamed method. Change-Id: I156412f825a187d86390325050147cd84e934251 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181165 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/accessibility/AccessibleBrowseBoxHeaderCell.cxx2
-rw-r--r--vcl/source/accessibility/accessiblebrowseboxcell.cxx2
-rw-r--r--vcl/source/treelist/svtabbx.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/accessibility/AccessibleBrowseBoxHeaderCell.cxx b/vcl/source/accessibility/AccessibleBrowseBoxHeaderCell.cxx
index ca6843b50d7a..396e3fdce76f 100644
--- a/vcl/source/accessibility/AccessibleBrowseBoxHeaderCell.cxx
+++ b/vcl/source/accessibility/AccessibleBrowseBoxHeaderCell.cxx
@@ -117,7 +117,7 @@ tools::Rectangle AccessibleBrowseBoxHeaderCell::implGetBoundingBox()
nCol = 0;
}
- tools::Rectangle aRet(mpBrowseBox->GetFieldRectPixel(nRow , nCol, true, false));
+ tools::Rectangle aRet(mpBrowseBox->calcFieldRectPixel(nRow , nCol, true, false));
return tools::Rectangle(aRet.TopLeft() - Point(0, aRet.GetHeight()), aRet.GetSize());
}
diff --git a/vcl/source/accessibility/accessiblebrowseboxcell.cxx b/vcl/source/accessibility/accessiblebrowseboxcell.cxx
index 866ca88655b8..a3e897da6b1e 100644
--- a/vcl/source/accessibility/accessiblebrowseboxcell.cxx
+++ b/vcl/source/accessibility/accessiblebrowseboxcell.cxx
@@ -55,7 +55,7 @@ void SAL_CALL AccessibleBrowseBoxCell::grabFocus()
::tools::Rectangle AccessibleBrowseBoxCell::implGetBoundingBox()
{
- tools::Rectangle aCellRect = mpBrowseBox->GetFieldRectPixel(m_nRowPos, m_nColPos, false, /*bOnScreen*/false);
+ tools::Rectangle aCellRect = mpBrowseBox->calcFieldRectPixel(m_nRowPos, m_nColPos, false, /*bOnScreen*/false);
// above rect is relative to the browse box, convert it to be relative to the table (which is the cell's parent)
aCellRect.SetPos(aCellRect.TopLeft() - mpBrowseBox->calcTableRect(false).TopLeft());
return aCellRect;
diff --git a/vcl/source/treelist/svtabbx.cxx b/vcl/source/treelist/svtabbx.cxx
index b13786387507..e24a19d13dee 100644
--- a/vcl/source/treelist/svtabbx.cxx
+++ b/vcl/source/treelist/svtabbx.cxx
@@ -844,7 +844,7 @@ tools::Rectangle SvHeaderTabListBox::calcTableRect( bool _bOnScreen )
return tools::Rectangle(Point(0, 0), aScreenRect.GetSize());
}
-tools::Rectangle SvHeaderTabListBox::GetFieldRectPixel( sal_Int32 _nRow, sal_uInt16 _nColumn, bool _bIsHeader, bool _bOnScreen )
+tools::Rectangle SvHeaderTabListBox::calcFieldRectPixel( sal_Int32 _nRow, sal_uInt16 _nColumn, bool _bIsHeader, bool _bOnScreen )
{
DBG_ASSERT( !_bIsHeader || 0 == _nRow, "invalid parameters" );
tools::Rectangle aRect;