summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-09-28 20:24:35 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-09-30 16:08:26 +0200
commit7ec12ce7e449d7849b3e67c443783110e2a50a17 (patch)
treefb7c65758e1b0a0200880ef9d47f4421ca31bded
parent544243ea8a92e9761201941c033c341795328baf (diff)
weld SwMailConfigDlg
Change-Id: I6295eeb6938f654967d2fbfc86acd90b18d9d16e Reviewed-on: https://gerrit.libreoffice.org/61107 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sw/source/ui/config/mailconfigpage.cxx7
-rw-r--r--sw/source/ui/dbui/mmresultdialogs.cxx4
-rw-r--r--sw/source/uibase/inc/mailconfigpage.hxx4
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