diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-08 09:49:36 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-03-09 13:47:52 +0100 |
commit | 48bca65f1cf381cba7cb7a4c3916155a1bca0955 (patch) | |
tree | df461652450b3e095e37a3290cbe54ab20cedfae /sc/source/ui/miscdlgs/warnbox.cxx | |
parent | c468b6910bf77e332647725da70e3cb248a9de0e (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 'sc/source/ui/miscdlgs/warnbox.cxx')
-rw-r--r-- | sc/source/ui/miscdlgs/warnbox.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/miscdlgs/warnbox.cxx b/sc/source/ui/miscdlgs/warnbox.cxx index dbe87229c6f9..bc0302c4bcbd 100644 --- a/sc/source/ui/miscdlgs/warnbox.cxx +++ b/sc/source/ui/miscdlgs/warnbox.cxx @@ -26,8 +26,8 @@ #include <helpids.h> ScReplaceWarnBox::ScReplaceWarnBox(weld::Window* pParent) - : m_xBuilder(Application::CreateBuilder(pParent, "modules/scalc/ui/checkwarningdialog.ui")) - , m_xDialog(m_xBuilder->weld_message_dialog("CheckWarningDialog")) + : MessageDialogController(pParent, "modules/scalc/ui/checkwarningdialog.ui", + "CheckWarningDialog") // By default, the check box is ON, and the user needs to un-check it to // disable all future warnings. , m_xWarningOnBox(m_xBuilder->weld_check_button("ask")) @@ -49,7 +49,7 @@ ScReplaceWarnBox::~ScReplaceWarnBox() m_xOrigParent->add(m_xWarningOnBox.get()); } -short ScReplaceWarnBox::run() +short ScReplaceWarnBox::execute() { short nRet = RET_YES; if( SC_MOD()->GetInputOptions().GetReplaceCellsWarn() ) |