From 89d4ecc16e7e9501f357a26de50b3318d24446f3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 22 Feb 2013 14:55:20 +0200 Subject: fdo#46808, Convert frame::DispatchRecorder to new style API CHANGE: dropped the XIndexReplace interface because no-one is using it. Change-Id: Iad77af588a070b22f2fce007a6ec4641758997a8 --- sfx2/source/view/viewfrm.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'sfx2/source') diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index bdc54c0b505c..9ec782e6aab1 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -2828,15 +2829,10 @@ void SfxViewFrame::MiscExec_Impl( SfxRequest& rReq ) else if ( rReq.GetSlot() == SID_RECORDMACRO ) { // enable recording - com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > xFactory( - ::comphelper::getProcessServiceFactory(), - com::sun::star::uno::UNO_QUERY); com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > xContext( ::comphelper::getProcessComponentContext()); - xRecorder = com::sun::star::uno::Reference< com::sun::star::frame::XDispatchRecorder >( - xFactory->createInstance(rtl::OUString("com.sun.star.frame.DispatchRecorder")), - com::sun::star::uno::UNO_QUERY); + xRecorder = com::sun::star::frame::DispatchRecorder::create( xContext ); xSupplier = com::sun::star::frame::DispatchRecorderSupplier::create( xContext ); -- cgit v1.2.3