summaryrefslogtreecommitdiffstats
path: root/include/comphelper/weakeventlistener.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/comphelper/weakeventlistener.hxx')
-rw-r--r--include/comphelper/weakeventlistener.hxx28
1 files changed, 14 insertions, 14 deletions
diff --git a/include/comphelper/weakeventlistener.hxx b/include/comphelper/weakeventlistener.hxx
index 734f91511d53..7ed2bb86eec1 100644
--- a/include/comphelper/weakeventlistener.hxx
+++ b/include/comphelper/weakeventlistener.hxx
@@ -27,14 +27,14 @@
#include <comphelper/broadcasthelper.hxx>
#include <comphelper/comphelperdllapi.h>
-//.........................................................................
+
namespace comphelper
{
-//.........................................................................
- //=====================================================================
+
+
//= OWeakListenerAdapterBase
- //=====================================================================
+
/** (the base for) an adapter which allows to add as listener to a foreign component, without
being held hard.
@@ -84,9 +84,9 @@ namespace comphelper
};
- //=====================================================================
+
//= OWeakListenerAdapter
- //=====================================================================
+
template< class BROADCASTER, class LISTENER >
/** yet another base for weak listener adapters, this time with some type safety
@@ -125,9 +125,9 @@ namespace comphelper
virtual void SAL_CALL disposing( ) = 0;
};
- //=====================================================================
+
//= OWeakEventListenerAdapter
- //=====================================================================
+
typedef OWeakListenerAdapter < ::com::sun::star::lang::XComponent
, ::com::sun::star::lang::XEventListener
> OWeakEventListenerAdapter_Base;
@@ -149,10 +149,10 @@ namespace comphelper
virtual void SAL_CALL disposing( );
};
- //=====================================================================
+
//= OWeakListenerAdapter
- //=====================================================================
- //---------------------------------------------------------------------
+
+
template< class BROADCASTER, class LISTENER >
OWeakListenerAdapter< BROADCASTER, LISTENER >::OWeakListenerAdapter(
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XWeak >& _rxListener,
@@ -163,7 +163,7 @@ namespace comphelper
{
}
- //---------------------------------------------------------------------
+
template< class BROADCASTER, class LISTENER >
void SAL_CALL OWeakListenerAdapter< BROADCASTER, LISTENER >::disposing( const ::com::sun::star::lang::EventObject& _rSource ) throw (::com::sun::star::uno::RuntimeException)
{
@@ -172,9 +172,9 @@ namespace comphelper
xListener->disposing( _rSource );
}
-//.........................................................................
+
} // namespace comphelper
-//.........................................................................
+
#endif // INCLUDED_COMPHELPER_WEAKEVENTLISTENER_HXX