Kaydet (Commit) 49a32f4b authored tarafından Caolán McNamara's avatar Caolán McNamara

replace a MessBox with a MessageDialog

Change-Id: Icf8cf2288f8d7000d885f8f63d39c294a0fc596b
üst 414530e9
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#include <svx/svxids.hrc> #include <svx/svxids.hrc>
#include <svx/dialogs.hrc> #include <svx/dialogs.hrc>
#include <svl/itempool.hxx> #include <svl/itempool.hxx>
#include <vcl/msgbox.hxx> #include <vcl/layout.hxx>
#include <sfx2/request.hxx> #include <sfx2/request.hxx>
#include <svl/stritem.hxx> #include <svl/stritem.hxx>
#include <vcl/prntypes.hxx> #include <vcl/prntypes.hxx>
...@@ -369,12 +369,10 @@ const SfxItemSet* FuPage::ExecuteDialog( vcl::Window* pParent ) ...@@ -369,12 +369,10 @@ const SfxItemSet* FuPage::ExecuteDialog( vcl::Window* pParent )
// notice-masterpage (at the moment) // notice-masterpage (at the moment)
if( ePageKind != PK_NOTES ) if( ePageKind != PK_NOTES )
{ {
ScopedVclPtrInstance<MessBox> aQuestionBox ( ScopedVclPtrInstance<MessageDialog> aQuestionBox(
pParent, pParent, SD_RESSTR(STR_PAGE_BACKGROUND_TXT),
WB_YES_NO | WB_DEF_YES, VCL_MESSAGE_QUESTION, VCL_BUTTONS_YES_NO);
SD_RESSTR(STR_PAGE_BACKGROUND_TITLE), aQuestionBox->SetText(SD_RESSTR(STR_PAGE_BACKGROUND_TITLE));
SD_RESSTR(STR_PAGE_BACKGROUND_TXT) );
aQuestionBox->SetImage( QueryBox::GetStandardImage() );
bSetToAllPages = ( RET_YES == aQuestionBox->Execute() ); bSetToAllPages = ( RET_YES == aQuestionBox->Execute() );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment