LibreOffice Module cppuhelper (master) 1
Namespaces | Classes | Typedefs | Functions
cppuhelper Namespace Reference

This is a straight copy of the include/comphelper/compbase.hxx file, copied here because it is nigh impossible to move shared code down into the URE layer. More...

Namespaces

namespace  detail
 

Classes

class  OInterfaceContainerHelper4
 A container of interfaces. More...
 
class  OInterfaceIteratorHelper4
 This is the iterator of an OInterfaceContainerHelper4. More...
 
class  ServiceManager
 
class  TypeManager
 
class  UnoImplBase
 This is a straight copy of the include/comphelper/unoimplbase.hxx file, copied here because it is nigh impossible to move shared code down into the URE layer. More...
 
class  WeakComponentImplHelper2
 
class  WeakComponentImplHelperBase2
 Serves two purposes (1) extracts code that doesn't need to be templated (2) helps to handle the custom where we have conflicting interfaces e.g. More...
 

Typedefs

typedef css::uno::XInterface * ImplementationConstructorFn(css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
 
typedef std::function< css::uno::XInterface *(css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)> WrapperConstructorFn
 
typedef WeakComponentImplHelper2< css::lang::XServiceInfo, css::lang::XMultiServiceFactory, css::lang::XMultiComponentFactory, css::container::XSet, css::container::XContentEnumerationAccess, css::beans::XPropertySet, css::beans::XPropertySetInfo, css::lang::XEventListener, css::lang::XInitialization > ServiceManagerBase
 
typedef WeakComponentImplHelper2< css::lang::XServiceInfo, css::container::XHierarchicalNameAccess, css::container::XSet, css::reflection::XTypeDescriptionEnumerationAccess > TypeManager_Base
 

Functions

static void checkInterface (css::uno::Type const &rType)
 
static bool isXInterface (rtl_uString *pStr)
 
static bool td_equals (typelib_TypeDescriptionReference const *pTDR1, typelib_TypeDescriptionReference const *pTDR2)
 
static cppu::type_entry * getTypeEntries (cppu::class_data *cd)
 
static void * makeInterface (sal_IntPtr nOffset, void *that)
 
static bool recursivelyFindType (typelib_TypeDescriptionReference const *demandedType, typelib_InterfaceTypeDescription const *type, sal_IntPtr *offset)
 
static void * queryDeepNoXInterface (typelib_TypeDescriptionReference const *pDemandedTDR, cppu::class_data *cd, void *that)
 
css::uno::Any WeakComponentImplHelper_query (css::uno::Type const &rType, cppu::class_data *cd, WeakComponentImplHelperBase2 *pBase)
 WeakComponentImplHelper. More...
 

Detailed Description

This is a straight copy of the include/comphelper/compbase.hxx file, copied here because it is nigh impossible to move shared code down into the URE layer.

This is a straight copy of the include/comphelper/interfacecontainer4.hxx file, copied here because it is nigh impossible to move shared code down into the URE layer.

Typedef Documentation

◆ ImplementationConstructorFn

typedef css::uno::XInterface * cppuhelper::ImplementationConstructorFn(css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)

Definition at line 49 of file servicemanager.hxx.

◆ ServiceManagerBase

typedef WeakComponentImplHelper2< css::lang::XServiceInfo, css::lang::XMultiServiceFactory, css::lang::XMultiComponentFactory, css::container::XSet, css::container::XContentEnumerationAccess, css::beans::XPropertySet, css::beans::XPropertySetInfo, css::lang::XEventListener, css::lang::XInitialization> cppuhelper::ServiceManagerBase

Definition at line 62 of file servicemanager.hxx.

◆ TypeManager_Base

typedef WeakComponentImplHelper2< css::lang::XServiceInfo, css::container::XHierarchicalNameAccess, css::container::XSet, css::reflection::XTypeDescriptionEnumerationAccess > cppuhelper::TypeManager_Base

Definition at line 42 of file typemanager.hxx.

◆ WrapperConstructorFn

typedef std::function<css::uno::XInterface * (css::uno::XComponentContext *, css::uno::Sequence<css::uno::Any> const&)> cppuhelper::WrapperConstructorFn

Definition at line 54 of file servicemanager.hxx.

Function Documentation

◆ checkInterface()

static void cppuhelper::checkInterface ( css::uno::Type const &  rType)
static

Definition at line 59 of file compbase.cxx.

References SAL_WARN.

Referenced by WeakComponentImplHelper_query().

◆ getTypeEntries()

static cppu::type_entry * cppuhelper::getTypeEntries ( cppu::class_data *  cd)
static

Definition at line 81 of file compbase.cxx.

References aMutex, isXInterface(), n, and SAL_WARN.

Referenced by queryDeepNoXInterface().

◆ isXInterface()

static bool cppuhelper::isXInterface ( rtl_uString *  pStr)
static

Definition at line 69 of file compbase.cxx.

Referenced by getTypeEntries(), and WeakComponentImplHelper_query().

◆ makeInterface()

static void * cppuhelper::makeInterface ( sal_IntPtr  nOffset,
void *  that 
)
static

Definition at line 120 of file compbase.cxx.

Referenced by queryDeepNoXInterface().

◆ queryDeepNoXInterface()

static void * cppuhelper::queryDeepNoXInterface ( typelib_TypeDescriptionReference const *  pDemandedTDR,
cppu::class_data *  cd,
void *  that 
)
static

◆ recursivelyFindType()

static bool cppuhelper::recursivelyFindType ( typelib_TypeDescriptionReference const *  demandedType,
typelib_InterfaceTypeDescription const *  type,
sal_IntPtr *  offset 
)
static

Definition at line 125 of file compbase.cxx.

References base, i, recursivelyFindType(), td_equals(), and type.

Referenced by queryDeepNoXInterface(), and recursivelyFindType().

◆ td_equals()

static bool cppuhelper::td_equals ( typelib_TypeDescriptionReference const *  pTDR1,
typelib_TypeDescriptionReference const *  pTDR2 
)
static

Definition at line 74 of file compbase.cxx.

Referenced by queryDeepNoXInterface(), and recursivelyFindType().

◆ WeakComponentImplHelper_query()

CPPUHELPER_DLLPUBLIC css::uno::Any cppuhelper::WeakComponentImplHelper_query ( css::uno::Type const &  rType,
cppu::class_data *  cd,
WeakComponentImplHelperBase2 pBase 
)

WeakComponentImplHelper.

Definition at line 211 of file compbase.cxx.

References checkInterface(), isXInterface(), p, and queryDeepNoXInterface().

Referenced by cppuhelper::WeakComponentImplHelper2< Ifc >::queryInterface().