LibreOffice Module comphelper (master)  1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
comphelper::ImplEventAttacherManager Class Reference
Inheritance diagram for comphelper::ImplEventAttacherManager:
[legend]
Collaboration diagram for comphelper::ImplEventAttacherManager:
[legend]

Public Member Functions

 ImplEventAttacherManager (const Reference< XIntrospection > &rIntrospection, const Reference< XComponentContext > &rContext)
 
virtual void SAL_CALL registerScriptEvent (sal_Int32 Index, const ScriptEventDescriptor &ScriptEvent) override
 
virtual void SAL_CALL registerScriptEvents (sal_Int32 Index, const Sequence< ScriptEventDescriptor > &ScriptEvents) override
 
virtual void SAL_CALL revokeScriptEvent (sal_Int32 Index, const OUString &ListenerType, const OUString &EventMethod, const OUString &removeListenerParam) override
 
virtual void SAL_CALL revokeScriptEvents (sal_Int32 Index) override
 
virtual void SAL_CALL insertEntry (sal_Int32 Index) override
 
virtual void SAL_CALL removeEntry (sal_Int32 Index) override
 
virtual Sequence< ScriptEventDescriptor > SAL_CALL getScriptEvents (sal_Int32 Index) override
 
virtual void SAL_CALL attach (sal_Int32 Index, const Reference< XInterface > &Object, const Any &Helper) override
 
virtual void SAL_CALL detach (sal_Int32 nIndex, const Reference< XInterface > &xObject) override
 
virtual void SAL_CALL addScriptListener (const Reference< XScriptListener > &aListener) override
 
virtual void SAL_CALL removeScriptListener (const Reference< XScriptListener > &Listener) override
 
virtual OUString SAL_CALL getServiceName () override
 
virtual void SAL_CALL write (const Reference< XObjectOutputStream > &OutStream) override
 
virtual void SAL_CALL read (const Reference< XObjectInputStream > &InStream) override
 

Private Member Functions

Reference< XIdlReflection > getReflection ()
 
std::deque< AttacherIndex_Impl >::iterator implCheckIndex (sal_Int32 _nIndex)
 checks if <arg>_nIndex</arg> is a valid index, throws an <type>IllegalArgumentException</type> if not More...
 

Private Attributes

std::deque< AttacherIndex_ImplaIndex
 
Mutex aLock
 
OInterfaceContainerHelper2 aScriptListeners
 
Reference< XEventAttacher2 > xAttacher
 
Reference< XComponentContext > mxContext
 
Reference< XIdlReflection > mxCoreReflection
 
Reference< XTypeConverter > xConverter
 
sal_Int16 nVersion
 

Friends

class AttacherAllListener_Impl
 

Detailed Description

Definition at line 80 of file eventattachermgr.cxx.

Constructor & Destructor Documentation

comphelper::ImplEventAttacherManager::ImplEventAttacherManager ( const Reference< XIntrospection > &  rIntrospection,
const Reference< XComponentContext > &  rContext 
)

Definition at line 338 of file eventattachermgr.cxx.

References xAttacher, and xConverter.

Member Function Documentation

void SAL_CALL comphelper::ImplEventAttacherManager::addScriptListener ( const Reference< XScriptListener > &  aListener)
overridevirtual
void SAL_CALL comphelper::ImplEventAttacherManager::attach ( sal_Int32  Index,
const Reference< XInterface > &  Object,
const Any &  Helper 
)
overridevirtual
void SAL_CALL comphelper::ImplEventAttacherManager::detach ( sal_Int32  nIndex,
const Reference< XInterface > &  xObject 
)
overridevirtual

Definition at line 584 of file eventattachermgr.cxx.

References aIndex, aLock, Exception, i, and xAttacher.

Referenced by removeEntry(), and revokeScriptEvents().

Reference< XIdlReflection > comphelper::ImplEventAttacherManager::getReflection ( )
private
Exceptions
Exception

Definition at line 364 of file eventattachermgr.cxx.

References aLock, mxContext, and mxCoreReflection.

Sequence< ScriptEventDescriptor > SAL_CALL comphelper::ImplEventAttacherManager::getScriptEvents ( sal_Int32  Index)
overridevirtual

Definition at line 520 of file eventattachermgr.cxx.

References aLock, comphelper::containerToSequence(), and implCheckIndex().

OUString SAL_CALL comphelper::ImplEventAttacherManager::getServiceName ( )
overridevirtual

Definition at line 630 of file eventattachermgr.cxx.

std::deque< AttacherIndex_Impl >::iterator comphelper::ImplEventAttacherManager::implCheckIndex ( sal_Int32  _nIndex)
private

checks if <arg>_nIndex</arg> is a valid index, throws an <type>IllegalArgumentException</type> if not

Parameters
_nIndexthe index to check
Returns
the iterator pointing to the position indicated by the index

Definition at line 376 of file eventattachermgr.cxx.

References aIndex.

Referenced by getScriptEvents(), removeEntry(), and revokeScriptEvents().

void SAL_CALL comphelper::ImplEventAttacherManager::insertEntry ( sal_Int32  Index)
overridevirtual

Definition at line 493 of file eventattachermgr.cxx.

References aIndex, and aLock.

Referenced by attach(), and read().

void SAL_CALL comphelper::ImplEventAttacherManager::read ( const Reference< XObjectInputStream > &  InStream)
overridevirtual

Definition at line 674 of file eventattachermgr.cxx.

References aLock, i, insertEntry(), nVersion, and registerScriptEvents().

void SAL_CALL comphelper::ImplEventAttacherManager::registerScriptEvent ( sal_Int32  Index,
const ScriptEventDescriptor &  ScriptEvent 
)
overridevirtual

Definition at line 387 of file eventattachermgr.cxx.

References Exception.

void SAL_CALL comphelper::ImplEventAttacherManager::registerScriptEvents ( sal_Int32  Index,
const Sequence< ScriptEventDescriptor > &  ScriptEvents 
)
overridevirtual

Definition at line 422 of file eventattachermgr.cxx.

References i.

Referenced by read().

void SAL_CALL comphelper::ImplEventAttacherManager::removeEntry ( sal_Int32  Index)
overridevirtual

Definition at line 507 of file eventattachermgr.cxx.

References aIndex, aLock, detach(), and implCheckIndex().

void SAL_CALL comphelper::ImplEventAttacherManager::removeScriptListener ( const Reference< XScriptListener > &  Listener)
overridevirtual
void SAL_CALL comphelper::ImplEventAttacherManager::revokeScriptEvent ( sal_Int32  Index,
const OUString &  ListenerType,
const OUString &  EventMethod,
const OUString &  removeListenerParam 
)
overridevirtual

Definition at line 445 of file eventattachermgr.cxx.

void SAL_CALL comphelper::ImplEventAttacherManager::revokeScriptEvents ( sal_Int32  Index)
overridevirtual

Definition at line 479 of file eventattachermgr.cxx.

References aLock, attach(), detach(), and implCheckIndex().

void SAL_CALL comphelper::ImplEventAttacherManager::write ( const Reference< XObjectOutputStream > &  OutStream)
overridevirtual

Definition at line 635 of file eventattachermgr.cxx.

References aIndex, and aLock.

Friends And Related Function Documentation

friend class AttacherAllListener_Impl
friend

Definition at line 83 of file eventattachermgr.cxx.

Referenced by attach().

Member Data Documentation

std::deque< AttacherIndex_Impl > comphelper::ImplEventAttacherManager::aIndex
private

Definition at line 84 of file eventattachermgr.cxx.

Referenced by attach(), detach(), implCheckIndex(), insertEntry(), removeEntry(), and write().

Mutex comphelper::ImplEventAttacherManager::aLock
private
OInterfaceContainerHelper2 comphelper::ImplEventAttacherManager::aScriptListeners
private

Definition at line 87 of file eventattachermgr.cxx.

Referenced by addScriptListener(), and removeScriptListener().

Reference< XComponentContext > comphelper::ImplEventAttacherManager::mxContext
private

Definition at line 90 of file eventattachermgr.cxx.

Referenced by getReflection().

Reference< XIdlReflection > comphelper::ImplEventAttacherManager::mxCoreReflection
private

Definition at line 91 of file eventattachermgr.cxx.

Referenced by getReflection().

sal_Int16 comphelper::ImplEventAttacherManager::nVersion
private

Definition at line 93 of file eventattachermgr.cxx.

Referenced by attach(), and read().

Reference< XEventAttacher2 > comphelper::ImplEventAttacherManager::xAttacher
private

Definition at line 89 of file eventattachermgr.cxx.

Referenced by attach(), detach(), and ImplEventAttacherManager().

Reference< XTypeConverter > comphelper::ImplEventAttacherManager::xConverter
private

Definition at line 92 of file eventattachermgr.cxx.

Referenced by ImplEventAttacherManager().


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