From af1c0ef8d397b652a4b58b29fbd7cab1a0ab5840 Mon Sep 17 00:00:00 2001 From: Matúš Kukan Date: Wed, 29 Jan 2014 10:35:38 +0100 Subject: Introduce com.sun.star.frame.ControllerFactory singletons: com.sun.star.frame.thePopupMenuControllerFactory com.sun.star.frame.theStatusbarControllerFactory com.sun.star.frame.theToolbarControllerFactory To replace their single-instance service variants. Change-Id: I00586d0d61e63f9482cb659071e88aa9cf02d5b5 --- sfx2/inc/pch/precompiled_sfx.hxx | 2 +- sfx2/source/sidebar/ControllerFactory.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sfx2') diff --git a/sfx2/inc/pch/precompiled_sfx.hxx b/sfx2/inc/pch/precompiled_sfx.hxx index f2e871335f10..208f750dd5ab 100644 --- a/sfx2/inc/pch/precompiled_sfx.hxx +++ b/sfx2/inc/pch/precompiled_sfx.hxx @@ -253,7 +253,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/sfx2/source/sidebar/ControllerFactory.cxx b/sfx2/source/sidebar/ControllerFactory.cxx index 90e202ca9232..3a6e294246e5 100644 --- a/sfx2/source/sidebar/ControllerFactory.cxx +++ b/sfx2/source/sidebar/ControllerFactory.cxx @@ -23,7 +23,7 @@ #include #include -#include +#include #include #include @@ -147,7 +147,7 @@ Reference ControllerFactory::CreateToolBarController( try { Reference xContext = comphelper::getProcessComponentContext(); - Reference xFactory = frame::ToolbarControllerFactory::create( xContext ); + Reference xFactory = frame::theToolbarControllerFactory::get( xContext ); OUString sModuleName (Tools::GetModuleName(rxFrame)); if (xFactory.is() && xFactory->hasController(rsCommandName, sModuleName)) -- cgit