LibreOffice Module comphelper (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
comphelper::OContainerListener Class Reference

a non-UNO container listener More...

#include <containermultiplexer.hxx>

Collaboration diagram for comphelper::OContainerListener:
[legend]

Public Member Functions

 OContainerListener (::osl::Mutex &_rMutex)
 
virtual ~OContainerListener ()
 
virtual void _elementInserted (const css::container::ContainerEvent &_rEvent)
 
virtual void _elementRemoved (const css::container::ContainerEvent &_rEvent)
 
virtual void _elementReplaced (const css::container::ContainerEvent &_rEvent)
 
virtual void _disposing (const css::lang::EventObject &_rSource)
 

Protected Member Functions

void setAdapter (OContainerListenerAdapter *_pAdapter)
 

Private Attributes

rtl::Reference< OContainerListenerAdapterm_xAdapter
 
::osl::Mutex & m_rMutex
 

Friends

class OContainerListenerAdapter
 

Detailed Description

a non-UNO container listener

Useful if you have a non-refcountable class which should act as container listener.
In this case, derive this class from OContainerListener, and create an adapter OContainerListenerAdapter which multiplexes the changes.

Definition at line 45 of file containermultiplexer.hxx.

Constructor & Destructor Documentation

◆ OContainerListener()

comphelper::OContainerListener::OContainerListener ( ::osl::Mutex &  _rMutex)

Definition at line 32 of file containermultiplexer.cxx.

References m_rMutex.

◆ ~OContainerListener()

comphelper::OContainerListener::~OContainerListener ( )
virtual

Definition at line 38 of file containermultiplexer.cxx.

References m_xAdapter.

Member Function Documentation

◆ _disposing()

void comphelper::OContainerListener::_disposing ( const css::lang::EventObject &  _rSource)
virtual
Exceptions
css::uno::RuntimeException

Definition at line 62 of file containermultiplexer.cxx.

Referenced by comphelper::OContainerListenerAdapter::disposing().

◆ _elementInserted()

void comphelper::OContainerListener::_elementInserted ( const css::container::ContainerEvent &  _rEvent)
virtual
Exceptions
css::uno::RuntimeException

Definition at line 47 of file containermultiplexer.cxx.

Referenced by comphelper::OContainerListenerAdapter::elementInserted().

◆ _elementRemoved()

void comphelper::OContainerListener::_elementRemoved ( const css::container::ContainerEvent &  _rEvent)
virtual
Exceptions
css::uno::RuntimeException

Definition at line 52 of file containermultiplexer.cxx.

Referenced by comphelper::OContainerListenerAdapter::elementRemoved().

◆ _elementReplaced()

void comphelper::OContainerListener::_elementReplaced ( const css::container::ContainerEvent &  _rEvent)
virtual
Exceptions
css::uno::RuntimeException

Definition at line 57 of file containermultiplexer.cxx.

Referenced by comphelper::OContainerListenerAdapter::elementReplaced().

◆ setAdapter()

void comphelper::OContainerListener::setAdapter ( OContainerListenerAdapter _pAdapter)
protected

Friends And Related Function Documentation

◆ OContainerListenerAdapter

friend class OContainerListenerAdapter
friend

Definition at line 47 of file containermultiplexer.hxx.

Member Data Documentation

◆ m_rMutex

::osl::Mutex& comphelper::OContainerListener::m_rMutex
private

Definition at line 49 of file containermultiplexer.hxx.

Referenced by setAdapter().

◆ m_xAdapter

rtl::Reference<OContainerListenerAdapter> comphelper::OContainerListener::m_xAdapter
private

Definition at line 48 of file containermultiplexer.hxx.

Referenced by setAdapter(), and ~OContainerListener().


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