diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-11-26 13:30:22 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-11-27 15:13:45 +0000 |
commit | 49a32f4b2f1773df353bfd05af2f81d560025d18 (patch) | |
tree | edfe2b263ea1c21c04268c4c426c5e6181c355c6 /sd | |
parent | 414530e9b24313c04f0151f50b12e26bfe785f54 (diff) |
replace a MessBox with a MessageDialog
Change-Id: Icf8cf2288f8d7000d885f8f63d39c294a0fc596b
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/func/fupage.cxx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sd/source/ui/func/fupage.cxx b/sd/source/ui/func/fupage.cxx index 96a1ef37db05..431f885c73d7 100644 --- a/sd/source/ui/func/fupage.cxx +++ b/sd/source/ui/func/fupage.cxx @@ -26,7 +26,7 @@ #include <svx/svxids.hrc> #include <svx/dialogs.hrc> #include <svl/itempool.hxx> -#include <vcl/msgbox.hxx> +#include <vcl/layout.hxx> #include <sfx2/request.hxx> #include <svl/stritem.hxx> #include <vcl/prntypes.hxx> @@ -369,12 +369,10 @@ const SfxItemSet* FuPage::ExecuteDialog( vcl::Window* pParent ) // notice-masterpage (at the moment) if( ePageKind != PK_NOTES ) { - ScopedVclPtrInstance<MessBox> aQuestionBox ( - pParent, - WB_YES_NO | WB_DEF_YES, - SD_RESSTR(STR_PAGE_BACKGROUND_TITLE), - SD_RESSTR(STR_PAGE_BACKGROUND_TXT) ); - aQuestionBox->SetImage( QueryBox::GetStandardImage() ); + ScopedVclPtrInstance<MessageDialog> aQuestionBox( + pParent, SD_RESSTR(STR_PAGE_BACKGROUND_TXT), + VCL_MESSAGE_QUESTION, VCL_BUTTONS_YES_NO); + aQuestionBox->SetText(SD_RESSTR(STR_PAGE_BACKGROUND_TITLE)); bSetToAllPages = ( RET_YES == aQuestionBox->Execute() ); } |