LibreOffice Module comphelper (master) 1
|
a non-UNO container listener More...
#include <containermultiplexer.hxx>
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< OContainerListenerAdapter > | m_xAdapter |
::osl::Mutex & | m_rMutex |
Friends | |
class | OContainerListenerAdapter |
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.
comphelper::OContainerListener::OContainerListener | ( | ::osl::Mutex & | _rMutex | ) |
Definition at line 32 of file containermultiplexer.cxx.
References m_rMutex.
|
virtual |
Definition at line 38 of file containermultiplexer.cxx.
References m_xAdapter.
|
virtual |
css::uno::RuntimeException |
Definition at line 62 of file containermultiplexer.cxx.
Referenced by comphelper::OContainerListenerAdapter::disposing().
|
virtual |
css::uno::RuntimeException |
Definition at line 47 of file containermultiplexer.cxx.
Referenced by comphelper::OContainerListenerAdapter::elementInserted().
|
virtual |
css::uno::RuntimeException |
Definition at line 52 of file containermultiplexer.cxx.
Referenced by comphelper::OContainerListenerAdapter::elementRemoved().
|
virtual |
css::uno::RuntimeException |
Definition at line 57 of file containermultiplexer.cxx.
Referenced by comphelper::OContainerListenerAdapter::elementReplaced().
|
protected |
Definition at line 67 of file containermultiplexer.cxx.
References m_rMutex, and m_xAdapter.
Referenced by comphelper::OContainerListenerAdapter::dispose(), comphelper::OContainerListenerAdapter::disposing(), and comphelper::OContainerListenerAdapter::OContainerListenerAdapter().
|
friend |
Definition at line 47 of file containermultiplexer.hxx.
|
private |
Definition at line 49 of file containermultiplexer.hxx.
Referenced by setAdapter().
|
private |
Definition at line 48 of file containermultiplexer.hxx.
Referenced by setAdapter(), and ~OContainerListener().