diff options
author | Noel Grandin <noel@peralex.com> | 2013-02-22 14:55:20 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-03-04 14:22:33 +0200 |
commit | 89d4ecc16e7e9501f357a26de50b3318d24446f3 (patch) | |
tree | 1f62de9516904ef8eac2612cdf7c77610dedc0a4 /sfx2/source/view/viewfrm.cxx | |
parent | 4633b07bed7d71d1ab9d7fa30d979f054043958b (diff) |
fdo#46808, Convert frame::DispatchRecorder to new style
API CHANGE: dropped the XIndexReplace interface because no-one is using it.
Change-Id: Iad77af588a070b22f2fce007a6ec4641758997a8
Diffstat (limited to 'sfx2/source/view/viewfrm.cxx')
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
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 <sfx2/viewfrm.hxx> #include <com/sun/star/document/MacroExecMode.hpp> #include <com/sun/star/frame/Desktop.hpp> +#include <com/sun/star/frame/DispatchRecorder.hpp> #include <com/sun/star/frame/DispatchRecorderSupplier.hpp> #include <com/sun/star/frame/XLoadable.hpp> #include <com/sun/star/frame/XLayoutManager.hpp> @@ -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 ); |