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

multiplexer for property changes More...

#include <propmultiplex.hxx>

Inheritance diagram for comphelper::OPropertyChangeMultiplexer:
[legend]
Collaboration diagram for comphelper::OPropertyChangeMultiplexer:
[legend]

Public Member Functions

 OPropertyChangeMultiplexer (OPropertyChangeListener *_pListener, const css::uno::Reference< css::beans::XPropertySet > &_rxSet, bool _bAutoReleaseSet=true)
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
virtual void SAL_CALL propertyChange (const css::beans::PropertyChangeEvent &evt) override
 
void lock ()
 incremental lock More...
 
void unlock ()
 incremental unlock More...
 
sal_Int32 locked () const
 get the lock count More...
 
void addProperty (const OUString &aPropertyName)
 
void dispose ()
 

Private Member Functions

virtual ~OPropertyChangeMultiplexer () override
 

Private Attributes

std::vector< OUString > m_aProperties
 
css::uno::Reference< css::beans::XPropertySetm_xSet
 
OPropertyChangeListenerm_pListener
 
sal_Int32 m_nLockCount
 
bool m_bListening: 1
 
bool const m_bAutoSetRelease: 1
 

Friends

class OPropertyChangeListener
 

Detailed Description

multiplexer for property changes

Definition at line 77 of file propmultiplex.hxx.

Constructor & Destructor Documentation

comphelper::OPropertyChangeMultiplexer::~OPropertyChangeMultiplexer ( )
overrideprivatevirtual

Definition at line 73 of file propmultiplex.cxx.

comphelper::OPropertyChangeMultiplexer::OPropertyChangeMultiplexer ( OPropertyChangeListener _pListener,
const css::uno::Reference< css::beans::XPropertySet > &  _rxSet,
bool  _bAutoReleaseSet = true 
)

Member Function Documentation

void comphelper::OPropertyChangeMultiplexer::addProperty ( const OUString &  aPropertyName)

Definition at line 139 of file propmultiplex.cxx.

References m_aProperties, m_bListening, and m_xSet.

void comphelper::OPropertyChangeMultiplexer::dispose ( void  )
void SAL_CALL comphelper::OPropertyChangeMultiplexer::disposing ( const css::lang::EventObject &  Source)
overridevirtual
void comphelper::OPropertyChangeMultiplexer::lock ( )

incremental lock

Definition at line 78 of file propmultiplex.cxx.

References m_nLockCount.

sal_Int32 comphelper::OPropertyChangeMultiplexer::locked ( ) const
inline

get the lock count

Definition at line 103 of file propmultiplex.hxx.

Referenced by disposing(), and propertyChange().

void SAL_CALL comphelper::OPropertyChangeMultiplexer::propertyChange ( const css::beans::PropertyChangeEvent &  evt)
overridevirtual
void comphelper::OPropertyChangeMultiplexer::unlock ( )

incremental unlock

Definition at line 84 of file propmultiplex.cxx.

References m_nLockCount.

Friends And Related Function Documentation

friend class OPropertyChangeListener
friend

Definition at line 79 of file propmultiplex.hxx.

Member Data Documentation

std::vector< OUString > comphelper::OPropertyChangeMultiplexer::m_aProperties
private

Definition at line 80 of file propmultiplex.hxx.

Referenced by addProperty(), and dispose().

bool const comphelper::OPropertyChangeMultiplexer::m_bAutoSetRelease
private

Definition at line 85 of file propmultiplex.hxx.

Referenced by dispose(), and disposing().

bool comphelper::OPropertyChangeMultiplexer::m_bListening
private

Definition at line 84 of file propmultiplex.hxx.

Referenced by addProperty(), dispose(), and disposing().

sal_Int32 comphelper::OPropertyChangeMultiplexer::m_nLockCount
private

Definition at line 83 of file propmultiplex.hxx.

Referenced by lock(), and unlock().

OPropertyChangeListener* comphelper::OPropertyChangeMultiplexer::m_pListener
private

Definition at line 82 of file propmultiplex.hxx.

Referenced by dispose(), disposing(), OPropertyChangeMultiplexer(), and propertyChange().

css::uno::Reference< css::beans::XPropertySet> comphelper::OPropertyChangeMultiplexer::m_xSet
private

Definition at line 81 of file propmultiplex.hxx.

Referenced by addProperty(), dispose(), and disposing().


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