summaryrefslogtreecommitdiff
path: root/sc/source/ui/attrdlg/scdlgfact.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/attrdlg/scdlgfact.cxx')
-rw-r--r--sc/source/ui/attrdlg/scdlgfact.cxx22
1 files changed, 4 insertions, 18 deletions
diff --git a/sc/source/ui/attrdlg/scdlgfact.cxx b/sc/source/ui/attrdlg/scdlgfact.cxx
index ca1bfd49407d..e511c7bb7e0f 100644
--- a/sc/source/ui/attrdlg/scdlgfact.cxx
+++ b/sc/source/ui/attrdlg/scdlgfact.cxx
@@ -1338,25 +1338,11 @@ AbstractScImportOptionsDlg * ScAbstractDialogFactory_Impl::CreateScImportOptions
}
-SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScAttrDlg( SfxViewFrame* pFrame,
- Window* pParent,
- const SfxItemSet* pCellAttrs,
- int nId)
+SfxAbstractTabDialog * ScAbstractDialogFactory_Impl::CreateScAttrDlg(SfxViewFrame* pFrame,
+ Window* pParent, const SfxItemSet* pCellAttrs)
{
- SfxTabDialog* pDlg=NULL;
- switch ( nId )
- {
- case RID_SCDLG_ATTR :
- pDlg = new ScAttrDlg( pFrame, pParent, pCellAttrs );
- break;
- default:
- break;
- }
-
- if ( pDlg )
- return new ScAbstractTabDialog_Impl( pDlg );
- return 0;
-
+ SfxTabDialog* pDlg = new ScAttrDlg(pFrame, pParent, pCellAttrs);
+ return new ScAbstractTabDialog_Impl(pDlg);
}
#undef SfxTabDialog