summaryrefslogtreecommitdiff
path: root/embeddedobj/source/inc/oleembobj.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'embeddedobj/source/inc/oleembobj.hxx')
-rw-r--r--embeddedobj/source/inc/oleembobj.hxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/embeddedobj/source/inc/oleembobj.hxx b/embeddedobj/source/inc/oleembobj.hxx
index 051d63294af4..9739402c6a27 100644
--- a/embeddedobj/source/inc/oleembobj.hxx
+++ b/embeddedobj/source/inc/oleembobj.hxx
@@ -34,6 +34,7 @@
#include <com/sun/star/util/XCloseListener.hpp>
#include <com/sun/star/io/XActiveDataStreamer.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
+#include <com/sun/star/uno/XComponentContext.hpp>
#include <cppuhelper/implbase.hxx>
#include <rtl/ref.hxx>
@@ -132,7 +133,7 @@ class OleEmbeddedObject : public ::cppu::WeakImplHelper
sal_Int32 m_nTargetState;
sal_Int32 m_nUpdateMode;
- css::uno::Reference< css::lang::XMultiServiceFactory > m_xFactory;
+ css::uno::Reference< css::uno::XComponentContext > m_xContext;
css::uno::Sequence< sal_Int8 > m_aClassID;
OUString m_aClassName;
@@ -291,17 +292,17 @@ protected:
public:
// in case a new object must be created the class ID must be specified
- OleEmbeddedObject( const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory,
+ OleEmbeddedObject( const css::uno::Reference< css::uno::XComponentContext >& xContext,
const css::uno::Sequence< sal_Int8 >& aClassID,
const OUString& aClassName );
// in case object will be loaded from a persistent entry or from a file the class ID will be detected on loading
// factory can do it for OOo objects, but for OLE objects OS dependent code is required
- OleEmbeddedObject( const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory,
+ OleEmbeddedObject( const css::uno::Reference< css::uno::XComponentContext >& xContext,
bool bLink );
#ifdef _WIN32
// this constructor let object be initialized from clipboard
- OleEmbeddedObject( const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory );
+ OleEmbeddedObject( const css::uno::Reference< css::uno::XComponentContext >& xContext );
#endif
virtual ~OleEmbeddedObject() override;