diff options
author | Henry Castro <hcastro@collabora.com> | 2022-02-23 14:42:03 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2022-07-05 19:54:33 +0200 |
commit | ed3270a522c487e172f78eab5ee449fd68591bed (patch) | |
tree | b40a3777e5f10a8d93cba822404c01e83b5d38f3 /include/vcl | |
parent | 5e9f1f1bf905987c172299eb82f4a1f0f5682ee8 (diff) |
lok: vcl: introduce set_cursor_data method
The ScEditWindow requires to assign a cursor,
so the child widget can send cursor invalidation
to client side.
Change-Id: I429d484a311f217f2419e38d50f8d9a422640221
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130446
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136829
Tested-by: Jenkins
Reviewed-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/customweld.hxx | 1 | ||||
-rw-r--r-- | include/vcl/weld.hxx | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/vcl/customweld.hxx b/include/vcl/customweld.hxx index e37555b36777..196608ee53a9 100644 --- a/include/vcl/customweld.hxx +++ b/include/vcl/customweld.hxx @@ -63,6 +63,7 @@ public: } virtual void Show() { m_pDrawingArea->show(); } virtual void Hide() { m_pDrawingArea->hide(); } + void SetCursor(void* pData) { m_pDrawingArea->set_cursor_data(pData); } void GrabFocus() { m_pDrawingArea->grab_focus(); } bool HasFocus() const { return m_pDrawingArea->has_focus(); } bool HasChildFocus() const { return m_pDrawingArea->has_child_focus(); } diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index 83e68002ce6c..bfd9ba30b189 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -219,6 +219,8 @@ public: virtual void set_tooltip_text(const OUString& rTip) = 0; virtual OUString get_tooltip_text() const = 0; + virtual void set_cursor_data(void* pData) = 0; + virtual void connect_focus_in(const Link<Widget&, void>& rLink) { assert(!m_aFocusInHdl.IsSet() || !rLink.IsSet()); |