LibreOffice Module extensions (master) 1
Public Member Functions | Protected Attributes | List of all members
OneInstanceOleWrapper Class Reference

#include <servprov.hxx>

Inheritance diagram for OneInstanceOleWrapper:
[legend]
Collaboration diagram for OneInstanceOleWrapper:
[legend]

Public Member Functions

 OneInstanceOleWrapper (const Reference< XMultiServiceFactory > &smgr, std::function< const Reference< XInterface >()> xInstFunction)
 
virtual ~OneInstanceOleWrapper ()
 
bool registerClass (GUID const *pGuid)
 
bool deregisterClass ()
 
STDMETHOD() QueryInterface (REFIID riid, void **ppvObj) override
 
 STDMETHOD_ (ULONG, AddRef)() override
 
 STDMETHOD_ (ULONG, Release)() override
 
STDMETHOD() CreateInstance (IUnknown *punkOuter, REFIID riid, void **ppv) override
 
STDMETHOD() LockServer (BOOL fLock) override
 

Protected Attributes

oslInterlockedCount m_refCount
 
std::function< const Reference< XInterface >()> m_xInstFunction
 
DWORD m_factoryHandle
 
Reference< XBridgeSupplier2 > m_bridgeSupplier
 
Reference< XMultiServiceFactory > m_smgr
 

Detailed Description

Definition at line 54 of file servprov.hxx.

Constructor & Destructor Documentation

◆ OneInstanceOleWrapper()

OneInstanceOleWrapper::OneInstanceOleWrapper ( const Reference< XMultiServiceFactory > &  smgr,
std::function< const Reference< XInterface >()>  xInstFunction 
)

Definition at line 61 of file servprov.cxx.

References a, Any, m_bridgeSupplier, m_refCount, and m_smgr.

◆ ~OneInstanceOleWrapper()

OneInstanceOleWrapper::~OneInstanceOleWrapper ( )
virtual

Definition at line 77 of file servprov.cxx.

Member Function Documentation

◆ CreateInstance()

COM_DECLSPEC_NOTHROW STDMETHODIMP OneInstanceOleWrapper::CreateInstance ( IUnknown *  punkOuter,
REFIID  riid,
void **  ppv 
)
override

Definition at line 140 of file servprov.cxx.

References Any, m_bridgeSupplier, m_xInstFunction, OLE, SAL_INFO, UNO, and v.

◆ deregisterClass()

bool OneInstanceOleWrapper::deregisterClass ( )

Definition at line 99 of file servprov.cxx.

References m_factoryHandle.

◆ LockServer()

COM_DECLSPEC_NOTHROW STDMETHODIMP OneInstanceOleWrapper::LockServer ( BOOL  fLock)
override

Definition at line 179 of file servprov.cxx.

◆ QueryInterface()

COM_DECLSPEC_NOTHROW STDMETHODIMP OneInstanceOleWrapper::QueryInterface ( REFIID  riid,
void **  ppvObj 
)
override

Definition at line 104 of file servprov.cxx.

◆ registerClass()

bool OneInstanceOleWrapper::registerClass ( GUID const *  pGuid)

Definition at line 81 of file servprov.cxx.

References m_factoryHandle, o2u_attachCurrentThread(), and SAL_INFO.

Referenced by OleServer::provideInstance().

◆ STDMETHOD_() [1/2]

OneInstanceOleWrapper::STDMETHOD_ ( ULONG  ,
AddRef   
)
override

◆ STDMETHOD_() [2/2]

OneInstanceOleWrapper::STDMETHOD_ ( ULONG  ,
Release   
)
override

Member Data Documentation

◆ m_bridgeSupplier

Reference<XBridgeSupplier2> OneInstanceOleWrapper::m_bridgeSupplier
protected

Definition at line 78 of file servprov.hxx.

Referenced by CreateInstance(), and OneInstanceOleWrapper().

◆ m_factoryHandle

DWORD OneInstanceOleWrapper::m_factoryHandle
protected

Definition at line 77 of file servprov.hxx.

Referenced by deregisterClass(), and registerClass().

◆ m_refCount

oslInterlockedCount OneInstanceOleWrapper::m_refCount
protected

Definition at line 75 of file servprov.hxx.

Referenced by STDMETHODIMP_().

◆ m_smgr

Reference<XMultiServiceFactory> OneInstanceOleWrapper::m_smgr
protected

Definition at line 79 of file servprov.hxx.

Referenced by OneInstanceOleWrapper().

◆ m_xInstFunction

std::function<const Reference<XInterface>()> OneInstanceOleWrapper::m_xInstFunction
protected

Definition at line 76 of file servprov.hxx.

Referenced by CreateInstance().


The documentation for this class was generated from the following files: