summaryrefslogtreecommitdiff
path: root/sfx2/source/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-03-08 09:49:36 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-03-09 13:47:52 +0100
commit48bca65f1cf381cba7cb7a4c3916155a1bca0955 (patch)
treedf461652450b3e095e37a3290cbe54ab20cedfae /sfx2/source/inc
parentc468b6910bf77e332647725da70e3cb248a9de0e (diff)
inherit welded dialogs from a common ancestor
Change-Id: Ifa6c871a134cf89bfba71b1049a115cf7c953c42 Reviewed-on: https://gerrit.libreoffice.org/50936 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 'sfx2/source/inc')
-rw-r--r--sfx2/source/inc/alienwarn.hxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/sfx2/source/inc/alienwarn.hxx b/sfx2/source/inc/alienwarn.hxx
index 05f5a3835aee..5b93430882d8 100644
--- a/sfx2/source/inc/alienwarn.hxx
+++ b/sfx2/source/inc/alienwarn.hxx
@@ -21,11 +21,9 @@
#include <vcl/weld.hxx>
-class SfxAlienWarningDialog
+class SfxAlienWarningDialog : public weld::MessageDialogController
{
private:
- 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;
@@ -36,8 +34,7 @@ private:
public:
SfxAlienWarningDialog(weld::Window* pParent, const OUString& _rFormatName,
const OUString& _rDefaultExtension, bool rDefaultIsAlien);
- short run() { return m_xDialog->run(); }
- ~SfxAlienWarningDialog();
+ virtual ~SfxAlienWarningDialog() override;
};
#endif // INCLUDED_SFX2_SOURCE_INC_ALIENWARN_HXX