diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-03-12 10:49:43 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-03-12 10:49:43 +0000 |
commit | d9e45db2ff4bf8ccd357b7d6cbb755f1fe2d9ead (patch) | |
tree | eb75266d71c89b59144c0fd6849f4c68f775abcd /unoxml/source/events/eventdispatcher.hxx | |
parent | 6a60077cb7813b0210d4e27c9dfacf13b1692d10 (diff) |
#i10000# (lo) fix solaris build problems
Diffstat (limited to 'unoxml/source/events/eventdispatcher.hxx')
-rw-r--r-- | unoxml/source/events/eventdispatcher.hxx | 101 |
1 files changed, 51 insertions, 50 deletions
diff --git a/unoxml/source/events/eventdispatcher.hxx b/unoxml/source/events/eventdispatcher.hxx index fd34305fc189..c17552b09602 100644 --- a/unoxml/source/events/eventdispatcher.hxx +++ b/unoxml/source/events/eventdispatcher.hxx @@ -1,50 +1,51 @@ -
-//#include <multimap>
-#include <map>
-#include <vector>
-
-#include <com/sun/star/uno/Reference.h>
-#include <com/sun/star/xml/dom/events/EventType.hpp>
-#include <com/sun/star/xml/dom/events/PhaseType.hpp>
-#include <com/sun/star/xml/dom/events/XEvent.hpp>
-#include "event.hxx"
-
-using namespace com::sun::star::uno;
-using namespace com::sun::star::xml::dom;
-using namespace com::sun::star::xml::dom::events;
-
-namespace DOM { namespace events
-{
-
-typedef std::vector< xmlNodePtr > NodeVector;
-typedef std::multimap< xmlNodePtr, Reference< XEventListener> > ListenerMap;
-typedef std::map<OUString, ListenerMap*> TypeListenerMap;
typedef std::vector<ListenerMap::value_type> ListenerPairVector; -
-class CEventDispatcher
-{
-private:
- static TypeListenerMap captureListeners;
- static TypeListenerMap targetListeners;
-
-public:
- static sal_Bool dispatchEvent(xmlNodePtr aNode, const Reference< XEvent >& aEvent);
-
- static void addListener(
- xmlNodePtr pNode,
- OUString aType,
- const Reference<XEventListener>& aListener,
- sal_Bool bCapture);
-
- static void removeListener(
- xmlNodePtr pNode,
- OUString aType,
- const Reference<XEventListener>& aListener,
- sal_Bool bCapture);
-
- static void callListeners(
- xmlNodePtr pNode,
- OUString aType,
- const Reference< XEvent >& xEvent,
- sal_Bool bCapture);
-};
-}}
\ No newline at end of file + +//#include <multimap> +#include <map> +#include <vector> + +#include <com/sun/star/uno/Reference.h> +#include <com/sun/star/xml/dom/events/EventType.hpp> +#include <com/sun/star/xml/dom/events/PhaseType.hpp> +#include <com/sun/star/xml/dom/events/XEvent.hpp> +#include "event.hxx" + +using namespace com::sun::star::uno; +using namespace com::sun::star::xml::dom; +using namespace com::sun::star::xml::dom::events; + +namespace DOM { namespace events +{ + +typedef std::vector< xmlNodePtr > NodeVector; +typedef std::multimap< xmlNodePtr, Reference< XEventListener> > ListenerMap; +typedef std::map<OUString, ListenerMap*> TypeListenerMap; +typedef std::vector<ListenerMap::value_type> ListenerPairVector; + +class CEventDispatcher +{ +private: + static TypeListenerMap captureListeners; + static TypeListenerMap targetListeners; + +public: + static sal_Bool dispatchEvent(xmlNodePtr aNode, const Reference< XEvent >& aEvent); + + static void addListener( + xmlNodePtr pNode, + OUString aType, + const Reference<XEventListener>& aListener, + sal_Bool bCapture); + + static void removeListener( + xmlNodePtr pNode, + OUString aType, + const Reference<XEventListener>& aListener, + sal_Bool bCapture); + + static void callListeners( + xmlNodePtr pNode, + OUString aType, + const Reference< XEvent >& xEvent, + sal_Bool bCapture); +}; +}} |