diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-21 14:33:59 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-03-21 21:43:34 +0100 |
commit | 678980ceaebd47916a4aafb448a3bfcfd5d3ca25 (patch) | |
tree | 2d0e382322407b414ba63a25d92866201317765d /include | |
parent | 625f341d4c1e7e1043702687a55a972f55cb8ebb (diff) |
add get_widget_for_response support
Change-Id: I49abb5e6621dbfe2fc92ef9c2a47568c62c372c2
Reviewed-on: https://gerrit.libreoffice.org/51709
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/dialog.hxx | 1 | ||||
-rw-r--r-- | include/vcl/weld.hxx | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/vcl/dialog.hxx b/include/vcl/dialog.hxx index 0b98901e32bb..6104def06236 100644 --- a/include/vcl/dialog.hxx +++ b/include/vcl/dialog.hxx @@ -178,6 +178,7 @@ public: void add_button(PushButton* pButton, int nResponse, bool bTransferOwnership); void set_default_response(int nResponse); + vcl::Window* get_widget_for_response(int nResponse); }; class VCL_DLLPUBLIC ModelessDialog : public Dialog diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index 58b0ddd80284..88c53b7e2336 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -124,6 +124,8 @@ public: ~WaitObject() { m_pWindow->set_busy_cursor(false); } }; +class Button; + class VCL_DLLPUBLIC Dialog : virtual public Window { private: @@ -138,6 +140,7 @@ public: virtual void add_button(const OUString& rText, int response, const OString& rHelpId = OString()) = 0; virtual void set_default_response(int response) = 0; + virtual Button* get_widget_for_response(int response) = 0; }; class VCL_DLLPUBLIC MessageDialog : virtual public Dialog |