diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-09-20 14:24:55 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-09-20 18:13:05 +0200 |
commit | f6ab12d5dae1212b0ad4e82ca3325f3dd4c974b6 (patch) | |
tree | 921d7e9de1fe7e323543489f85cd0f78f664057d /sw/source/ui/frmdlg/wrap.cxx | |
parent | 11a229c0094979b4980d8e3be8a8a7db60d01be7 (diff) |
weld SwWrapDlg
Change-Id: Ib60a44932764965ab6af3055d615771617737392
Reviewed-on: https://gerrit.libreoffice.org/60816
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/ui/frmdlg/wrap.cxx')
-rw-r--r-- | sw/source/ui/frmdlg/wrap.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sw/source/ui/frmdlg/wrap.cxx b/sw/source/ui/frmdlg/wrap.cxx index e20cf7677b90..d01dd02ab9a2 100644 --- a/sw/source/ui/frmdlg/wrap.cxx +++ b/sw/source/ui/frmdlg/wrap.cxx @@ -50,14 +50,15 @@ const sal_uInt16 SwWrapTabPage::m_aWrapPageRg[] = { 0 }; -SwWrapDlg::SwWrapDlg(vcl::Window* pParent, SfxItemSet& rSet, SwWrtShell* pWrtShell, bool bDrawMode) - : SfxSingleTabDialog(pParent, rSet, "WrapDialog", "modules/swriter/ui/wrapdialog.ui") +SwWrapDlg::SwWrapDlg(weld::Window* pParent, SfxItemSet& rSet, SwWrtShell* pWrtShell, bool bDrawMode) + : SfxSingleTabDialogController(pParent, rSet, "modules/swriter/ui/wrapdialog.ui", "WrapDialog") { // create TabPage - VclPtr<SwWrapTabPage> pNewPage = static_cast<SwWrapTabPage*>( SwWrapTabPage::Create(get_content_area(), &rSet).get() ); - pNewPage->SetFormatUsed(false, bDrawMode); - pNewPage->SetShell(pWrtShell); - SetTabPage(pNewPage); + TabPageParent pPageParent(get_content_area(), this); + VclPtr<SwWrapTabPage> xNewPage = static_cast<SwWrapTabPage*>(SwWrapTabPage::Create(pPageParent, &rSet).get()); + xNewPage->SetFormatUsed(false, bDrawMode); + xNewPage->SetShell(pWrtShell); + SetTabPage(xNewPage); } SwWrapTabPage::SwWrapTabPage(vcl::Window *pParent, const SfxItemSet &rSet) |