summaryrefslogtreecommitdiff
path: root/sw/source/ui/shells/drwtxtex.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-03-07 15:41:12 +0200
committerNoel Grandin <noel@peralex.com>2013-03-20 07:32:48 +0200
commit8d83827d94266a08e999047151d6cd691acc6e46 (patch)
treeca1ce320bb8fcb21cd8c095f7ea8b68ae5a50b9b /sw/source/ui/shells/drwtxtex.cxx
parent524cedbd307e73badd3c6e64ae290922c75fd2dd (diff)
fdo#46808, Convert XSLTFilterDialog to new-style
Also fixup servicename. Change-Id: I1ee6d4849a83fdd4f43bf266ef4d282b22b65f6e
Diffstat (limited to 'sw/source/ui/shells/drwtxtex.cxx')
-rw-r--r--sw/source/ui/shells/drwtxtex.cxx11
1 files changed, 5 insertions, 6 deletions
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 <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
+#include <com/sun/star/ui/dialogs/XSLTFilterDialog.hpp>
#include <comphelper/processfactory.hxx>
#include <comphelper/string.hxx>
@@ -71,6 +71,7 @@
#include <editeng/editview.hxx>
#include <vcl/outdev.hxx>
#include <editeng/hyphenzoneitem.hxx>
+#include <tools/diagnose_ex.h>
#include <cmdid.h>
#include <doc.hxx>
@@ -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 ();
}