diff options
Diffstat (limited to 'sfx2/source/inc/alienwarn.hxx')
-rw-r--r-- | sfx2/source/inc/alienwarn.hxx | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/sfx2/source/inc/alienwarn.hxx b/sfx2/source/inc/alienwarn.hxx index 7d2414aad8bc..05f5a3835aee 100644 --- a/sfx2/source/inc/alienwarn.hxx +++ b/sfx2/source/inc/alienwarn.hxx @@ -19,21 +19,25 @@ #ifndef INCLUDED_SFX2_SOURCE_INC_ALIENWARN_HXX #define INCLUDED_SFX2_SOURCE_INC_ALIENWARN_HXX -#include <vcl/button.hxx> -#include <vcl/messagedialog.hxx> +#include <vcl/weld.hxx> -class SfxAlienWarningDialog : public MessageDialog +class SfxAlienWarningDialog { private: - VclPtr<PushButton> m_pKeepCurrentBtn; - VclPtr<PushButton> m_pUseDefaultFormatBtn; - VclPtr<CheckBox> m_pWarningOnBox; + std::unique_ptr<weld::Builder> m_xBuilder; + std::unique_ptr<weld::MessageDialog> m_xDialog; + std::unique_ptr<weld::Button> m_xKeepCurrentBtn; + std::unique_ptr<weld::Button> m_xUseDefaultFormatBtn; + std::unique_ptr<weld::CheckButton> m_xWarningOnBox; + + std::unique_ptr<weld::Container> m_xOrigParent; + std::unique_ptr<weld::Container> m_xContentArea; public: - SfxAlienWarningDialog(vcl::Window* pParent, const OUString& _rFormatName, + SfxAlienWarningDialog(weld::Window* pParent, const OUString& _rFormatName, const OUString& _rDefaultExtension, bool rDefaultIsAlien); - virtual ~SfxAlienWarningDialog() override; - virtual void dispose() override; + short run() { return m_xDialog->run(); } + ~SfxAlienWarningDialog(); }; #endif // INCLUDED_SFX2_SOURCE_INC_ALIENWARN_HXX |