diff options
author | Noel Grandin <noel@peralex.com> | 2013-03-07 15:41:12 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-03-20 07:32:48 +0200 |
commit | 8d83827d94266a08e999047151d6cd691acc6e46 (patch) | |
tree | ca1ce320bb8fcb21cd8c095f7ea8b68ae5a50b9b /sd | |
parent | 524cedbd307e73badd3c6e64ae290922c75fd2dd (diff) |
fdo#46808, Convert XSLTFilterDialog to new-style
Also fixup servicename.
Change-Id: I1ee6d4849a83fdd4f43bf266ef4d282b22b65f6e
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/drviewsb.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sd/source/ui/view/drviewsb.cxx b/sd/source/ui/view/drviewsb.cxx index 850c4432e608..72923b6b2593 100644 --- a/sd/source/ui/view/drviewsb.cxx +++ b/sd/source/ui/view/drviewsb.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 <svx/svdlayer.hxx> #include <svx/svxids.hrc> @@ -37,6 +37,7 @@ #include <svx/svxdlg.hxx> #include <svx/dialogs.hrc> #include <unotools/useroptions.hxx> +#include <tools/diagnose_ex.h> #include "app.hrc" #include "strings.hrc" @@ -678,14 +679,12 @@ void DrawViewShell::FuTemp02(SfxRequest& rReq) { try { - com::sun::star::uno::Reference < ::com::sun::star::ui::dialogs::XExecutableDialog > xDialog(::comphelper::getProcessServiceFactory()->createInstance("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(); } Cancel(); |