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 @@ ...@@ -23,16 +23,8 @@
#include "pattern.hxx" #include "pattern.hxx"
#include "frmui.hrc" #include "frmui.hrc"
SwBackgroundDlg::SwBackgroundDlg(Window* pParent, const SfxItemSet& rSet)
/**************************************************************************** : SfxSingleTabDialog(pParent, rSet)
Ctor
****************************************************************************/
SwBackgroundDlg::SwBackgroundDlg(Window* pParent, const SfxItemSet& rSet) :
SfxNoLayoutSingleTabDialog(pParent, rSet, 0)
{ {
SetText(SW_RESSTR(STR_FRMUI_PATTERN)); SetText(SW_RESSTR(STR_FRMUI_PATTERN));
...@@ -41,19 +33,9 @@ SwBackgroundDlg::SwBackgroundDlg(Window* pParent, const SfxItemSet& rSet) : ...@@ -41,19 +33,9 @@ SwBackgroundDlg::SwBackgroundDlg(Window* pParent, const SfxItemSet& rSet) :
::CreateTabPage fnCreatePage = pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BACKGROUND ); ::CreateTabPage fnCreatePage = pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BACKGROUND );
if ( fnCreatePage ) if ( fnCreatePage )
{ {
SetTabPage((*fnCreatePage)( this, rSet )); setTabPage((*fnCreatePage)(get_content_area(), rSet));
} }
} }
/****************************************************************************
Dtor
****************************************************************************/
SwBackgroundDlg::~SwBackgroundDlg()
{
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -21,15 +21,14 @@ ...@@ -21,15 +21,14 @@
#define _PATTERN_HXX #define _PATTERN_HXX
#include <sfx2/basedlgs.hxx> #include <sfx2/basedlgs.hxx>
class Window; class Window;
class SfxItemSet; class SfxItemSet;
class SwBackgroundDlg : public SfxNoLayoutSingleTabDialog class SwBackgroundDlg : public SfxSingleTabDialog
{ {
public: public:
SwBackgroundDlg(Window* pParent, const SfxItemSet& rSet);
SwBackgroundDlg(Window* pParent, const SfxItemSet& rSet);
~SwBackgroundDlg();
}; };
#endif #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