diff options
Diffstat (limited to 'sc/source/ui/optdlg')
-rw-r--r-- | sc/source/ui/optdlg/tpcalc.cxx | 7 | ||||
-rw-r--r-- | sc/source/ui/optdlg/tpusrlst.cxx | 9 |
2 files changed, 10 insertions, 6 deletions
diff --git a/sc/source/ui/optdlg/tpcalc.cxx b/sc/source/ui/optdlg/tpcalc.cxx index 4a2e0a4e1a4a..3351289b43ce 100644 --- a/sc/source/ui/optdlg/tpcalc.cxx +++ b/sc/source/ui/optdlg/tpcalc.cxx @@ -21,6 +21,7 @@ #include <scitems.hxx> #include <vcl/msgbox.hxx> +#include <vcl/weld.hxx> #include <global.hxx> #include <globstr.hrc> @@ -235,9 +236,9 @@ DeactivateRC ScTpCalcOptions::DeactivatePage( SfxItemSet* pSetP ) if ( nReturn == DeactivateRC::KeepPage ) { - ScopedVclPtrInstance<MessageDialog>( this, - ScGlobal::GetRscString( STR_INVALID_EPS ) - )->Execute(); + std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(GetFrameWeld(), VclMessageType::Warning, + VclButtonsType::Ok, ScGlobal::GetRscString(STR_INVALID_EPS))); + xBox->run(); m_pEdEps->GrabFocus(); } diff --git a/sc/source/ui/optdlg/tpusrlst.cxx b/sc/source/ui/optdlg/tpusrlst.cxx index c43a82f5959a..4eb077076728 100644 --- a/sc/source/ui/optdlg/tpusrlst.cxx +++ b/sc/source/ui/optdlg/tpusrlst.cxx @@ -21,6 +21,7 @@ #include <comphelper/string.hxx> #include <vcl/msgbox.hxx> +#include <vcl/weld.hxx> #include <global.hxx> #include <document.hxx> @@ -692,9 +693,11 @@ IMPL_LINK( ScTpUserLists, BtnClickHdl, Button*, pBtn, void ) } else { - ScopedVclPtrInstance<MessageDialog>(this, - ScGlobal::GetRscString( STR_INVALID_TABREF ) - )->Execute(); + std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(GetFrameWeld(), + VclMessageType::Warning, VclButtonsType::Ok, + ScGlobal::GetRscString(STR_INVALID_TABREF))); + + xBox->run(); mpEdCopyFrom->GrabFocus(); mpEdCopyFrom->SetSelection( Selection( 0, SELECTION_MAX ) ); } |