diff options
author | Noel Grandin <noel@peralex.com> | 2012-12-11 16:31:27 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2012-12-21 09:12:07 +0200 |
commit | ecae523d9603eaf7ff0acc98682576813e50c94a (patch) | |
tree | d9097ffd1356c95093263ca5e593d2f64e592c8b /framework/source/uielement | |
parent | cd0b83b531e7cfa424299f1e263e08ff77e1a7a5 (diff) |
fdo#46808, Create new-style frame::ToolBarControllerFactory service
The service already existed, it just did not have an IDL file.
Change-Id: I70d0e1a3fe77deaeec399761cadefb20954f1c92
Diffstat (limited to 'framework/source/uielement')
-rw-r--r-- | framework/source/uielement/toolbarmanager.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/framework/source/uielement/toolbarmanager.cxx b/framework/source/uielement/toolbarmanager.cxx index 8ab834070e31..941a1f47807d 100644 --- a/framework/source/uielement/toolbarmanager.cxx +++ b/framework/source/uielement/toolbarmanager.cxx @@ -35,6 +35,7 @@ #include <com/sun/star/ui/ItemType.hpp> #include <com/sun/star/frame/XDispatchProvider.hpp> #include <com/sun/star/frame/UICommandDescription.hpp> +#include <com/sun/star/frame/ToolBarControllerFactory.hpp> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/awt/XDockableWindow.hpp> #include <com/sun/star/frame/XLayoutManager.hpp> @@ -241,10 +242,7 @@ ToolBarManager::ToolBarManager( const Reference< XMultiServiceFactory >& rServic if ( m_xServiceManager.is() ) { - m_xToolbarControllerRegistration = Reference< XUIControllerRegistration >( - m_xServiceManager->createInstance( SERVICENAME_TOOLBARCONTROLLERFACTORY ), - UNO_QUERY ); - + m_xToolbarControllerRegistration = frame::ToolBarControllerFactory::create( comphelper::getComponentContext(m_xServiceManager) ); m_xURLTransformer.set( URLTransformer::create( ::comphelper::getComponentContext(m_xServiceManager)) ); |