diff options
author | Noel Grandin <noel@peralex.com> | 2013-05-28 10:49:19 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-06-03 09:59:59 +0200 |
commit | a8a35e54f506ae22a0ac8f80aa824813260de000 (patch) | |
tree | a4b9e98346c9c579536557f0256abb08908fa5e8 /framework/source/dispatch | |
parent | 515701a1ff18d04ede235bef862c465adf41062f (diff) |
fdo#46808, Convert frame::AppDispatchProvider to new style
The service already existed, it just needed an IDL file.
Change-Id: I9553c8e7c4922f2106bc13034e0cc35669b28b7e
Diffstat (limited to 'framework/source/dispatch')
-rw-r--r-- | framework/source/dispatch/dispatchinformationprovider.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/framework/source/dispatch/dispatchinformationprovider.cxx b/framework/source/dispatch/dispatchinformationprovider.cxx index eb0e1288f28e..936a9139a416 100644 --- a/framework/source/dispatch/dispatchinformationprovider.cxx +++ b/framework/source/dispatch/dispatchinformationprovider.cxx @@ -25,6 +25,8 @@ #include <services.h> #include <com/sun/star/frame/CommandGroup.hpp> +#include <com/sun/star/frame/AppDispatchProvider.hpp> + #include <comphelper/sequenceasvector.hxx> @@ -148,8 +150,7 @@ css::uno::Sequence< css::uno::Reference< css::frame::XDispatchInformationProvide css::uno::Reference< css::frame::XDispatchInformationProvider > xCloseDispatch(xCloser , css::uno::UNO_QUERY); css::uno::Reference< css::frame::XDispatchInformationProvider > xController (xFrame->getController() , css::uno::UNO_QUERY); - css::uno::Reference< css::frame::XDispatchInformationProvider > xAppDispatcher( - xContext->getServiceManager()->createInstanceWithContext(IMPLEMENTATIONNAME_APPDISPATCHPROVIDER, xContext), css::uno::UNO_QUERY); + css::uno::Reference< css::frame::XDispatchInformationProvider > xAppDispatcher = css::frame::AppDispatchProvider::create(xContext); css::uno::Sequence< css::uno::Reference< css::frame::XDispatchInformationProvider > > lProvider(3); lProvider[0] = xController ; lProvider[1] = xCloseDispatch; |