summaryrefslogtreecommitdiff
path: root/comphelper/source/misc/accessibleeventnotifier.cxx
diff options
context:
space:
mode:
authorMarco Cecchetti <marco.cecchetti@collabora.com>2019-04-29 13:59:49 +0200
committerMarco Cecchetti <marco.cecchetti@collabora.com>2019-04-29 14:04:22 +0200
commitf1bb63dc9688d82aa6b32f694d77760fc2a8f597 (patch)
treee55b62e12f3df509506d3de3a480c762ff2d4058 /comphelper/source/misc/accessibleeventnotifier.cxx
parent0a9faf8014747c5b1bc5f2ff0c5b1c254b600ed6 (diff)
[DRAFT] - lok: AT - get current paragraph with formatting - 2private/mcecchetti/accessibility/paragraph
Diffstat (limited to 'comphelper/source/misc/accessibleeventnotifier.cxx')
-rw-r--r--comphelper/source/misc/accessibleeventnotifier.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/comphelper/source/misc/accessibleeventnotifier.cxx b/comphelper/source/misc/accessibleeventnotifier.cxx
index f14176a03528..704039ba12d4 100644
--- a/comphelper/source/misc/accessibleeventnotifier.cxx
+++ b/comphelper/source/misc/accessibleeventnotifier.cxx
@@ -22,6 +22,8 @@
#include <rtl/instance.hxx>
#include <comphelper/interfacecontainer2.hxx>
+#include <sal/log.hxx>
+
#include <map>
#include <memory>
#include <limits>
@@ -149,6 +151,9 @@ AccessibleEventNotifier::TClientId AccessibleEventNotifier::registerClient()
// generate a new client id
TClientId nNewClientId = generateId( );
+// if (nNewClientId < 40)
+// SAL_DEBUG("AccessibleEventNotifier::registerClient: nNewClientId: " << nNewClientId);
+
// the event listeners for the new client
::comphelper::OInterfaceContainerHelper2 *const pNewListeners =
new ::comphelper::OInterfaceContainerHelper2( lclMutex::get() );
@@ -225,6 +230,9 @@ sal_Int32 AccessibleEventNotifier::addEventListener(
if ( _rxListener.is() )
aClientPos->second->addInterface( _rxListener );
+// if (_nClient < 40)
+// SAL_DEBUG("AccessibleEventNotifier::addEventListener: _nClient: " << _nClient << ", _rxListener: " << _rxListener.get());
+
return aClientPos->second->getLength();
}
@@ -260,6 +268,7 @@ void AccessibleEventNotifier::addEvent( const TClientId _nClient, const Accessib
aListeners = aClientPos->second->getElements();
}
+ //SAL_DEBUG("AccessibleEventNotifier::addEvent: client id: " << _nClient << ", event id: " << _rEvent.EventId);
// default handling: loop through all listeners, and notify them
for ( const auto& rListener : aListeners )
{