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

SwAddrDlg can now be converted to SfxSingleTabDialog

Change-Id: I7fb53193d52d6c04c34fce23aa1610ce1035493c
üst 10cfd814
......@@ -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: */
......@@ -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: */
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