22#include <com/sun/star/view/XSelectionSupplier.hpp>
45 ,m_pListener(_pListener)
48 osl_atomic_increment(&m_refCount);
50 Reference< XSelectionChangeListener> xPreventDelete(
this);
51 m_xSet->addSelectionChangeListener(xPreventDelete);
53 osl_atomic_decrement(&m_refCount);
102 Reference< XSelectionChangeListener> xPreventDelete(
this);
104 m_xSet->removeSelectionChangeListener(xPreventDelete);
simple listener adapter for selections
virtual void _disposing(const css::lang::EventObject &_rSource)
virtual ~OSelectionChangeListener()
virtual void _selectionChanged(const css::lang::EventObject &aEvent)=0
sal_Int32 locked() const
get the lock count
virtual ~OSelectionChangeMultiplexer() override
OSelectionChangeListener * m_pListener
virtual void SAL_CALL selectionChanged(const css::lang::EventObject &aEvent) override
css::uno::Reference< css::view::XSelectionSupplier > m_xSet
OSelectionChangeMultiplexer(const OSelectionChangeMultiplexer &)=delete
void unlock()
incremental unlock
void lock()
incremental lock
virtual void SAL_CALL disposing(const css::lang::EventObject &Source) override