diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-16 20:35:23 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-03-18 13:43:34 +0100 |
commit | 2fb266bb77722cd45af7346e99a8f214c3f8b198 (patch) | |
tree | 00901e9e800809ea30ab378be622446bb7804e46 /include/vcl/weld.hxx | |
parent | 6709db941ff3257226f48212d2c36ee1b0d68200 (diff) |
unify the message dialogs with extra widgets cases
Change-Id: I9ad3573b15d24c3d1737b9f450792952ae20a31b
Reviewed-on: https://gerrit.libreoffice.org/51476
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/vcl/weld.hxx')
-rw-r--r-- | include/vcl/weld.hxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index eb1f8501cf04..b6c635e89e57 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -613,13 +613,19 @@ private: protected: std::unique_ptr<weld::Builder> m_xBuilder; std::unique_ptr<weld::MessageDialog> m_xDialog; + std::unique_ptr<weld::Container> m_xContentArea; + std::unique_ptr<weld::Widget> m_xRelocate; + std::unique_ptr<weld::Container> m_xOrigParent; public: MessageDialogController(weld::Widget* pParent, const OUString& rUIFile, - const OString& rDialogId); + const OString& rDialogId, const OString& rRelocateId = OString()); ~MessageDialogController() override; void set_title(const OUString& rTitle) { m_xDialog->set_title(rTitle); } void set_help_id(const OString& rHelpId) { m_xDialog->set_help_id(rHelpId); } + void set_primary_text(const OUString& rText) { m_xDialog->set_primary_text(rText); } + OUString get_primary_text() const { return m_xDialog->get_primary_text(); } + void set_default_response(int response) { m_xDialog->set_default_response(response); } }; } #endif |