24#include <libxml/tree.h>
26#include <rtl/ustring.hxx>
28#include <com/sun/star/uno/Reference.h>
29#include <com/sun/star/xml/dom/XNode.hpp>
30#include <com/sun/star/xml/dom/events/XEvent.hpp>
32namespace osl {
class Mutex; }
40typedef std::multimap< xmlNodePtr, css::uno::Reference< css::xml::dom::events::XEventListener> >
ListenerMap;
52 const OUString& aType,
53 const css::uno::Reference<css::xml::dom::events::XEventListener>& aListener,
58 const OUString& aType,
59 const css::uno::Reference<css::xml::dom::events::XEventListener>& aListener,
64 xmlNodePtr
const pNode,
65 const OUString& aType,
66 const css::uno::Reference< css::xml::dom::events::XEvent >& xEvent);
70 ::osl::Mutex & rMutex,
71 xmlNodePtr
const pNode,
72 css::uno::Reference<css::xml::dom::XNode>
const& xNode,
73 css::uno::Reference< css::xml::dom::events::XEvent >
const& xEvent)
const;
TypeListenerMap m_CaptureListeners
void removeListener(xmlNodePtr pNode, const OUString &aType, const css::uno::Reference< css::xml::dom::events::XEventListener > &aListener, bool bCapture)
void dispatchEvent(DOM::CDocument &rDocument, ::osl::Mutex &rMutex, xmlNodePtr const pNode, css::uno::Reference< css::xml::dom::XNode > const &xNode, css::uno::Reference< css::xml::dom::events::XEvent > const &xEvent) const
void addListener(xmlNodePtr pNode, const OUString &aType, const css::uno::Reference< css::xml::dom::events::XEventListener > &aListener, bool bCapture)
static void callListeners(TypeListenerMap const &rTMap, xmlNodePtr const pNode, const OUString &aType, const css::uno::Reference< css::xml::dom::events::XEvent > &xEvent)
TypeListenerMap m_TargetListeners
std::multimap< xmlNodePtr, css::uno::Reference< css::xml::dom::events::XEventListener > > ListenerMap
std::map< OUString, ListenerMap > TypeListenerMap