diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-04-15 11:14:35 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-04-15 11:16:24 +0100 |
commit | fd2c9d360ab0b55d0100273875e469448e607751 (patch) | |
tree | 79a1108252b5b60ea783ff9596ee3e888389280b /sc/source/ui/attrdlg | |
parent | c6fa764daaf80640198bc02a4c8af1f0a06f72b0 (diff) |
adapt code to create names .ui conversion
Change-Id: I276f354cd07480c8798951c14b565994c93750c2
Diffstat (limited to 'sc/source/ui/attrdlg')
-rw-r--r-- | sc/source/ui/attrdlg/scdlgfact.cxx | 23 | ||||
-rw-r--r-- | sc/source/ui/attrdlg/scdlgfact.hxx | 3 |
2 files changed, 5 insertions, 21 deletions
diff --git a/sc/source/ui/attrdlg/scdlgfact.cxx b/sc/source/ui/attrdlg/scdlgfact.cxx index 83f3c235c143..acf411bd3540 100644 --- a/sc/source/ui/attrdlg/scdlgfact.cxx +++ b/sc/source/ui/attrdlg/scdlgfact.cxx @@ -1041,29 +1041,12 @@ AbstractScMoveTableDlg * ScAbstractDialogFactory_Impl::CreateScMoveTableDlg( Wi return 0; } - - - -AbstractScNameCreateDlg * ScAbstractDialogFactory_Impl::CreateScNameCreateDlg ( Window * pParent, sal_uInt16 nFlags, int nId ) +AbstractScNameCreateDlg * ScAbstractDialogFactory_Impl::CreateScNameCreateDlg(Window * pParent, sal_uInt16 nFlags) { - ScNameCreateDlg * pDlg=NULL; - switch ( nId ) - { - case RID_SCDLG_NAMES_CREATE : - pDlg = new ScNameCreateDlg( pParent, nFlags ); - break; - default: - break; - } - - if ( pDlg ) - return new AbstractScNameCreateDlg_Impl( pDlg ); - return 0; + ScNameCreateDlg * pDlg = new ScNameCreateDlg( pParent, nFlags ); + return new AbstractScNameCreateDlg_Impl( pDlg ); } - - - AbstractScNamePasteDlg * ScAbstractDialogFactory_Impl::CreateScNamePasteDlg ( Window * pParent, ScDocShell* pShell, bool bInsList ) { ScNamePasteDlg * pDlg = new ScNamePasteDlg( pParent, pShell, bInsList ); diff --git a/sc/source/ui/attrdlg/scdlgfact.hxx b/sc/source/ui/attrdlg/scdlgfact.hxx index f88bb0ebf6ba..d4ea5ef2775b 100644 --- a/sc/source/ui/attrdlg/scdlgfact.hxx +++ b/sc/source/ui/attrdlg/scdlgfact.hxx @@ -481,7 +481,8 @@ public: const String& rDefault, int nId ); - virtual AbstractScNameCreateDlg * CreateScNameCreateDlg ( Window * pParent, sal_uInt16 nFlags, int nId ); //add for ScNameCreateDlg + virtual AbstractScNameCreateDlg * CreateScNameCreateDlg(Window * pParent, + sal_uInt16 nFlags); virtual AbstractScNamePasteDlg * CreateScNamePasteDlg ( Window * pParent, ScDocShell* pShell, bool bInsList=true ); //add for ScNamePasteDlg |