summaryrefslogtreecommitdiff
path: root/cui/source/factory
diff options
context:
space:
mode:
authorRobert Roth <robert.roth.off@gmail.com>2013-01-25 03:27:27 +0200
committerCaolán McNamara <caolanm@redhat.com>2013-01-25 12:31:39 +0000
commit45dc5f7f4ef579c848a83f5679658977303527bb (patch)
treedf6beaddf621ad1c691982390b080cda7831fc61 /cui/source/factory
parent71a8f79f4bdf567b6fce23091ca1663455cadba9 (diff)
Object name, description dialog and messagebox ported to UI files
Change-Id: Iad23998c9ccde22abad9d894af3dd6df7c92564f Reviewed-on: https://gerrit.libreoffice.org/1857 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/source/factory')
-rw-r--r--cui/source/factory/dlgfact.cxx17
1 files changed, 3 insertions, 14 deletions
diff --git a/cui/source/factory/dlgfact.cxx b/cui/source/factory/dlgfact.cxx
index 4ada5e309250..26532efea2ce 100644
--- a/cui/source/factory/dlgfact.cxx
+++ b/cui/source/factory/dlgfact.cxx
@@ -1475,22 +1475,11 @@ AbstractSvxObjectTitleDescDialog* AbstractDialogFactory_Impl::CreateSvxObjectTit
return new AbstractSvxObjectTitleDescDialog_Impl(new SvxObjectTitleDescDialog(pParent, rTitle, rDescription));
}
-AbstractSvxMessDialog * AbstractDialogFactory_Impl::CreateSvxMessDialog( Window* pParent, sal_uInt32 nResId,
+AbstractSvxMessDialog * AbstractDialogFactory_Impl::CreateSvxMessDialog( Window* pParent, sal_uInt32,
const String& rText, const String& rDesc, Image* pImg )
{
- SvxMessDialog* pDlg=NULL;
- switch ( nResId )
- {
- case RID_SVXDLG_MESSBOX :
- pDlg = new SvxMessDialog( pParent, rText, rDesc, pImg );
- break;
- default:
- break;
- }
-
- if ( pDlg )
- return new AbstractSvxMessDialog_Impl( pDlg );
- return 0;
+ SvxMessDialog* pDlg = new SvxMessDialog( pParent, rText, rDesc, pImg );
+ return new AbstractSvxMessDialog_Impl( pDlg );
}
AbstractSvxMultiPathDialog * AbstractDialogFactory_Impl::CreateSvxMultiPathDialog( Window* pParent, sal_Bool bEmptyAllowed )