diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-09-20 16:26:54 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-09-20 22:08:03 +0200 |
commit | 71b85d982269af1ec4616d6738cdadf5ea750f99 (patch) | |
tree | dd34052c4cca62860b6271cd18de5736ae82ac99 /cui/source/tabpages | |
parent | 7b4bb1d190642ec1c3b4bd9696d8261afe224fdc (diff) |
weld SvxDistributeDialog
Change-Id: I15ee19d825800fc99150292e04dbe4ff239589ba
Reviewed-on: https://gerrit.libreoffice.org/60829
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/source/tabpages')
-rw-r--r-- | cui/source/tabpages/dstribut.cxx | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/cui/source/tabpages/dstribut.cxx b/cui/source/tabpages/dstribut.cxx index 1e7fa0e46791..668fd610d80d 100644 --- a/cui/source/tabpages/dstribut.cxx +++ b/cui/source/tabpages/dstribut.cxx @@ -28,26 +28,19 @@ |* \************************************************************************/ -SvxDistributeDialog::SvxDistributeDialog(vcl::Window* pParent, +SvxDistributeDialog::SvxDistributeDialog(weld::Window* pParent, const SfxItemSet& rInAttrs, SvxDistributeHorizontal eHor, SvxDistributeVertical eVer) - : SfxSingleTabDialog(pParent, rInAttrs, "DistributionDialog", - "cui/ui/distributiondialog.ui") - , mpPage(nullptr) + : SfxSingleTabDialogController(pParent, rInAttrs, "cui/ui/distributiondialog.ui", + "DistributionDialog") { - mpPage = VclPtr<SvxDistributePage>::Create(get_content_area(), rInAttrs, eHor, eVer); + TabPageParent pPageParent(get_content_area(), this); + mpPage = VclPtr<SvxDistributePage>::Create(pPageParent, rInAttrs, eHor, eVer); SetTabPage(mpPage); } SvxDistributeDialog::~SvxDistributeDialog() { - disposeOnce(); -} - -void SvxDistributeDialog::dispose() -{ - mpPage.clear(); - SfxSingleTabDialog::dispose(); } /************************************************************************* |