summaryrefslogtreecommitdiff
path: root/cui/source/tabpages/dstribut.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/tabpages/dstribut.cxx')
-rw-r--r--cui/source/tabpages/dstribut.cxx30
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*/)