LibreOffice Module dbaccess (master) 1
|
#include <sbamultiplex.hxx>
Public Member Functions | |
SbaXPropertyChangeMultiplexer (::cppu::OWeakObject &rSource, ::osl::Mutex &rMutex) | |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &_rType) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual void SAL_CALL | propertyChange (const css::beans::PropertyChangeEvent &e) override |
void | addInterface (const OUString &rName, const css::uno::Reference< css::beans::XPropertyChangeListener > &rListener) |
void | removeInterface (const OUString &rName, const css::uno::Reference< css::beans::XPropertyChangeListener > &rListener) |
void | disposeAndClear () |
sal_Int32 | getOverallLen () const |
::comphelper::OInterfaceContainerHelper3< css::beans::XPropertyChangeListener > * | getContainer (const OUString &rName) |
Public Member Functions inherited from dbaui::OSbaWeakSubObject | |
OSbaWeakSubObject (::cppu::OWeakObject &rParent) | |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
Public Member Functions inherited from cppu::OWeakObject | |
OWeakObject () | |
OWeakObject (const OWeakObject &) | |
OWeakObject &SAL_CALL | operator= (const OWeakObject &) |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) SAL_OVERRIDE |
virtual void SAL_CALL | acquire () SAL_NOEXCEPT SAL_OVERRIDE |
virtual void SAL_CALL | release () SAL_NOEXCEPT SAL_OVERRIDE |
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL | queryAdapter () SAL_OVERRIDE |
SAL_CALL | operator css::uno::Reference< css::uno::XInterface > () |
Private Types | |
typedef ::comphelper::OMultiTypeInterfaceContainerHelperVar3< css::beans::XPropertyChangeListener, OUString > | ListenerContainerMap |
Private Member Functions | |
void | Notify (::comphelper::OInterfaceContainerHelper3< css::beans::XPropertyChangeListener > &rListeners, const css::beans::PropertyChangeEvent &e) |
Private Attributes | |
ListenerContainerMap | m_aListeners |
Additional Inherited Members | |
Protected Member Functions inherited from cppu::OWeakObject | |
virtual | ~OWeakObject () COVERITY_NOEXCEPT_FALSE |
void | disposeWeakConnectionPoint () |
Protected Attributes inherited from dbaui::OSbaWeakSubObject | |
::cppu::OWeakObject & | m_rParent |
Protected Attributes inherited from cppu::OWeakObject | |
oslInterlockedCount | m_refCount |
Definition at line 223 of file sbamultiplex.hxx.
|
private |
Definition at line 227 of file sbamultiplex.hxx.
SbaXPropertyChangeMultiplexer::SbaXPropertyChangeMultiplexer | ( | ::cppu::OWeakObject & | rSource, |
::osl::Mutex & | rMutex | ||
) |
Definition at line 351 of file sbamultiplex.cxx.
References m_aListeners.
void SbaXPropertyChangeMultiplexer::addInterface | ( | const OUString & | rName, |
const css::uno::Reference< css::beans::XPropertyChangeListener > & | rListener | ||
) |
Definition at line 383 of file sbamultiplex.cxx.
References comphelper::OMultiTypeInterfaceContainerHelperVar3< class listener, class key, class equalImpl >::addInterface(), and m_aListeners.
Referenced by dbaui::SbaXFormAdapter::addPropertyChangeListener().
void SbaXPropertyChangeMultiplexer::disposeAndClear | ( | ) |
Definition at line 395 of file sbamultiplex.cxx.
References comphelper::OMultiTypeInterfaceContainerHelperVar3< class listener, class key, class equalImpl >::disposeAndClear(), m_aListeners, and dbaui::OSbaWeakSubObject::m_rParent.
Referenced by dbaui::SbaXFormAdapter::dispose().
|
overridevirtual |
Definition at line 368 of file sbamultiplex.cxx.
|
inline |
Definition at line 247 of file sbamultiplex.hxx.
References comphelper::OMultiTypeInterfaceContainerHelperVar3< class listener, class key, class equalImpl >::getContainer(), and m_aListeners.
Referenced by dbaui::SbaXFormAdapter::setFastPropertyValue().
sal_Int32 SbaXPropertyChangeMultiplexer::getOverallLen | ( | ) | const |
Definition at line 401 of file sbamultiplex.cxx.
References comphelper::OMultiTypeInterfaceContainerHelperVar3< class listener, class key, class equalImpl >::getContainedTypes(), comphelper::OMultiTypeInterfaceContainerHelperVar3< class listener, class key, class equalImpl >::getContainer(), comphelper::OInterfaceContainerHelper3< class ListenerT >::getLength(), and m_aListeners.
Referenced by dbaui::SbaXFormAdapter::addPropertyChangeListener(), dbaui::SbaXFormAdapter::removePropertyChangeListener(), dbaui::SbaXFormAdapter::StartListening(), and dbaui::SbaXFormAdapter::StopListening().
|
private |
Definition at line 415 of file sbamultiplex.cxx.
References dbaui::OSbaWeakSubObject::m_rParent, and comphelper::OInterfaceContainerHelper3< class ListenerT >::notifyEach().
Referenced by propertyChange().
|
overridevirtual |
Definition at line 371 of file sbamultiplex.cxx.
References comphelper::OMultiTypeInterfaceContainerHelperVar3< class listener, class key, class equalImpl >::getContainer(), m_aListeners, and Notify().
|
overridevirtual |
Reimplemented from cppu::OWeakObject.
Definition at line 357 of file sbamultiplex.cxx.
References cppu::OWeakObject::queryInterface().
void SbaXPropertyChangeMultiplexer::removeInterface | ( | const OUString & | rName, |
const css::uno::Reference< css::beans::XPropertyChangeListener > & | rListener | ||
) |
Definition at line 389 of file sbamultiplex.cxx.
References m_aListeners, and comphelper::OMultiTypeInterfaceContainerHelperVar3< class listener, class key, class equalImpl >::removeInterface().
Referenced by dbaui::SbaXFormAdapter::removePropertyChangeListener().
|
private |
Definition at line 228 of file sbamultiplex.hxx.
Referenced by addInterface(), disposeAndClear(), getContainer(), getOverallLen(), propertyChange(), and removeInterface().