summaryrefslogtreecommitdiff
path: root/unotools/source/misc/eventlisteneradapter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unotools/source/misc/eventlisteneradapter.cxx')
-rw-r--r--unotools/source/misc/eventlisteneradapter.cxx15
1 files changed, 0 insertions, 15 deletions
diff --git a/unotools/source/misc/eventlisteneradapter.cxx b/unotools/source/misc/eventlisteneradapter.cxx
index 5b983e042bf0..f9be7465f3dc 100644
--- a/unotools/source/misc/eventlisteneradapter.cxx
+++ b/unotools/source/misc/eventlisteneradapter.cxx
@@ -25,15 +25,12 @@
#include <osl/diagnose.h>
#include <cppuhelper/implbase1.hxx>
-
namespace utl
{
-
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
-
//= OEventListenerImpl
class OEventListenerImpl : public ::cppu::WeakImplHelper1< XEventListener >
@@ -55,7 +52,6 @@ namespace utl
virtual void SAL_CALL disposing( const EventObject& _rSource ) throw (RuntimeException, std::exception) SAL_OVERRIDE;
};
-
OEventListenerImpl::OEventListenerImpl( OEventListenerAdapter* _pAdapter, const Reference< XComponent >& _rxComp )
:m_pAdapter(_pAdapter)
{
@@ -72,7 +68,6 @@ namespace utl
m_xKeepMeAlive = xMeMyselfAndI;
}
-
void OEventListenerImpl::dispose()
{
if (m_xComponent.is())
@@ -83,7 +78,6 @@ namespace utl
}
}
-
void SAL_CALL OEventListenerImpl::disposing( const EventObject& _rSource ) throw (RuntimeException, std::exception)
{
Reference< XEventListener > xDeleteUponLeaving = m_xKeepMeAlive;
@@ -93,7 +87,6 @@ namespace utl
m_pAdapter->_disposing(_rSource);
}
-
//= OEventListenerAdapterImpl
struct OEventListenerAdapterImpl
@@ -102,16 +95,13 @@ namespace utl
::std::vector< void* > aListeners;
};
-
//= OEventListenerAdapter
-
OEventListenerAdapter::OEventListenerAdapter()
:m_pImpl(new OEventListenerAdapterImpl)
{
}
-
OEventListenerAdapter::~OEventListenerAdapter()
{
stopAllComponentListening( );
@@ -119,7 +109,6 @@ namespace utl
m_pImpl = NULL;
}
-
void OEventListenerAdapter::stopComponentListening( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent >& _rxComp )
{
if ( m_pImpl->aListeners.empty() )
@@ -141,7 +130,6 @@ namespace utl
while ( dispose != m_pImpl->aListeners.end() );
}
-
void OEventListenerAdapter::stopAllComponentListening( )
{
for ( ::std::vector< void* >::const_iterator aDisposeLoop = m_pImpl->aListeners.begin();
@@ -156,7 +144,6 @@ namespace utl
m_pImpl->aListeners.clear();
}
-
void OEventListenerAdapter::startComponentListening( const Reference< XComponent >& _rxComp )
{
if (!_rxComp.is())
@@ -170,8 +157,6 @@ namespace utl
m_pImpl->aListeners.push_back(pListenerImpl);
}
-
} // namespace utl
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */