diff options
Diffstat (limited to 'sc/source/ui/attrdlg/scdlgfact.cxx')
-rw-r--r-- | sc/source/ui/attrdlg/scdlgfact.cxx | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/sc/source/ui/attrdlg/scdlgfact.cxx b/sc/source/ui/attrdlg/scdlgfact.cxx index 1283a3b0f290..0a24dd6fa88b 100644 --- a/sc/source/ui/attrdlg/scdlgfact.cxx +++ b/sc/source/ui/attrdlg/scdlgfact.cxx @@ -827,26 +827,13 @@ AbstractScDeleteCellDlg* ScAbstractDialogFactory_Impl::CreateScDeleteCellDlg(Win return new AbstractScDeleteCellDlg_Impl( pDlg ); } -AbstractScDataFormDlg* ScAbstractDialogFactory_Impl::CreateScDataFormDlg( Window* pParent, int nId, ScTabViewShell* pTabViewShell ) +AbstractScDataFormDlg* ScAbstractDialogFactory_Impl::CreateScDataFormDlg(Window* pParent, + ScTabViewShell* pTabViewShell) { - ScDataFormDlg * pDlg=NULL; - switch ( nId ) - { - case RID_SCDLG_DATAFORM : - pDlg = new ScDataFormDlg( pParent, pTabViewShell); - break; - default: - break; - } - - if ( pDlg ) - return new AbstractScDataFormDlg_Impl( pDlg ); - return 0; + ScDataFormDlg* pDlg = new ScDataFormDlg(pParent, pTabViewShell); + return new AbstractScDataFormDlg_Impl(pDlg); } - - - AbstractScDeleteContentsDlg* ScAbstractDialogFactory_Impl::CreateScDeleteContentsDlg(Window* pParent, sal_uInt16 nCheckDefaults) { |