diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-02-26 16:53:37 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-02-27 11:22:49 +0100 |
commit | 082e69fefb7439fd4f3d543f0c402039e94c1e9c (patch) | |
tree | 8348cacdc54a15dae722b93fc198995756924fc0 /uui/source/openlocked.hxx | |
parent | f41a08183504a59d6ffc7a00ed7f24e6b19995ab (diff) |
convert various MessBox to weld::MessageDialog
Change-Id: I4d2d0393c753114aeb9bb7e646dfdc810f6caa38
Reviewed-on: https://gerrit.libreoffice.org/50398
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 'uui/source/openlocked.hxx')
-rw-r--r-- | uui/source/openlocked.hxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/uui/source/openlocked.hxx b/uui/source/openlocked.hxx index bb80a3c64146..c4835c8c1314 100644 --- a/uui/source/openlocked.hxx +++ b/uui/source/openlocked.hxx @@ -19,13 +19,15 @@ #ifndef INCLUDED_UUI_SOURCE_OPENLOCKED_HXX #define INCLUDED_UUI_SOURCE_OPENLOCKED_HXX -#include <vcl/msgbox.hxx> +#include <vcl/weld.hxx> -class OpenLockedQueryBox : public MessBox +class OpenLockedQueryBox { +private: + std::unique_ptr<weld::MessageDialog> m_xQueryBox; public: - OpenLockedQueryBox(vcl::Window* pParent, const std::locale& rResLocale, const OUString& rMessage, bool bEnableOverride); - virtual ~OpenLockedQueryBox() override; + OpenLockedQueryBox(weld::Window* pParent, const std::locale& rResLocale, const OUString& rMessage, bool bEnableOverride); + short run() { return m_xQueryBox->run(); } }; #endif |