diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-08 09:22:59 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-08 10:13:50 +0000 |
commit | 094869634d491a96e9de109a14fe4fc8db90a30a (patch) | |
tree | 0571094ca6c39d8f64c085f4267494378815143d /cui/source/tabpages/dstribut.cxx | |
parent | 3d4753f551914d0841552fcd37f569cea16a9a9d (diff) |
can drop SfxNoLayoutSingleTabDialog use here now
Change-Id: I668b4f0b767d3a93a1407ae4ba7922235815a28b
Diffstat (limited to 'cui/source/tabpages/dstribut.cxx')
-rw-r--r-- | cui/source/tabpages/dstribut.cxx | 30 |
1 files changed, 9 insertions, 21 deletions
diff --git a/cui/source/tabpages/dstribut.cxx b/cui/source/tabpages/dstribut.cxx index 8604b878aa92..20dfb4580025 100644 --- a/cui/source/tabpages/dstribut.cxx +++ b/cui/source/tabpages/dstribut.cxx @@ -38,27 +38,15 @@ static sal_uInt16 pRanges[] = |* \************************************************************************/ -SvxDistributeDialog::SvxDistributeDialog( - Window* pParent, - const SfxItemSet& rInAttrs, - SvxDistributeHorizontal eHor, +SvxDistributeDialog::SvxDistributeDialog(Window* pParent, + const SfxItemSet& rInAttrs, SvxDistributeHorizontal eHor, SvxDistributeVertical eVer) -: SfxNoLayoutSingleTabDialog(pParent, rInAttrs, RID_SVXPAGE_DISTRIBUTE ), - mpPage(0L) -{ - mpPage = new SvxDistributePage(this, rInAttrs, eHor, eVer); - SetTabPage(mpPage); - SetText(mpPage->GetText()); -} - -/************************************************************************* -|* -|* Dtor -|* -\************************************************************************/ - -SvxDistributeDialog::~SvxDistributeDialog() + : SfxSingleTabDialog(pParent, rInAttrs, "DistributionDialog", + "cui/ui/distributiondialog.ui") + , mpPage(NULL) { + mpPage = new SvxDistributePage(get_content_area(), rInAttrs, eHor, eVer); + setTabPage(mpPage); } /************************************************************************* @@ -97,12 +85,12 @@ SvxDistributePage::SvxDistributePage(Window* pWindow, SfxTabPage* SvxDistributePage::Create(Window* pWindow, const SfxItemSet& rAttrs, SvxDistributeHorizontal eHor, SvxDistributeVertical eVer) { - return(new SvxDistributePage(pWindow, rAttrs, eHor, eVer)); + return new SvxDistributePage(pWindow, rAttrs, eHor, eVer); } sal_uInt16* SvxDistributePage::GetRanges() { - return(pRanges); + return pRanges; } void SvxDistributePage::PointChanged(Window* /*pWindow*/, RECT_POINT /*eRP*/) |