summaryrefslogtreecommitdiff
path: root/accessibility/inc/helper
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-07-19 15:19:28 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-07-20 08:15:29 +0200
commit0e8b7dd7a013dffe080148baac926a698f36ad85 (patch)
tree940962b117c06943784aa94f1116bf748a2d057c /accessibility/inc/helper
parent669d6ed4fa2e7a01c372a6e27dd5468ec8eb3077 (diff)
split GetWindowExtentsRelative asunder
sometimes it returns a relative position, sometimes an absolute position. Rather have two different methods with names that match what they return. Change-Id: Ie1e73c6be1c797fd59934c96866d1fef1f972b35 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154653 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'accessibility/inc/helper')
-rw-r--r--accessibility/inc/helper/IComboListBoxHelper.hxx2
-rw-r--r--accessibility/inc/helper/listboxhelper.hxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/accessibility/inc/helper/IComboListBoxHelper.hxx b/accessibility/inc/helper/IComboListBoxHelper.hxx
index eed2a757c1e4..749a0c7b6f7c 100644
--- a/accessibility/inc/helper/IComboListBoxHelper.hxx
+++ b/accessibility/inc/helper/IComboListBoxHelper.hxx
@@ -41,7 +41,7 @@ namespace accessibility
virtual OUString GetEntry( sal_Int32 nPos ) const = 0;
virtual tools::Rectangle GetDropDownPosSizePixel( ) const = 0;
virtual tools::Rectangle GetBoundingRectangle( sal_uInt16 nItem ) const = 0;
- virtual tools::Rectangle GetWindowExtentsRelative() = 0;
+ virtual tools::Rectangle GetWindowExtentsAbsolute() = 0;
virtual bool IsEnabled() const = 0;
virtual bool IsEntryVisible( sal_Int32 nPos ) const = 0;
virtual sal_uInt16 GetDisplayLineCount() const = 0;
diff --git a/accessibility/inc/helper/listboxhelper.hxx b/accessibility/inc/helper/listboxhelper.hxx
index dfadf37aa015..98b6d9ee2f51 100644
--- a/accessibility/inc/helper/listboxhelper.hxx
+++ b/accessibility/inc/helper/listboxhelper.hxx
@@ -49,7 +49,7 @@ public:
virtual tools::Rectangle GetDropDownPosSizePixel() const override
{
- tools::Rectangle aTemp = m_aComboListBox.GetWindowExtentsRelative(nullptr);
+ tools::Rectangle aTemp = m_aComboListBox.GetWindowExtentsAbsolute();
tools::Rectangle aRet = m_aComboListBox.GetDropDownPosSizePixel();
aRet.Move(aTemp.Left(), aTemp.Top());
return aRet;
@@ -74,9 +74,9 @@ public:
return aRect;
}
- virtual tools::Rectangle GetWindowExtentsRelative() override
+ virtual tools::Rectangle GetWindowExtentsAbsolute() override
{
- return m_aComboListBox.GetWindowExtentsRelative( nullptr );
+ return m_aComboListBox.GetWindowExtentsAbsolute();
}
virtual bool IsEnabled() const override