diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-09-08 17:14:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-09-08 20:44:26 +0100 |
commit | c3c6a5f68050a2abb49f37e6231fc77c1c4df543 (patch) | |
tree | 0594ed4908e8ef145e30f959f93c98c4c3d31883 /sw | |
parent | 98dab08ecb744b97286a5a2d7d4bef29c49aafa3 (diff) |
SwBackgroundDlg can now be converted to SfxSingleTabDialog
Change-Id: I6e15b914e022674e27a14023144fe7a3add0ed43
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/frmdlg/pattern.cxx | 24 | ||||
-rw-r--r-- | sw/source/ui/inc/pattern.hxx | 7 |
2 files changed, 6 insertions, 25 deletions
diff --git a/sw/source/ui/frmdlg/pattern.cxx b/sw/source/ui/frmdlg/pattern.cxx index 4b5b2ff0bdcf..f329ba42d41e 100644 --- a/sw/source/ui/frmdlg/pattern.cxx +++ b/sw/source/ui/frmdlg/pattern.cxx @@ -23,16 +23,8 @@ #include "pattern.hxx" #include "frmui.hrc" - -/**************************************************************************** -Ctor -****************************************************************************/ - - - -SwBackgroundDlg::SwBackgroundDlg(Window* pParent, const SfxItemSet& rSet) : - - SfxNoLayoutSingleTabDialog(pParent, rSet, 0) +SwBackgroundDlg::SwBackgroundDlg(Window* pParent, const SfxItemSet& rSet) + : SfxSingleTabDialog(pParent, rSet) { SetText(SW_RESSTR(STR_FRMUI_PATTERN)); @@ -41,19 +33,9 @@ SwBackgroundDlg::SwBackgroundDlg(Window* pParent, const SfxItemSet& rSet) : ::CreateTabPage fnCreatePage = pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BACKGROUND ); if ( fnCreatePage ) { - SetTabPage((*fnCreatePage)( this, rSet )); + setTabPage((*fnCreatePage)(get_content_area(), rSet)); } } -/**************************************************************************** -Dtor -****************************************************************************/ - - - -SwBackgroundDlg::~SwBackgroundDlg() -{ -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/inc/pattern.hxx b/sw/source/ui/inc/pattern.hxx index 66f9a5c00571..fc06b0be0151 100644 --- a/sw/source/ui/inc/pattern.hxx +++ b/sw/source/ui/inc/pattern.hxx @@ -21,15 +21,14 @@ #define _PATTERN_HXX #include <sfx2/basedlgs.hxx> + class Window; class SfxItemSet; -class SwBackgroundDlg : public SfxNoLayoutSingleTabDialog +class SwBackgroundDlg : public SfxSingleTabDialog { public: - - SwBackgroundDlg(Window* pParent, const SfxItemSet& rSet); - ~SwBackgroundDlg(); + SwBackgroundDlg(Window* pParent, const SfxItemSet& rSet); }; #endif |