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 @@ ...@@ -21,24 +21,17 @@
#include <svx/svxdlg.hxx> #include <svx/svxdlg.hxx>
#include <sfx2/sfx.hrc> #include <sfx2/sfx.hrc>
SwAddrDlg::SwAddrDlg(Window* pParent, const SfxItemSet& rSet ) : SwAddrDlg::SwAddrDlg(Window* pParent, const SfxItemSet& rSet)
: SfxSingleTabDialog(pParent, rSet)
SfxNoLayoutSingleTabDialog(pParent, rSet, 0)
{ {
SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create(); SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create();
OSL_ENSURE(pFact, "Dialogdiet fail!"); OSL_ENSURE(pFact, "Dialogdiet fail!");
::CreateTabPage fnCreatePage = pFact->GetTabPageCreatorFunc( RID_SFXPAGE_GENERAL ); ::CreateTabPage fnCreatePage = pFact->GetTabPageCreatorFunc( RID_SFXPAGE_GENERAL );
if ( fnCreatePage ) if ( fnCreatePage )
{ {
SfxTabPage* pPage2 = (*fnCreatePage)( this, rSet ); SfxTabPage* pPage2 = (*fnCreatePage)(get_content_area(), rSet);
SetTabPage(pPage2); setTabPage(pPage2);
} }
} }
SwAddrDlg::~SwAddrDlg()
{
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -21,17 +21,12 @@ ...@@ -21,17 +21,12 @@
#include <sfx2/basedlgs.hxx> #include <sfx2/basedlgs.hxx>
class SwAddrDlg : public SfxNoLayoutSingleTabDialog class SwAddrDlg : public SfxSingleTabDialog
{ {
public: public:
SwAddrDlg(Window* pParent, const SfxItemSet& rSet);
SwAddrDlg( Window* pParent, const SfxItemSet& rSet );
~SwAddrDlg();
}; };
#endif #endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* 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