From 8d83827d94266a08e999047151d6cd691acc6e46 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 7 Mar 2013 15:41:12 +0200 Subject: fdo#46808, Convert XSLTFilterDialog to new-style Also fixup servicename. Change-Id: I1ee6d4849a83fdd4f43bf266ef4d282b22b65f6e --- sw/source/ui/shells/drwtxtex.cxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'sw/source/ui/shells/drwtxtex.cxx') diff --git a/sw/source/ui/shells/drwtxtex.cxx b/sw/source/ui/shells/drwtxtex.cxx index 59b34c638b20..90cd5db13de5 100644 --- a/sw/source/ui/shells/drwtxtex.cxx +++ b/sw/source/ui/shells/drwtxtex.cxx @@ -18,7 +18,7 @@ */ -#include +#include #include #include @@ -71,6 +71,7 @@ #include #include #include +#include #include #include @@ -326,14 +327,12 @@ void SwDrawTextShell::Execute( SfxRequest &rReq ) { try { - uno::Reference < ui::dialogs::XExecutableDialog > xDialog(::comphelper::getProcessServiceFactory()->createInstance(rtl::OUString("com.sun.star.comp.ui.XSLTFilterDialog")), uno::UNO_QUERY); - if( xDialog.is() ) - { - xDialog->execute(); - } + uno::Reference < ui::dialogs::XExecutableDialog > xDialog = ui::dialogs::XSLTFilterDialog::create( ::comphelper::getProcessComponentContext() ); + xDialog->execute(); } catch (const uno::Exception&) { + DBG_UNHANDLED_EXCEPTION(); } rReq.Ignore (); } -- cgit