summaryrefslogtreecommitdiff
path: root/sw/source/ui/dialog/swdlgfact.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-08-04 21:32:26 +0200
committerCaolán McNamara <caolanm@redhat.com>2013-08-04 23:35:00 +0200
commit087a610fcd5c0c354a9ed6bfccd3451b667d62a3 (patch)
tree87575c219da5545ee96de2051fc1ad9f2fe84450 /sw/source/ui/dialog/swdlgfact.cxx
parent3e65dc7fca392489cd2ed2ed17da70cae39da89b (diff)
convert insert autotext dialog to .ui
Change-Id: Ia57a5e74300fb52d2618b086fe51a8b33547101b
Diffstat (limited to 'sw/source/ui/dialog/swdlgfact.cxx')
-rw-r--r--sw/source/ui/dialog/swdlgfact.cxx18
1 files changed, 3 insertions, 15 deletions
diff --git a/sw/source/ui/dialog/swdlgfact.cxx b/sw/source/ui/dialog/swdlgfact.cxx
index 7d220dd9072c..74d6453b1880 100644
--- a/sw/source/ui/dialog/swdlgfact.cxx
+++ b/sw/source/ui/dialog/swdlgfact.cxx
@@ -859,22 +859,10 @@ AbstractSplitTableDialog * SwAbstractDialogFactory_Impl::CreateSplitTblDialog (
return new AbstractSplitTableDialog_Impl( new SwSplitTblDlg( pParent, rSh) );
}
-AbstractSwSelGlossaryDlg * SwAbstractDialogFactory_Impl::CreateSwSelGlossaryDlg ( Window * pParent, const String &rShortName, int nResId )
+AbstractSwSelGlossaryDlg * SwAbstractDialogFactory_Impl::CreateSwSelGlossaryDlg(Window * pParent, const String &rShortName)
{
- SwSelGlossaryDlg* pDlg=NULL;
- switch ( nResId )
- {
- case DLG_SEL_GLOS :
- pDlg = new SwSelGlossaryDlg( pParent, rShortName);
- break;
-
- default:
- break;
- }
-
- if ( pDlg )
- return new AbstractSwSelGlossaryDlg_Impl( pDlg );
- return 0;
+ SwSelGlossaryDlg* pDlg = new SwSelGlossaryDlg(pParent, rShortName);
+ return new AbstractSwSelGlossaryDlg_Impl(pDlg);
}
AbstractSwAutoFormatDlg * SwAbstractDialogFactory_Impl::CreateSwAutoFormatDlg(Window* pParent,