summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/ui/dialog/addrdlg.cxx15
-rw-r--r--sw/source/ui/inc/addrdlg.hxx9
2 files changed, 6 insertions, 18 deletions
diff --git a/sw/source/ui/dialog/addrdlg.cxx b/sw/source/ui/dialog/addrdlg.cxx
index 0a9ebdc22c25..daf4a9514975 100644
--- a/sw/source/ui/dialog/addrdlg.cxx
+++ b/sw/source/ui/dialog/addrdlg.cxx
@@ -21,24 +21,17 @@
#include <svx/svxdlg.hxx>
#include <sfx2/sfx.hrc>
-SwAddrDlg::SwAddrDlg(Window* pParent, const SfxItemSet& rSet ) :
-
- SfxNoLayoutSingleTabDialog(pParent, rSet, 0)
-
+SwAddrDlg::SwAddrDlg(Window* pParent, const SfxItemSet& rSet)
+ : SfxSingleTabDialog(pParent, rSet)
{
SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create();
OSL_ENSURE(pFact, "Dialogdiet fail!");
::CreateTabPage fnCreatePage = pFact->GetTabPageCreatorFunc( RID_SFXPAGE_GENERAL );
if ( fnCreatePage )
{
- SfxTabPage* pPage2 = (*fnCreatePage)( this, rSet );
- SetTabPage(pPage2);
+ SfxTabPage* pPage2 = (*fnCreatePage)(get_content_area(), rSet);
+ setTabPage(pPage2);
}
}
-SwAddrDlg::~SwAddrDlg()
-{
-}
-
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/ui/inc/addrdlg.hxx b/sw/source/ui/inc/addrdlg.hxx
index a39bd49153a0..509a979c970a 100644
--- a/sw/source/ui/inc/addrdlg.hxx
+++ b/sw/source/ui/inc/addrdlg.hxx
@@ -21,17 +21,12 @@
#include <sfx2/basedlgs.hxx>
-class SwAddrDlg : public SfxNoLayoutSingleTabDialog
+class SwAddrDlg : public SfxSingleTabDialog
{
public:
-
- SwAddrDlg( Window* pParent, const SfxItemSet& rSet );
- ~SwAddrDlg();
+ SwAddrDlg(Window* pParent, const SfxItemSet& rSet);
};
#endif
-
-
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */