LibreOffice Module comphelper (master)  1
Public Member Functions | Protected Member Functions | Protected 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)
 

Protected 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

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

Definition at line 32 of file containermultiplexer.cxx.

comphelper::OContainerListener::~OContainerListener ( )
virtual

Definition at line 38 of file containermultiplexer.cxx.

References m_xAdapter.

Member Function Documentation

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().

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().

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().

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().

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

Friends And Related Function Documentation

friend class OContainerListenerAdapter
friend

Definition at line 47 of file containermultiplexer.hxx.

Member Data Documentation

::osl::Mutex& comphelper::OContainerListener::m_rMutex
protected

Definition at line 50 of file containermultiplexer.hxx.

Referenced by setAdapter().

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

Definition at line 49 of file containermultiplexer.hxx.

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


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