diff options
-rw-r--r-- | sw/source/ui/config/mailconfigpage.cxx | 7 | ||||
-rw-r--r-- | sw/source/ui/dbui/mmresultdialogs.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/inc/mailconfigpage.hxx | 4 |
3 files changed, 8 insertions, 7 deletions
diff --git a/sw/source/ui/config/mailconfigpage.cxx b/sw/source/ui/config/mailconfigpage.cxx index 7d73d5e1c669..84a55e3e2d71 100644 --- a/sw/source/ui/config/mailconfigpage.cxx +++ b/sw/source/ui/config/mailconfigpage.cxx @@ -373,11 +373,12 @@ void SwTestAccountSettingsDialog::Test() } } -SwMailConfigDlg::SwMailConfigDlg(vcl::Window* pParent, SfxItemSet& rSet) - : SfxSingleTabDialog(pParent, rSet) +SwMailConfigDlg::SwMailConfigDlg(weld::Window* pParent, SfxItemSet& rSet) + : SfxSingleTabDialogController(pParent, rSet) { + TabPageParent pPageParent(get_content_area(), this); // create TabPage - SetTabPage(SwMailConfigPage::Create(get_content_area(), &rSet)); + SetTabPage(SwMailConfigPage::Create(pPageParent, &rSet)); } SwAuthenticationSettingsDialog::SwAuthenticationSettingsDialog( diff --git a/sw/source/ui/dbui/mmresultdialogs.cxx b/sw/source/ui/dbui/mmresultdialogs.cxx index f8a9ed00178c..e54ba944f16c 100644 --- a/sw/source/ui/dbui/mmresultdialogs.cxx +++ b/sw/source/ui/dbui/mmresultdialogs.cxx @@ -884,8 +884,8 @@ IMPL_LINK(SwMMResultEmailDialog, SendDocumentsHdl_Impl, Button*, pButton, void) { SwView* pConfigView = pTargetView ? pTargetView : pView; SfxAllItemSet aSet(pConfigView->GetPool()); - ScopedVclPtrInstance< SwMailConfigDlg > pDlg(pButton, aSet); - nRet = pDlg->Execute(); + SwMailConfigDlg aDlg(pButton->GetFrameWeld(), aSet); + nRet = aDlg.run(); } if(nRet != RET_OK && nRet != RET_YES) diff --git a/sw/source/uibase/inc/mailconfigpage.hxx b/sw/source/uibase/inc/mailconfigpage.hxx index 697bebb26827..0108662a5bcb 100644 --- a/sw/source/uibase/inc/mailconfigpage.hxx +++ b/sw/source/uibase/inc/mailconfigpage.hxx @@ -68,10 +68,10 @@ public: }; -class SwMailConfigDlg : public SfxSingleTabDialog +class SwMailConfigDlg : public SfxSingleTabDialogController { public: - SwMailConfigDlg(vcl::Window* pParent, SfxItemSet& rSet); + SwMailConfigDlg(weld::Window* pParent, SfxItemSet& rSet); }; #endif |