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