diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-12-19 20:49:34 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-12-19 20:56:23 +0000 |
commit | 3b385c20d8c50e11ef02006f0dab4fd8cf360e5b (patch) | |
tree | 04df4ffbcf96a26a2075554db77c21b5e9d84b14 /sc/source/ui/attrdlg | |
parent | c7794f592500f43ca7b83535389de6b4fa717173 (diff) |
convert show sheets dialog to .ui
Change-Id: Ia32aa742b426872c6634a431170c441ae3c8c963
Diffstat (limited to 'sc/source/ui/attrdlg')
-rw-r--r-- | sc/source/ui/attrdlg/scdlgfact.cxx | 17 | ||||
-rw-r--r-- | sc/source/ui/attrdlg/scdlgfact.hxx | 2 |
2 files changed, 4 insertions, 15 deletions
diff --git a/sc/source/ui/attrdlg/scdlgfact.cxx b/sc/source/ui/attrdlg/scdlgfact.cxx index 931de9f0010d..8df625b8be46 100644 --- a/sc/source/ui/attrdlg/scdlgfact.cxx +++ b/sc/source/ui/attrdlg/scdlgfact.cxx @@ -1004,21 +1004,10 @@ AbstractScNewScenarioDlg * ScAbstractDialogFactory_Impl::CreateScNewScenarioDlg return 0; } -AbstractScShowTabDlg * ScAbstractDialogFactory_Impl::CreateScShowTabDlg ( Window* pParent, int nId ) +AbstractScShowTabDlg * ScAbstractDialogFactory_Impl::CreateScShowTabDlg(Window* pParent) { - ScShowTabDlg * pDlg=NULL; - switch ( nId ) - { - case RID_SCDLG_SHOW_TAB : - pDlg = new ScShowTabDlg( pParent); - break; - default: - break; - } - - if ( pDlg ) - return new AbstractScShowTabDlg_Impl( pDlg ); - return 0; + ScShowTabDlg * pDlg = new ScShowTabDlg( pParent); + return new AbstractScShowTabDlg_Impl( pDlg ); } AbstractScStringInputDlg * ScAbstractDialogFactory_Impl::CreateScStringInputDlg ( Window* pParent, diff --git a/sc/source/ui/attrdlg/scdlgfact.hxx b/sc/source/ui/attrdlg/scdlgfact.hxx index 4b5ae12f0b12..682911464506 100644 --- a/sc/source/ui/attrdlg/scdlgfact.hxx +++ b/sc/source/ui/attrdlg/scdlgfact.hxx @@ -521,7 +521,7 @@ public: virtual AbstractScNewScenarioDlg * CreateScNewScenarioDlg ( Window* pParent, const OUString& rName, int nId, sal_Bool bEdit = false, sal_Bool bSheetProtected = false ); - virtual AbstractScShowTabDlg * CreateScShowTabDlg ( Window* pParent, int nId ); + virtual AbstractScShowTabDlg * CreateScShowTabDlg(Window* pParent); virtual AbstractScStringInputDlg * CreateScStringInputDlg ( Window* pParent, const OUString& rTitle, |