remove unneccessary argument from CreateScHFEditDlg
Change-Id: I2e2fa80678375d49ea4b100515eecd932a79b471
This commit is contained in:
@@ -492,7 +492,6 @@ public:
|
|||||||
Window* pParent,
|
Window* pParent,
|
||||||
const SfxItemSet& rCoreSet,
|
const SfxItemSet& rCoreSet,
|
||||||
const String& rPageStyle,
|
const String& rPageStyle,
|
||||||
int nId,
|
|
||||||
sal_uInt16 nResId = RID_SCDLG_HFEDIT ) = 0;
|
sal_uInt16 nResId = RID_SCDLG_HFEDIT ) = 0;
|
||||||
|
|
||||||
virtual SfxAbstractTabDialog * CreateScStyleDlg( Window* pParent,//add for ScStyleDlg
|
virtual SfxAbstractTabDialog * CreateScStyleDlg( Window* pParent,//add for ScStyleDlg
|
||||||
|
@@ -1238,22 +1238,10 @@ SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScHFEditDlg( SfxViewF
|
|||||||
Window* pParent,
|
Window* pParent,
|
||||||
const SfxItemSet& rCoreSet,
|
const SfxItemSet& rCoreSet,
|
||||||
const String& rPageStyle,
|
const String& rPageStyle,
|
||||||
int nId,
|
|
||||||
sal_uInt16 nResId )
|
sal_uInt16 nResId )
|
||||||
{
|
{
|
||||||
SfxTabDialog* pDlg=NULL;
|
SfxTabDialog* pDlg = new ScHFEditDlg( pFrame, pParent, rCoreSet,rPageStyle, nResId );
|
||||||
switch ( nId )
|
return new ScAbstractTabDialog_Impl( pDlg );
|
||||||
{
|
|
||||||
case RID_SCDLG_HFEDIT :
|
|
||||||
pDlg = new ScHFEditDlg( pFrame, pParent, rCoreSet,rPageStyle, nResId );
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( pDlg )
|
|
||||||
return new ScAbstractTabDialog_Impl( pDlg );
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -559,7 +559,6 @@ public:
|
|||||||
Window* pParent,
|
Window* pParent,
|
||||||
const SfxItemSet& rCoreSet,
|
const SfxItemSet& rCoreSet,
|
||||||
const String& rPageStyle,
|
const String& rPageStyle,
|
||||||
int nId,
|
|
||||||
sal_uInt16 nResId = RID_SCDLG_HFEDIT );
|
sal_uInt16 nResId = RID_SCDLG_HFEDIT );
|
||||||
|
|
||||||
virtual SfxAbstractTabDialog * CreateScStyleDlg( Window* pParent,//add for ScStyleDlg
|
virtual SfxAbstractTabDialog * CreateScStyleDlg( Window* pParent,//add for ScStyleDlg
|
||||||
|
@@ -1706,7 +1706,7 @@ void ScDocShell::ExecutePageStyle( SfxViewShell& rCaller,
|
|||||||
GetActiveDialogParent(),
|
GetActiveDialogParent(),
|
||||||
rStyleSet,
|
rStyleSet,
|
||||||
aStr,
|
aStr,
|
||||||
RID_SCDLG_HFEDIT, nResId);
|
nResId);
|
||||||
OSL_ENSURE(pDlg, "Dialog create fail!");
|
OSL_ENSURE(pDlg, "Dialog create fail!");
|
||||||
if ( pDlg->Execute() == RET_OK )
|
if ( pDlg->Execute() == RET_OK )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user