diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-08-26 15:07:45 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-08-26 21:57:39 +0200 |
commit | a387bf54a944212cff94dbd1182bb55ab39a4324 (patch) | |
tree | 0e8c0eaf04e2c2c2272e3bd43c7c094f45642031 /include | |
parent | bfece0e86e1df7f8fdee3067177ca1588712600c (diff) |
make get_extents_relative_to const
Change-Id: I031c42cd85395a777c20bdd052da4233bc2fedab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101414
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/svtools/brwbox.hxx | 2 | ||||
-rw-r--r-- | include/vcl/accessibletable.hxx | 2 | ||||
-rw-r--r-- | include/vcl/accessibletableprovider.hxx | 2 | ||||
-rw-r--r-- | include/vcl/toolkit/svtabbx.hxx | 2 | ||||
-rw-r--r-- | include/vcl/weld.hxx | 4 | ||||
-rw-r--r-- | include/vcl/window.hxx | 6 |
6 files changed, 9 insertions, 9 deletions
diff --git a/include/svtools/brwbox.hxx b/include/svtools/brwbox.hxx index 63796c752ef8..e466a89d4d14 100644 --- a/include/svtools/brwbox.hxx +++ b/include/svtools/brwbox.hxx @@ -826,7 +826,7 @@ public: virtual bool IsCellVisible( sal_Int32 _nRow, sal_uInt16 _nColumn ) const override; virtual OUString GetAccessibleCellText(long _nRow, sal_uInt16 _nColPos) const override; virtual bool GetGlyphBoundRects( const Point& rOrigin, const OUString& rStr, int nIndex, int nLen, MetricVector& rVector ) override; - virtual tools::Rectangle GetWindowExtentsRelative( vcl::Window *pRelativeWindow ) const override; + virtual tools::Rectangle GetWindowExtentsRelative(const vcl::Window *pRelativeWindow) const override; virtual void GrabFocus() override; virtual css::uno::Reference< css::accessibility::XAccessible > GetAccessible() override; virtual vcl::Window* GetAccessibleParentWindow() const override; diff --git a/include/vcl/accessibletable.hxx b/include/vcl/accessibletable.hxx index 88b1890f2805..8c2aeba6b7c3 100644 --- a/include/vcl/accessibletable.hxx +++ b/include/vcl/accessibletable.hxx @@ -74,7 +74,7 @@ public: AccessibleTableControlObjType eObjType ) const= 0; // Window - virtual tools::Rectangle GetWindowExtentsRelative( vcl::Window *pRelativeWindow ) const = 0; + virtual tools::Rectangle GetWindowExtentsRelative(const vcl::Window *pRelativeWindow) const = 0; virtual void GrabFocus()= 0; virtual css::uno::Reference< css::accessibility::XAccessible > GetAccessible()= 0; virtual vcl::Window* GetAccessibleParentWindow() const= 0; diff --git a/include/vcl/accessibletableprovider.hxx b/include/vcl/accessibletableprovider.hxx index ff24c98b04b0..b69548ef2355 100644 --- a/include/vcl/accessibletableprovider.hxx +++ b/include/vcl/accessibletableprovider.hxx @@ -114,7 +114,7 @@ public: virtual bool GetGlyphBoundRects( const Point& rOrigin, const OUString& rStr, int nIndex, int nLen, MetricVector& rVector ) = 0; // Window - virtual tools::Rectangle GetWindowExtentsRelative( vcl::Window *pRelativeWindow ) const = 0; + virtual tools::Rectangle GetWindowExtentsRelative(const vcl::Window *pRelativeWindow) const = 0; virtual void GrabFocus() = 0; virtual css::uno::Reference< css::accessibility::XAccessible > GetAccessible() = 0; virtual vcl::Window* GetAccessibleParentWindow() const = 0; diff --git a/include/vcl/toolkit/svtabbx.hxx b/include/vcl/toolkit/svtabbx.hxx index 3e1a8a00b032..e73cbc47c1e2 100644 --- a/include/vcl/toolkit/svtabbx.hxx +++ b/include/vcl/toolkit/svtabbx.hxx @@ -202,7 +202,7 @@ public: virtual bool GetGlyphBoundRects( const Point& rOrigin, const OUString& rStr, int nIndex, int nLen, MetricVector& rVector ) override; // Window - virtual tools::Rectangle GetWindowExtentsRelative( vcl::Window *pRelativeWindow ) const override; + virtual tools::Rectangle GetWindowExtentsRelative(const vcl::Window *pRelativeWindow) const override; virtual void GrabFocus() override; virtual css::uno::Reference< css::accessibility::XAccessible > GetAccessible() override; /** Creates and returns the accessible object of the whole BrowseBox. */ diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index 16be52e8054d..62a143a8565b 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -160,8 +160,8 @@ public: * either widget was not realized, or there was no common ancestor. * Otherwise true. */ - virtual bool get_extents_relative_to(Widget& rRelative, int& x, int& y, int& width, int& height) - = 0; + virtual bool get_extents_relative_to(const Widget& rRelative, int& x, int& y, int& width, + int& height) const = 0; virtual void set_accessible_name(const OUString& rName) = 0; virtual OUString get_accessible_name() const = 0; diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx index 42febb1df8a3..24b74328dc63 100644 --- a/include/vcl/window.hxx +++ b/include/vcl/window.hxx @@ -718,7 +718,7 @@ private: SAL_DLLPRIVATE vcl::Window* ImplGetTopmostFrameWindow(); - SAL_DLLPRIVATE tools::Rectangle ImplGetWindowExtentsRelative( vcl::Window *pRelativeWindow ) const; + SAL_DLLPRIVATE tools::Rectangle ImplGetWindowExtentsRelative(const vcl::Window *pRelativeWindow) const; SAL_DLLPRIVATE bool ImplStopDnd(); SAL_DLLPRIVATE void ImplStartDnd(); @@ -1042,9 +1042,9 @@ public: Point NormalizedScreenToOutputPixel( const Point& rPos ) const; Point OutputToAbsoluteScreenPixel( const Point& rPos ) const; Point AbsoluteScreenToOutputPixel( const Point& rPos ) const; - tools::Rectangle GetDesktopRectPixel() const; + tools::Rectangle GetDesktopRectPixel() const; // window extents including border and decoration - tools::Rectangle GetWindowExtentsRelative( vcl::Window *pRelativeWindow ) const; + tools::Rectangle GetWindowExtentsRelative(const vcl::Window *pRelativeWindow) const; bool IsScrollable() const; virtual void Scroll( long nHorzScroll, long nVertScroll, |