diff options
Diffstat (limited to 'sd/source/ui/dlg')
-rw-r--r-- | sd/source/ui/dlg/brkdlg.cxx | 7 | ||||
-rw-r--r-- | sd/source/ui/dlg/sdtreelb.cxx | 7 |
2 files changed, 9 insertions, 5 deletions
diff --git a/sd/source/ui/dlg/brkdlg.cxx b/sd/source/ui/dlg/brkdlg.cxx index 9ef0228fb995..a0ffda6385d3 100644 --- a/sd/source/ui/dlg/brkdlg.cxx +++ b/sd/source/ui/dlg/brkdlg.cxx @@ -24,6 +24,7 @@ #include <svx/svdetc.hxx> #include <sfx2/app.hxx> #include <vcl/msgbox.hxx> +#include <vcl/weld.hxx> #include <sdattr.hxx> #include <sdresid.hxx> @@ -107,8 +108,10 @@ IMPL_LINK( BreakDlg, UpDate, void*, nInit, bool ) // update status bar or show a error message? if(nInit == reinterpret_cast<void*>(1)) { - ScopedVclPtrInstance< MessageDialog > aErrBox(this, SdResId(STR_BREAK_FAIL)); - aErrBox->Execute(); + std::unique_ptr<weld::MessageDialog> xErrBox(Application::CreateMessageDialog(GetFrameWeld(), + VclMessageType::Warning, VclButtonsType::Ok, + SdResId(STR_BREAK_FAIL))); + xErrBox->run(); } else { diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx index 57f1619f2613..71ac14cd518a 100644 --- a/sd/source/ui/dlg/sdtreelb.cxx +++ b/sd/source/ui/dlg/sdtreelb.cxx @@ -20,7 +20,7 @@ #include <sal/types.h> #include <sot/formats.hxx> #include <sot/storage.hxx> -#include <vcl/layout.hxx> +#include <vcl/weld.hxx> #include <svl/urihelper.hxx> #include <svx/svditer.hxx> #include <sfx2/docfile.hxx> @@ -841,8 +841,9 @@ SdDrawDocument* SdPageObjsTLB::GetBookmarkDoc(SfxMedium* pMed) if ( !mpBookmarkDoc ) { - ScopedVclPtrInstance< MessageDialog > aErrorBox(this, SdResId(STR_READ_DATA_ERROR)); - aErrorBox->Execute(); + std::unique_ptr<weld::MessageDialog> xErrorBox(Application::CreateMessageDialog(GetFrameWeld(), + VclMessageType::Warning, VclButtonsType::Ok, SdResId(STR_READ_DATA_ERROR))); + xErrorBox->run(); mpMedium = nullptr; //On failure the SfxMedium is invalid } } |