LibreOffice Module unoxml (master) 1
|
#include <eventdispatcher.hxx>
Public Member Functions | |
void | addListener (xmlNodePtr pNode, const OUString &aType, const css::uno::Reference< css::xml::dom::events::XEventListener > &aListener, bool bCapture) |
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 |
~CEventDispatcher () | |
Static Public Member Functions | |
static void | callListeners (TypeListenerMap const &rTMap, xmlNodePtr const pNode, const OUString &aType, const css::uno::Reference< css::xml::dom::events::XEvent > &xEvent) |
Private Attributes | |
TypeListenerMap | m_CaptureListeners |
TypeListenerMap | m_TargetListeners |
Definition at line 43 of file eventdispatcher.hxx.
DOM::events::CEventDispatcher::~CEventDispatcher | ( | ) |
Definition at line 81 of file eventdispatcher.cxx.
void DOM::events::CEventDispatcher::addListener | ( | xmlNodePtr | pNode, |
const OUString & | aType, | ||
const css::uno::Reference< css::xml::dom::events::XEventListener > & | aListener, | ||
bool | bCapture | ||
) |
Definition at line 37 of file eventdispatcher.cxx.
References m_CaptureListeners, and m_TargetListeners.
|
static |
Definition at line 85 of file eventdispatcher.cxx.
Referenced by dispatchEvent().
void DOM::events::CEventDispatcher::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 |
Definition at line 103 of file eventdispatcher.cxx.
References callListeners(), DOM::CDocument::GetCNode(), m_CaptureListeners, and m_TargetListeners.
void DOM::events::CEventDispatcher::removeListener | ( | xmlNodePtr | pNode, |
const OUString & | aType, | ||
const css::uno::Reference< css::xml::dom::events::XEventListener > & | aListener, | ||
bool | bCapture | ||
) |
Definition at line 56 of file eventdispatcher.cxx.
References m_CaptureListeners, and m_TargetListeners.
|
private |
Definition at line 46 of file eventdispatcher.hxx.
Referenced by addListener(), dispatchEvent(), and removeListener().
|
private |
Definition at line 47 of file eventdispatcher.hxx.
Referenced by addListener(), dispatchEvent(), and removeListener().