diff options
Diffstat (limited to 'comphelper/source/misc/SelectionMultiplex.cxx')
-rw-r--r-- | comphelper/source/misc/SelectionMultiplex.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/comphelper/source/misc/SelectionMultiplex.cxx b/comphelper/source/misc/SelectionMultiplex.cxx index e5daf792d2b7..de24434b0a47 100644 --- a/comphelper/source/misc/SelectionMultiplex.cxx +++ b/comphelper/source/misc/SelectionMultiplex.cxx @@ -33,20 +33,20 @@ using namespace ::com::sun::star::view; //======================================================================== //= OSelectionChangeListener //======================================================================== -//------------------------------------------------------------------------ + OSelectionChangeListener::~OSelectionChangeListener() { if (m_pAdapter) m_pAdapter->dispose(); } -//------------------------------------------------------------------ + void OSelectionChangeListener::_disposing(const EventObject&) throw( RuntimeException) { // nothing to do here } -//------------------------------------------------------------------ + void OSelectionChangeListener::setAdapter(OSelectionChangeMultiplexer* pAdapter) { if (m_pAdapter) @@ -67,7 +67,7 @@ void OSelectionChangeListener::setAdapter(OSelectionChangeMultiplexer* pAdapter) //======================================================================== //= OSelectionChangeMultiplexer //======================================================================== -//------------------------------------------------------------------ + OSelectionChangeMultiplexer::OSelectionChangeMultiplexer(OSelectionChangeListener* _pListener, const Reference< XSelectionSupplier>& _rxSet, bool _bAutoReleaseSet) :m_xSet(_rxSet) ,m_pListener(_pListener) @@ -84,24 +84,24 @@ OSelectionChangeMultiplexer::OSelectionChangeMultiplexer(OSelectionChangeListene osl_atomic_decrement(&m_refCount); } -//------------------------------------------------------------------ + OSelectionChangeMultiplexer::~OSelectionChangeMultiplexer() { } -//------------------------------------------------------------------ + void OSelectionChangeMultiplexer::lock() { ++m_nLockCount; } -//------------------------------------------------------------------ + void OSelectionChangeMultiplexer::unlock() { --m_nLockCount; } -//------------------------------------------------------------------ + void OSelectionChangeMultiplexer::dispose() { if (m_bListening) @@ -121,7 +121,7 @@ void OSelectionChangeMultiplexer::dispose() } // XEventListener -//------------------------------------------------------------------ + void SAL_CALL OSelectionChangeMultiplexer::disposing( const EventObject& _rSource) throw( RuntimeException) { if (m_pListener) @@ -142,7 +142,7 @@ void SAL_CALL OSelectionChangeMultiplexer::disposing( const EventObject& _rSour } // XSelectionChangeListener -//------------------------------------------------------------------ + void SAL_CALL OSelectionChangeMultiplexer::selectionChanged( const EventObject& _rEvent ) throw( RuntimeException) { if (m_pListener && !locked()) |