diff options
author | Noel Grandin <noel@peralex.com> | 2013-05-21 17:38:02 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-05-22 15:20:07 +0200 |
commit | fe1ac1bf904ec7905187c3c3a5fe6a90f31f94e7 (patch) | |
tree | 8c6987a93d453b2b4cabf8ed0a331a8296d52a27 /framework/inc/classes | |
parent | 7298a2b0c721004b09a0fd3c7e287d655f42286b (diff) |
fdo#46808, convert XMultiServiceFactory to XComponentContext
Change-Id: I5ed0b12bf37e7d235fc88182c006a6ed07ef2343
Diffstat (limited to 'framework/inc/classes')
-rw-r--r-- | framework/inc/classes/droptargetlistener.hxx | 4 | ||||
-rw-r--r-- | framework/inc/classes/propertysethelper.hxx | 10 | ||||
-rw-r--r-- | framework/inc/classes/taskcreator.hxx | 6 |
3 files changed, 6 insertions, 14 deletions
diff --git a/framework/inc/classes/droptargetlistener.hxx b/framework/inc/classes/droptargetlistener.hxx index 0a71804e9ca3..0a7e7d2bd439 100644 --- a/framework/inc/classes/droptargetlistener.hxx +++ b/framework/inc/classes/droptargetlistener.hxx @@ -41,7 +41,7 @@ class DropTargetListener : private ThreadHelpBase private: /// uno service manager to create necessary services - css::uno::Reference< css::lang::XMultiServiceFactory > m_xFactory; + css::uno::Reference< css::uno::XComponentContext > m_xContext; /// weakreference to target frame (Don't use a hard reference. Owner can't delete us then!) css::uno::WeakReference< css::frame::XFrame > m_xTargetFrame; /// drag/drop info @@ -51,7 +51,7 @@ class DropTargetListener : private ThreadHelpBase // c++ interface public: - DropTargetListener( const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory , + DropTargetListener( const css::uno::Reference< css::uno::XComponentContext >& xContext , const css::uno::Reference< css::frame::XFrame >& xFrame ); ~DropTargetListener( ); diff --git a/framework/inc/classes/propertysethelper.hxx b/framework/inc/classes/propertysethelper.hxx index f414cf6714c0..2bc41094e55f 100644 --- a/framework/inc/classes/propertysethelper.hxx +++ b/framework/inc/classes/propertysethelper.hxx @@ -26,7 +26,6 @@ #include <general.h> #include <stdtypes.h> -#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/XPropertySetInfo.hpp> #include <com/sun/star/beans/PropertyExistException.hpp> @@ -62,8 +61,6 @@ class FWI_DLLPUBLIC PropertySetHelper : public css::beans::XPropertySet /* member */ protected: - css::uno::Reference< css::lang::XMultiServiceFactory > m_xSMGR; - PropertySetHelper::TPropInfoHash m_lProps; ListenerHash m_lSimpleChangeListener; @@ -84,10 +81,6 @@ class FWI_DLLPUBLIC PropertySetHelper : public css::beans::XPropertySet //--------------------------------------------------------------------- /** initialize new instance of this helper. * - * @param xSMGR - * points to an uno service manager, which is used internaly to create own - * needed uno services. - * * @param pExternalLock * this helper must be used as a baseclass ... * but then it should synchronize its own calls @@ -101,8 +94,7 @@ class FWI_DLLPUBLIC PropertySetHelper : public css::beans::XPropertySet * @param bReleaseLockOnCall * see member m_bReleaseLockOnCall */ - PropertySetHelper(const css::uno::Reference< css::lang::XMultiServiceFactory >& xSMGR , - LockHelper* pExternalLock , + PropertySetHelper( LockHelper* pExternalLock , TransactionManager* pExternalTransactionManager , sal_Bool bReleaseLockOnCall ); diff --git a/framework/inc/classes/taskcreator.hxx b/framework/inc/classes/taskcreator.hxx index 44b51114e6b6..4a297f96d6cf 100644 --- a/framework/inc/classes/taskcreator.hxx +++ b/framework/inc/classes/taskcreator.hxx @@ -26,7 +26,7 @@ #include <general.h> #include <com/sun/star/frame/XFramesSupplier.hpp> -#include <com/sun/star/lang/XMultiServiceFactory.hpp> +#include <com/sun/star/uno/XComponentContext.hpp> #include <com/sun/star/uno/Reference.hxx> #include <rtl/ustring.hxx> @@ -48,13 +48,13 @@ class TaskCreator : private ThreadHelpBase // member private: - css::uno::Reference< css::lang::XMultiServiceFactory > m_xSMGR; + css::uno::Reference< css::uno::XComponentContext > m_xContext; //_______________________ // interface public: - TaskCreator( const css::uno::Reference< css::lang::XMultiServiceFactory >& xSMGR ); + TaskCreator( const css::uno::Reference< css::uno::XComponentContext >& xContext ); virtual ~TaskCreator( ); css::uno::Reference< css::frame::XFrame > createTask( const OUString& sName , |