Kaydet (Commit) c3c6a5f6 authored tarafından Caolán McNamara's avatar Caolán McNamara

SwBackgroundDlg can now be converted to SfxSingleTabDialog

Change-Id: I6e15b914e022674e27a14023144fe7a3add0ed43
üst 98dab08e
......@@ -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: */
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment