diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2023-03-10 10:03:49 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2023-03-21 15:00:25 +0000 |
commit | 74e8476d23b72f06328dcbe183597847471771e1 (patch) | |
tree | 9f096a3bbce152561e4fd3b2169415727f8138b5 /include | |
parent | 5f5e1a3204b98b9e74bded50ba0eddd4fb371301 (diff) |
jsdialog: add wrapper for ScrolledWindow
Change-Id: I59489e4cf1e5fb492272108e3a19afb4212753f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148610
Tested-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149200
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/jsdialog/executor.hxx | 10 | ||||
-rw-r--r-- | include/vcl/weld.hxx | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/vcl/jsdialog/executor.hxx b/include/vcl/jsdialog/executor.hxx index 9bccad3f1865..50f71272bb61 100644 --- a/include/vcl/jsdialog/executor.hxx +++ b/include/vcl/jsdialog/executor.hxx @@ -27,6 +27,16 @@ public: static void trigger_changed(weld::IconView& rIconView) { rIconView.signal_selection_changed(); } + static void trigger_scrollv(weld::ScrolledWindow& rScrolledWindow) + { + rScrolledWindow.signal_vadjustment_changed(); + } + + static void trigger_scrollh(weld::ScrolledWindow& rScrolledWindow) + { + rScrolledWindow.signal_hadjustment_changed(); + } + static void trigger_toggled(weld::Toggleable& rButton) { rButton.signal_toggled(); } static void trigger_row_activated(weld::TreeView& rTreeView) diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index 4acece25f052..d22fa5eb616e 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -404,6 +404,8 @@ public: class VCL_DLLPUBLIC ScrolledWindow : virtual public Container { + friend class ::LOKTrigger; + Link<ScrolledWindow&, void> m_aVChangeHdl; Link<ScrolledWindow&, void> m_aHChangeHdl; |