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

refactor raw use of ScHFEditDlg to use ScAbstractDialogFactory

Change-Id: Id9591bef0845b65d496103f82b0af5a828c4eaac
üst c4f46a2c
......@@ -1240,7 +1240,7 @@ SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScHFEditDlg( SfxViewF
const String& rPageStyle,
sal_uInt16 nResId )
{
SfxTabDialog* pDlg = new ScHFEditDlg( pFrame, pParent, rCoreSet,rPageStyle, nResId );
SfxTabDialog* pDlg = new ScHFEditDlg( pFrame, pParent, rCoreSet, rPageStyle, nResId );
return new ScAbstractTabDialog_Impl( pDlg );
}
......
......@@ -33,6 +33,7 @@
#include "tphf.hxx"
#include "sc.hrc"
#include "scabstdlg.hxx"
#include "globstr.hrc"
#include "tabvwsh.hxx"
#include "viewdata.hxx"
......@@ -204,10 +205,14 @@ IMPL_LINK_NOARG(ScHFPage, HFEditHdl)
? RID_SCDLG_HFED_HEADER
: RID_SCDLG_HFED_FOOTER;
ScHFEditDlg* pDlg
= new ScHFEditDlg( pViewSh->GetViewFrame(), this,
aDataSet, aStrPageStyle, nResId );
ScAbstractDialogFactory* pFact = ScAbstractDialogFactory::Create();
OSL_ENSURE(pFact, "ScAbstractFactory create fail!");
SfxAbstractTabDialog* pDlg = pFact->CreateScHFEditDlg(
pViewSh->GetViewFrame(), this, aDataSet, aStrPageStyle, nResId);
OSL_ENSURE(pDlg, "Dialog create fail!");
if ( pDlg->Execute() == RET_OK )
{
aDataSet.Put( *pDlg->GetOutputItemSet() );
......
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