diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-01-28 15:27:32 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-01-28 18:52:22 +0100 |
commit | ba8413d2629352b1e5defaf154498856580e4651 (patch) | |
tree | 1fe88fed9227b84da0d44ee840cdd56b3418fc56 /cui | |
parent | b2c89e7236d71d92a96430db0a7eca14b41c227a (diff) |
Introduce com.sun.star.frame.theUICommandDescription singleton.
Change-Id: Ic88cca3722d555ba48d7da8c176556fa1ff90650
Diffstat (limited to 'cui')
-rw-r--r-- | cui/inc/pch/precompiled_cui.hxx | 2 | ||||
-rw-r--r-- | cui/source/customize/acccfg.cxx | 4 | ||||
-rw-r--r-- | cui/source/customize/cfg.cxx | 4 | ||||
-rw-r--r-- | cui/source/customize/cfgutil.cxx | 4 | ||||
-rw-r--r-- | cui/source/customize/selector.cxx | 4 |
5 files changed, 9 insertions, 9 deletions
diff --git a/cui/inc/pch/precompiled_cui.hxx b/cui/inc/pch/precompiled_cui.hxx index 264817dd14b1..5108a64a1aef 100644 --- a/cui/inc/pch/precompiled_cui.hxx +++ b/cui/inc/pch/precompiled_cui.hxx @@ -113,7 +113,7 @@ #include <com/sun/star/frame/FrameSearchFlag.hpp> #include <com/sun/star/frame/GlobalEventBroadcaster.hpp> #include <com/sun/star/frame/ModuleManager.hpp> -#include <com/sun/star/frame/UICommandDescription.hpp> +#include <com/sun/star/frame/theUICommandDescription.hpp> #include <com/sun/star/frame/XComponentLoader.hpp> #include <com/sun/star/frame/XController.hpp> #include <com/sun/star/frame/XDesktop.hpp> diff --git a/cui/source/customize/acccfg.cxx b/cui/source/customize/acccfg.cxx index 419eeadf368b..489aace5638e 100644 --- a/cui/source/customize/acccfg.cxx +++ b/cui/source/customize/acccfg.cxx @@ -52,7 +52,7 @@ #include <com/sun/star/frame/XController.hpp> #include <com/sun/star/frame/XModel.hpp> #include <com/sun/star/frame/ModuleManager.hpp> -#include <com/sun/star/frame/UICommandDescription.hpp> +#include <com/sun/star/frame/theUICommandDescription.hpp> #include <com/sun/star/ui/GlobalAcceleratorConfiguration.hpp> #include <com/sun/star/ui/ModuleUIConfigurationManagerSupplier.hpp> #include <com/sun/star/ui/UIConfigurationManager.hpp> @@ -830,7 +830,7 @@ void SfxAcceleratorConfigPage::InitAccCfg() // no - initialize this instance m_xContext = ::comphelper::getProcessComponentContext(); - m_xUICmdDescription = css::frame::UICommandDescription::create(m_xContext); + m_xUICmdDescription = css::frame::theUICommandDescription::get(m_xContext); // get the current active frame, which should be our "parent" // for this session diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx index 58f7b328db56..3f89c709e932 100644 --- a/cui/source/customize/cfg.cxx +++ b/cui/source/customize/cfg.cxx @@ -71,7 +71,7 @@ #include <com/sun/star/frame/ModuleManager.hpp> #include <com/sun/star/frame/XController.hpp> #include <com/sun/star/frame/Desktop.hpp> -#include <com/sun/star/frame/UICommandDescription.hpp> +#include <com/sun/star/frame/theUICommandDescription.hpp> #include <com/sun/star/graphic/GraphicProvider.hpp> #include <com/sun/star/ui/ItemType.hpp> #include <com/sun/star/ui/ItemStyle.hpp> @@ -869,7 +869,7 @@ SaveInData::SaveInData( uno::Reference<uno::XComponentContext> xContext = ::comphelper::getProcessComponentContext(); uno::Reference< container::XNameAccess > xNameAccess( - css::frame::UICommandDescription::create(xContext) ); + css::frame::theUICommandDescription::get(xContext) ); xNameAccess->getByName( aModuleId ) >>= m_xCommandToLabelMap; diff --git a/cui/source/customize/cfgutil.cxx b/cui/source/customize/cfgutil.cxx index f817ea7ef44b..4a93a6fd82b1 100644 --- a/cui/source/customize/cfgutil.cxx +++ b/cui/source/customize/cfgutil.cxx @@ -25,7 +25,7 @@ #include <com/sun/star/document/XScriptInvocationContext.hpp> #include <com/sun/star/frame/ModuleManager.hpp> #include <com/sun/star/frame/Desktop.hpp> -#include <com/sun/star/frame/UICommandDescription.hpp> +#include <com/sun/star/frame/theUICommandDescription.hpp> #include <com/sun/star/frame/XDispatchInformationProvider.hpp> #include <com/sun/star/script/browse/XBrowseNode.hpp> #include <com/sun/star/script/browse/BrowseNodeTypes.hpp> @@ -597,7 +597,7 @@ void SfxConfigGroupListBox::Init(const css::uno::Reference< css::uno::XComponent m_xGlobalCategoryInfo = css::ui::theUICategoryDescription::get( m_xContext ); m_xModuleCategoryInfo = css::uno::Reference< css::container::XNameAccess >(m_xGlobalCategoryInfo->getByName(m_sModuleLongName), css::uno::UNO_QUERY_THROW); - m_xUICmdDescription = css::frame::UICommandDescription::create( m_xContext ); + m_xUICmdDescription = css::frame::theUICommandDescription::get( m_xContext ); InitModule(); InitBasic(); diff --git a/cui/source/customize/selector.cxx b/cui/source/customize/selector.cxx index a33623a48538..4db4c2707e2e 100644 --- a/cui/source/customize/selector.cxx +++ b/cui/source/customize/selector.cxx @@ -46,7 +46,7 @@ #include <com/sun/star/frame/Desktop.hpp> #include <com/sun/star/frame/XDispatchInformationProvider.hpp> #include <com/sun/star/frame/DispatchInformation.hpp> -#include <com/sun/star/frame/UICommandDescription.hpp> +#include <com/sun/star/frame/theUICommandDescription.hpp> #include <com/sun/star/script/provider/XScriptProviderSupplier.hpp> #include <com/sun/star/script/provider/XScriptProvider.hpp> #include <com/sun/star/script/browse/theBrowseNodeFactory.hpp> @@ -425,7 +425,7 @@ void SvxConfigGroupListBox::Init(bool bShowSlots, const Reference< frame::XFrame { aModuleId = OUString(); } Reference< container::XNameAccess > const xNameAccess( - frame::UICommandDescription::create(xContext) ); + frame::theUICommandDescription::get(xContext) ); xNameAccess->getByName( aModuleId ) >>= m_xModuleCommands; Reference< container::XNameAccess > xAllCategories = |