20#include <com/sun/star/beans/XPropertySet.hpp>
22#include <osl/diagnose.h>
52 OSL_ENSURE( !
m_xAdapter.is(),
"OPropertyChangeListener::disposeAdapter: what did dispose do?" );
64 ,m_pListener(_pListener)
67 ,m_bAutoSetRelease(_bAutoReleaseSet)
95 Reference< XPropertyChangeListener> xPreventDelete(
this);
98 m_xSet->removePropertyChangeListener(rProp,
static_cast< XPropertyChangeListener*
>(
this));
143 m_xSet->addPropertyChangeListener(_sPropertyName,
static_cast< XPropertyChangeListener*
>(
this));
simple listener adapter for property sets
virtual ~OPropertyChangeListener()
rtl::Reference< OPropertyChangeMultiplexer > m_xAdapter
void setAdapter(OPropertyChangeMultiplexer *_pAdapter)
virtual void _propertyChanged(const css::beans::PropertyChangeEvent &_rEvent)=0
void disposeAdapter()
If the derivee also owns the mutex which we know as reference, then call this within your derivee's d...
virtual void _disposing(const css::lang::EventObject &_rSource)
void unlock()
incremental unlock
virtual ~OPropertyChangeMultiplexer() override
bool const m_bAutoSetRelease
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
sal_Int32 locked() const
get the lock count
std::vector< OUString > m_aProperties
OPropertyChangeListener * m_pListener
void lock()
incremental lock
void addProperty(const OUString &aPropertyName)
css::uno::Reference< css::beans::XPropertySet > m_xSet