diff options
author | Noel Grandin <noel@peralex.com> | 2013-05-21 15:01:22 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-05-22 15:19:49 +0200 |
commit | 122e4bc598e2d7d1a3e5cef4c45cda94ca7cfd9b (patch) | |
tree | 60f226b57ba464fedb21a5637532aba6f32da248 /framework/inc | |
parent | 03c3cd90930d6fb7d0f498e4b21871b1746d9b2d (diff) |
fdo#46808, XMultiServiceFactory to XComponentContext
Change-Id: I2ca9a2930a921c600f5e93cc2e66d461220ea87d
Diffstat (limited to 'framework/inc')
-rw-r--r-- | framework/inc/helper/uiconfigelementwrapperbase.hxx | 6 | ||||
-rw-r--r-- | framework/inc/uielement/menubarwrapper.hxx | 3 | ||||
-rw-r--r-- | framework/inc/uielement/statusbarwrapper.hxx | 5 | ||||
-rw-r--r-- | framework/inc/uielement/toolbarwrapper.hxx | 4 |
4 files changed, 10 insertions, 8 deletions
diff --git a/framework/inc/helper/uiconfigelementwrapperbase.hxx b/framework/inc/helper/uiconfigelementwrapperbase.hxx index a97aea5acbef..dd223ad08a41 100644 --- a/framework/inc/helper/uiconfigelementwrapperbase.hxx +++ b/framework/inc/helper/uiconfigelementwrapperbase.hxx @@ -34,7 +34,6 @@ #include <com/sun/star/util/XUpdatable.hpp> #include <com/sun/star/lang/XInitialization.hpp> #include <com/sun/star/lang/XComponent.hpp> -#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <rtl/ustring.hxx> #include <cppuhelper/propshlp.hxx> @@ -60,7 +59,7 @@ class UIConfigElementWrapperBase : public ::com::sun::star::lang::XTypeProvider // public methods //------------------------------------------------------------------------------------------------------------- public: - UIConfigElementWrapperBase( sal_Int16 nType,const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _xServiceFactory ); + UIConfigElementWrapperBase( sal_Int16 nType ); virtual ~UIConfigElementWrapperBase(); // XInterface @@ -132,8 +131,7 @@ class UIConfigElementWrapperBase : public ::com::sun::star::lang::XTypeProvider m_bConfigListening : 1, m_bDisposed : 1, m_bNoClose : 1; - OUString m_aResourceURL; - ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xServiceFactory; + OUString m_aResourceURL; com::sun::star::uno::Reference< ::com::sun::star::ui::XUIConfigurationManager > m_xConfigSource; com::sun::star::uno::Reference< com::sun::star::container::XIndexAccess > m_xConfigData; com::sun::star::uno::WeakReference< com::sun::star::frame::XFrame > m_xWeakFrame; diff --git a/framework/inc/uielement/menubarwrapper.hxx b/framework/inc/uielement/menubarwrapper.hxx index 1bdeca3b726c..2b3d31e363d8 100644 --- a/framework/inc/uielement/menubarwrapper.hxx +++ b/framework/inc/uielement/menubarwrapper.hxx @@ -40,7 +40,7 @@ class MenuBarWrapper : public UIConfigElementWrapperBase, { public: MenuBarWrapper( - const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& xServiceManager ); + const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& xContext ); virtual ~MenuBarWrapper(); //--------------------------------------------------------------------------------------------------------- @@ -80,6 +80,7 @@ class MenuBarWrapper : public UIConfigElementWrapperBase, sal_Bool m_bRefreshPopupControllerCache : 1; com::sun::star::uno::Reference< com::sun::star::lang::XComponent > m_xMenuBarManager; PopupControllerCache m_aPopupControllerCache; + com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext; }; } // namespace framework diff --git a/framework/inc/uielement/statusbarwrapper.hxx b/framework/inc/uielement/statusbarwrapper.hxx index 7a06cc12837a..034ce0772afb 100644 --- a/framework/inc/uielement/statusbarwrapper.hxx +++ b/framework/inc/uielement/statusbarwrapper.hxx @@ -25,7 +25,7 @@ #include <com/sun/star/frame/XFrame.hpp> #include <com/sun/star/lang/XComponent.hpp> -#include <com/sun/star/lang/XMultiServiceFactory.hpp> +#include <com/sun/star/uno/XComponentContext.hpp> namespace framework { @@ -34,7 +34,7 @@ class StatusBarWrapper : public UIConfigElementWrapperBase { public: StatusBarWrapper( - const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& xServiceManager ); + const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext ); virtual ~StatusBarWrapper(); // XComponent @@ -51,6 +51,7 @@ class StatusBarWrapper : public UIConfigElementWrapperBase private: ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > m_xStatusBarManager; + com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext; }; } // namespace framework diff --git a/framework/inc/uielement/toolbarwrapper.hxx b/framework/inc/uielement/toolbarwrapper.hxx index 37c94d756abd..6b4134534c0d 100644 --- a/framework/inc/uielement/toolbarwrapper.hxx +++ b/framework/inc/uielement/toolbarwrapper.hxx @@ -26,6 +26,7 @@ #include <com/sun/star/lang/XComponent.hpp> #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/ui/XUIFunctionListener.hpp> +#include <com/sun/star/uno/XComponentContext.hpp> namespace framework { @@ -35,7 +36,7 @@ class ToolBarWrapper : public ::com::sun::star::ui::XUIFunctionListener, public UIConfigElementWrapperBase { public: - ToolBarWrapper( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& xServiceManager ); + ToolBarWrapper( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& xContext ); virtual ~ToolBarWrapper(); // XInterface @@ -74,6 +75,7 @@ class ToolBarWrapper : public ::com::sun::star::ui::XUIFunctionListener, private: com::sun::star::uno::Reference< com::sun::star::lang::XComponent > m_xToolBarManager; + com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext; }; } |