LibreOffice Module stoc (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
stoc_corefl::IdlReflectionServiceImpl Class Reference

#include <base.hxx>

Inheritance diagram for stoc_corefl::IdlReflectionServiceImpl:
[legend]
Collaboration diagram for stoc_corefl::IdlReflectionServiceImpl:
[legend]

Public Member Functions

const css::uno::Mapping & getCpp2Uno ()
 
const css::uno::Mapping & getUno2Cpp ()
 
uno_Interface * mapToUno (const css::uno::Any &rObj, typelib_InterfaceTypeDescription *pTo)
 
 IdlReflectionServiceImpl (const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
virtual ~IdlReflectionServiceImpl () override
 
virtual void SAL_CALL disposing () override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &rServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual css::uno::Reference< css::reflection::XIdlClass > SAL_CALL forName (const OUString &rTypeName) override
 
virtual css::uno::Reference< css::reflection::XIdlClass > SAL_CALL getType (const css::uno::Any &rObj) override
 
virtual css::uno::Any SAL_CALL getByHierarchicalName (const OUString &rName) override
 
virtual sal_Bool SAL_CALL hasByHierarchicalName (const OUString &rName) override
 
css::uno::Reference< css::reflection::XIdlClass > forType (typelib_TypeDescription *pTypeDescr)
 
css::uno::Reference< css::reflection::XIdlClass > forType (typelib_TypeDescriptionReference *pRef)
 

Private Member Functions

css::uno::Reference< css::reflection::XIdlClass > constructClass (typelib_TypeDescription *pTypeDescr)
 

Private Attributes

::osl::Mutex _aComponentMutex
 
css::uno::Reference< css::container::XHierarchicalNameAccess > _xTDMgr
 
LRU_CacheAnyByOUString _aElements
 
css::uno::Mapping _aCpp2Uno
 
css::uno::Mapping _aUno2Cpp
 

Detailed Description

Definition at line 76 of file base.hxx.

Constructor & Destructor Documentation

◆ IdlReflectionServiceImpl()

stoc_corefl::IdlReflectionServiceImpl::IdlReflectionServiceImpl ( const css::uno::Reference< css::uno::XComponentContext > &  xContext)
explicit

Definition at line 46 of file crefl.cxx.

References _xTDMgr.

◆ ~IdlReflectionServiceImpl()

stoc_corefl::IdlReflectionServiceImpl::~IdlReflectionServiceImpl ( )
overridevirtual

Definition at line 55 of file crefl.cxx.

Member Function Documentation

◆ constructClass()

Reference< XIdlClass > stoc_corefl::IdlReflectionServiceImpl::constructClass ( typelib_TypeDescription pTypeDescr)
inlineprivate

Definition at line 98 of file crefl.cxx.

References SAL_INFO.

Referenced by forName(), forType(), and getByHierarchicalName().

◆ disposing()

void stoc_corefl::IdlReflectionServiceImpl::disposing ( )
overridevirtual

◆ forName()

Reference< XIdlClass > stoc_corefl::IdlReflectionServiceImpl::forName ( const OUString &  rTypeName)
overridevirtual

◆ forType() [1/2]

Reference< XIdlClass > stoc_corefl::IdlReflectionServiceImpl::forType ( typelib_TypeDescription pTypeDescr)

◆ forType() [2/2]

Reference< XIdlClass > stoc_corefl::IdlReflectionServiceImpl::forType ( typelib_TypeDescriptionReference *  pRef)
Exceptions
css::uno::RuntimeException

Definition at line 255 of file crefl.cxx.

References forType().

◆ getByHierarchicalName()

Any stoc_corefl::IdlReflectionServiceImpl::getByHierarchicalName ( const OUString &  rName)
overridevirtual

◆ getCpp2Uno()

const Mapping & stoc_corefl::IdlReflectionServiceImpl::getCpp2Uno ( )
Exceptions
css::uno::RuntimeException

Definition at line 271 of file crefl.cxx.

References _aCpp2Uno, and stoc_corefl::getMutexAccess().

Referenced by mapToUno().

◆ getImplementationName()

OUString stoc_corefl::IdlReflectionServiceImpl::getImplementationName ( )
overridevirtual

Definition at line 74 of file crefl.cxx.

◆ getSupportedServiceNames()

Sequence< OUString > stoc_corefl::IdlReflectionServiceImpl::getSupportedServiceNames ( )
overridevirtual

Definition at line 84 of file crefl.cxx.

◆ getType()

Reference< XIdlClass > stoc_corefl::IdlReflectionServiceImpl::getType ( const css::uno::Any &  rObj)
overridevirtual

Definition at line 92 of file crefl.cxx.

References forType().

◆ getUno2Cpp()

const Mapping & stoc_corefl::IdlReflectionServiceImpl::getUno2Cpp ( )
Exceptions
css::uno::RuntimeException

Definition at line 291 of file crefl.cxx.

References _aUno2Cpp, and stoc_corefl::getMutexAccess().

◆ hasByHierarchicalName()

sal_Bool stoc_corefl::IdlReflectionServiceImpl::hasByHierarchicalName ( const OUString &  rName)
overridevirtual

Definition at line 222 of file crefl.cxx.

References getByHierarchicalName().

◆ mapToUno()

uno_Interface * stoc_corefl::IdlReflectionServiceImpl::mapToUno ( const css::uno::Any &  rObj,
typelib_InterfaceTypeDescription *  pTo 
)
Exceptions
css::uno::RuntimeException

Definition at line 311 of file crefl.cxx.

References stoc_corefl::extract(), and getCpp2Uno().

◆ supportsService()

sal_Bool stoc_corefl::IdlReflectionServiceImpl::supportsService ( const OUString &  rServiceName)
overridevirtual

Definition at line 79 of file crefl.cxx.

References cppu::supportsService().

Member Data Documentation

◆ _aComponentMutex

::osl::Mutex stoc_corefl::IdlReflectionServiceImpl::_aComponentMutex
private

Definition at line 82 of file base.hxx.

Referenced by disposing().

◆ _aCpp2Uno

css::uno::Mapping stoc_corefl::IdlReflectionServiceImpl::_aCpp2Uno
private

Definition at line 88 of file base.hxx.

Referenced by getCpp2Uno().

◆ _aElements

LRU_CacheAnyByOUString stoc_corefl::IdlReflectionServiceImpl::_aElements
private

Definition at line 86 of file base.hxx.

Referenced by disposing(), forName(), forType(), and getByHierarchicalName().

◆ _aUno2Cpp

css::uno::Mapping stoc_corefl::IdlReflectionServiceImpl::_aUno2Cpp
private

Definition at line 89 of file base.hxx.

Referenced by getUno2Cpp().

◆ _xTDMgr

css::uno::Reference< css::container::XHierarchicalNameAccess > stoc_corefl::IdlReflectionServiceImpl::_xTDMgr
private

Definition at line 83 of file base.hxx.

Referenced by getByHierarchicalName(), and IdlReflectionServiceImpl().


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