summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-09-08 17:06:56 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-09-08 20:44:25 +0100
commit1d0be858055595c1312d4b1e9f433c5b1690fd67 (patch)
treee00c74d41417255ec80b7193dbfe6808486525cc /sw/source/ui
parent7fd6d43c1dae1548aca5ae4ed6d63cbf7e10b7ea (diff)
SwDropCapsDlg can now be converted to SfxSingleTabDialog
Change-Id: I2d9baf887cf31789e0d439c4b9bbe3c1371b8f18
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/chrdlg/drpcps.cxx16
-rw-r--r--sw/source/ui/inc/drpcps.hxx8
2 files changed, 7 insertions, 17 deletions
diff --git a/sw/source/ui/chrdlg/drpcps.cxx b/sw/source/ui/chrdlg/drpcps.cxx
index 5bd791f2ba32..b6f3163fcd93 100644
--- a/sw/source/ui/chrdlg/drpcps.cxx
+++ b/sw/source/ui/chrdlg/drpcps.cxx
@@ -519,18 +519,12 @@ void SwDropCapsPict::_InitPrinter()
}
}
-SwDropCapsDlg::SwDropCapsDlg(Window *pParent, const SfxItemSet &rSet ) :
-
- SfxNoLayoutSingleTabDialog(pParent, rSet, 0)
-
-{
- SwDropCapsPage* pNewPage = (SwDropCapsPage*) SwDropCapsPage::Create(this, rSet);
- pNewPage->SetFormat(sal_False);
- SetTabPage(pNewPage);
-}
-
- SwDropCapsDlg::~SwDropCapsDlg()
+SwDropCapsDlg::SwDropCapsDlg(Window *pParent, const SfxItemSet &rSet )
+ : SfxSingleTabDialog(pParent, rSet)
{
+ SwDropCapsPage* pNewPage = (SwDropCapsPage*) SwDropCapsPage::Create(get_content_area(), rSet);
+ pNewPage->SetFormat(false);
+ setTabPage(pNewPage);
}
SwDropCapsPage::SwDropCapsPage(Window *pParent, const SfxItemSet &rSet)
diff --git a/sw/source/ui/inc/drpcps.hxx b/sw/source/ui/inc/drpcps.hxx
index 52ec44aa8d96..986c81483da9 100644
--- a/sw/source/ui/inc/drpcps.hxx
+++ b/sw/source/ui/inc/drpcps.hxx
@@ -36,14 +36,10 @@ class SwWrtShell;
// class SwDropCapsDlg ******************************************************
-class SwDropCapsDlg : public SfxNoLayoutSingleTabDialog
+class SwDropCapsDlg : public SfxSingleTabDialog
{
-
public:
-
- SwDropCapsDlg(Window *pParent, const SfxItemSet &rSet );
- ~SwDropCapsDlg();
-
+ SwDropCapsDlg(Window *pParent, const SfxItemSet &rSet );
};
class SwDropCapsPict;