diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-02-27 10:11:52 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-02-27 17:25:59 +0100 |
commit | 9fcef57a34dbd88a98621dfaf8668fa076dd98f1 (patch) | |
tree | 844e9ca54e0b30faf1b71b42397b4a8143460a43 /sc/source/ui/view/spelleng.cxx | |
parent | aa4548d1f91e15b8711bbcbd2ad939247579f9a8 (diff) |
convert Redline warning dialog to .ui to get helpids
etc.
Change-Id: Ic5e6031fe99347f19002d5d8527b5632333fefb0
Reviewed-on: https://gerrit.libreoffice.org/50431
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/view/spelleng.cxx')
-rw-r--r-- | sc/source/ui/view/spelleng.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sc/source/ui/view/spelleng.cxx b/sc/source/ui/view/spelleng.cxx index 9e39ea9dfa61..7ef031f2c8c4 100644 --- a/sc/source/ui/view/spelleng.cxx +++ b/sc/source/ui/view/spelleng.cxx @@ -29,7 +29,6 @@ #include <sfx2/viewfrm.hxx> #include <vcl/settings.hxx> #include <vcl/svapp.hxx> -#include <vcl/msgbox.hxx> #include <vcl/weld.hxx> #include <spelldialog.hxx> @@ -307,10 +306,13 @@ bool ScSpellingEngine::ShowTableWrapDialog() { vcl::Window* pParent = GetDialogParent(); ScWaitCursorOff aWaitOff( pParent ); - ScopedVclPtrInstance<MessBox> aMsgBox( pParent, MessBoxStyle::YesNo | MessBoxStyle::DefaultYes, 0, - ScGlobal::GetRscString( STR_MSSG_DOSUBTOTALS_0 ), - ScGlobal::GetRscString( STR_SPELLING_BEGIN_TAB) ); - return aMsgBox->Execute() == RET_YES; + + std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(pParent ? pParent->GetFrameWeld() : nullptr, + VclMessageType::Question, VclButtonsType::YesNo, + ScGlobal::GetRscString(STR_SPELLING_BEGIN_TAB))); // "delete data?" + xBox->set_title(ScGlobal::GetRscString(STR_MSSG_DOSUBTOTALS_0)); + xBox->set_default_response(RET_YES); + return xBox->run() == RET_YES; } void ScSpellingEngine::ShowFinishDialog() |