summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-09-08 12:17:31 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-09-08 14:43:23 +0100
commit29d5cb9af0fa513ebf6c703e67b34e600100ef46 (patch)
tree47d4b32e9eb58834cd861e83c1729f630a44ed90 /sw/source/ui
parent9f71d4e41aea338530ee297668b513645ae3d6b9 (diff)
SwMailConfigDlg can now be converted to SfxSingleTabDialog
Change-Id: Ic9895e027be8b5406dda7756a19127bd4edee63d
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/config/mailconfigpage.cxx10
-rw-r--r--sw/source/ui/inc/mailconfigpage.hxx6
2 files changed, 5 insertions, 11 deletions
diff --git a/sw/source/ui/config/mailconfigpage.cxx b/sw/source/ui/config/mailconfigpage.cxx
index c5379dd10d3f..3467a1894d82 100644
--- a/sw/source/ui/config/mailconfigpage.cxx
+++ b/sw/source/ui/config/mailconfigpage.cxx
@@ -409,15 +409,11 @@ void SwTestAccountSettingsDialog::Test()
}
}
-SwMailConfigDlg::SwMailConfigDlg(Window* pParent, SfxItemSet& rSet ) :
- SfxNoLayoutSingleTabDialog(pParent, rSet, 0)
+SwMailConfigDlg::SwMailConfigDlg(Window* pParent, SfxItemSet& rSet)
+ : SfxSingleTabDialog(pParent, rSet)
{
// create TabPage
- SetTabPage(SwMailConfigPage::Create( this, rSet ));
-}
-
-SwMailConfigDlg::~SwMailConfigDlg()
-{
+ setTabPage(SwMailConfigPage::Create(get_content_area(), rSet));
}
SwAuthenticationSettingsDialog::SwAuthenticationSettingsDialog(
diff --git a/sw/source/ui/inc/mailconfigpage.hxx b/sw/source/ui/inc/mailconfigpage.hxx
index 232929126611..ab5d3a5ff73c 100644
--- a/sw/source/ui/inc/mailconfigpage.hxx
+++ b/sw/source/ui/inc/mailconfigpage.hxx
@@ -67,12 +67,10 @@ public:
};
-class SwMailConfigDlg : public SfxNoLayoutSingleTabDialog
+class SwMailConfigDlg : public SfxSingleTabDialog
{
public:
-
- SwMailConfigDlg( Window* pParent, SfxItemSet& rSet );
- ~SwMailConfigDlg();
+ SwMailConfigDlg(Window* pParent, SfxItemSet& rSet);
};
#endif