LibreOffice Module shell (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
CClassFactory Class Reference

#include <classfactory.hxx>

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

Public Member Functions

 CClassFactory (const CLSID &clsid)
 
virtual ~CClassFactory ()
 
virtual HRESULT STDMETHODCALLTYPE QueryInterface (REFIID riid, void __RPC_FAR *__RPC_FAR *ppvObject) override
 
virtual ULONG STDMETHODCALLTYPE AddRef () override
 
virtual ULONG STDMETHODCALLTYPE Release () override
 
virtual HRESULT STDMETHODCALLTYPE CreateInstance (IUnknown __RPC_FAR *pUnkOuter, REFIID riid, void __RPC_FAR *__RPC_FAR *ppvObject) override
 
virtual HRESULT STDMETHODCALLTYPE LockServer (BOOL fLock) override
 
 CClassFactory (const CLSID &clsid)
 
virtual ~CClassFactory ()
 
virtual HRESULT STDMETHODCALLTYPE QueryInterface (REFIID riid, void __RPC_FAR *__RPC_FAR *ppvObject) override
 
virtual ULONG STDMETHODCALLTYPE AddRef () override
 
virtual ULONG STDMETHODCALLTYPE Release () override
 
virtual HRESULT STDMETHODCALLTYPE CreateInstance (IUnknown __RPC_FAR *pUnkOuter, REFIID riid, void __RPC_FAR *__RPC_FAR *ppvObject) override
 
virtual HRESULT STDMETHODCALLTYPE LockServer (BOOL fLock) override
 

Static Public Member Functions

static bool IsLocked ()
 
static bool IsLocked ()
 

Private Attributes

LONG m_RefCnt
 
CLSID m_Clsid
 

Static Private Attributes

static LONG s_ServerLocks = 0
 

Detailed Description

Definition at line 25 of file classfactory.hxx.

Constructor & Destructor Documentation

◆ CClassFactory() [1/2]

CClassFactory::CClassFactory ( const CLSID &  clsid)
explicit

Definition at line 32 of file classfactory.cxx.

References g_DllRefCnt.

◆ ~CClassFactory() [1/2]

CClassFactory::~CClassFactory ( )
virtual

Definition at line 40 of file classfactory.cxx.

References g_DllRefCnt.

◆ CClassFactory() [2/2]

CClassFactory::CClassFactory ( const CLSID &  clsid)

◆ ~CClassFactory() [2/2]

virtual CClassFactory::~CClassFactory ( )
virtual

Member Function Documentation

◆ AddRef() [1/2]

virtual ULONG STDMETHODCALLTYPE CClassFactory::AddRef ( )
overridevirtual

◆ AddRef() [2/2]

ULONG STDMETHODCALLTYPE CClassFactory::AddRef ( )
overridevirtual

Definition at line 65 of file classfactory.cxx.

References m_RefCnt.

◆ CreateInstance() [1/2]

virtual HRESULT STDMETHODCALLTYPE CClassFactory::CreateInstance ( IUnknown __RPC_FAR *  pUnkOuter,
REFIID  riid,
void __RPC_FAR *__RPC_FAR *  ppvObject 
)
overridevirtual

◆ CreateInstance() [2/2]

HRESULT STDMETHODCALLTYPE CClassFactory::CreateInstance ( IUnknown __RPC_FAR *  pUnkOuter,
REFIID  riid,
void __RPC_FAR *__RPC_FAR *  ppvObject 
)
overridevirtual

◆ IsLocked() [1/2]

static bool CClassFactory::IsLocked ( )
static

References LONG.

◆ IsLocked() [2/2]

bool CClassFactory::IsLocked ( )
static

Definition at line 132 of file classfactory.cxx.

References s_ServerLocks.

Referenced by DllCanUnloadNow().

◆ LockServer() [1/2]

virtual HRESULT STDMETHODCALLTYPE CClassFactory::LockServer ( BOOL  fLock)
overridevirtual

◆ LockServer() [2/2]

HRESULT STDMETHODCALLTYPE CClassFactory::LockServer ( BOOL  fLock)
overridevirtual

Definition at line 121 of file classfactory.cxx.

References s_ServerLocks.

◆ QueryInterface() [1/2]

virtual HRESULT STDMETHODCALLTYPE CClassFactory::QueryInterface ( REFIID  riid,
void __RPC_FAR *__RPC_FAR *  ppvObject 
)
overridevirtual

◆ QueryInterface() [2/2]

HRESULT STDMETHODCALLTYPE CClassFactory::QueryInterface ( REFIID  riid,
void __RPC_FAR *__RPC_FAR *  ppvObject 
)
overridevirtual

Definition at line 49 of file classfactory.cxx.

◆ Release() [1/2]

virtual ULONG STDMETHODCALLTYPE CClassFactory::Release ( )
overridevirtual

◆ Release() [2/2]

ULONG STDMETHODCALLTYPE CClassFactory::Release ( )
overridevirtual

Definition at line 71 of file classfactory.cxx.

References LONG, and m_RefCnt.

Member Data Documentation

◆ m_Clsid

CLSID CClassFactory::m_Clsid
private

Definition at line 58 of file classfactory.hxx.

Referenced by CreateInstance().

◆ m_RefCnt

LONG CClassFactory::m_RefCnt
private

Definition at line 57 of file classfactory.hxx.

Referenced by AddRef(), and Release().

◆ s_ServerLocks

static LONG CClassFactory::s_ServerLocks = 0
staticprivate

Definition at line 60 of file classfactory.hxx.

Referenced by IsLocked(), and LockServer().


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