summaryrefslogtreecommitdiff
path: root/sc
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 /sc
parent524cedbd307e73badd3c6e64ae290922c75fd2dd (diff)
fdo#46808, Convert XSLTFilterDialog to new-style
Also fixup servicename. Change-Id: I1ee6d4849a83fdd4f43bf266ef4d282b22b65f6e
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/app/scmod.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index 2951c569a161..a177050668d6 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -17,7 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
+#include <com/sun/star/ui/dialogs/XSLTFilterDialog.hpp>
#include <comphelper/processfactory.hxx>
#include "scitems.hxx"
@@ -57,7 +57,7 @@
#include <svl/inethist.hxx>
#include <vcl/waitobj.hxx>
#include <svx/svxerr.hxx>
-
+#include <tools/diagnose_ex.h>
#include "scmod.hxx"
@@ -550,14 +550,12 @@ void ScModule::Execute( SfxRequest& rReq )
{
try
{
- com::sun::star::uno::Reference < ::com::sun::star::ui::dialogs::XExecutableDialog > xDialog(::comphelper::getProcessServiceFactory()->createInstance(rtl::OUString("com.sun.star.comp.ui.XSLTFilterDialog")), com::sun::star::uno::UNO_QUERY);
- if( xDialog.is() )
- {
- xDialog->execute();
- }
+ css::uno::Reference < css::ui::dialogs::XExecutableDialog > xDialog = css::ui::dialogs::XSLTFilterDialog::create( ::comphelper::getProcessComponentContext());
+ xDialog->execute();
}
catch( ::com::sun::star::uno::RuntimeException& )
{
+ DBG_UNHANDLED_EXCEPTION();
}
}
break;