Update ooo320-m1
[ooovba.git] / unoxml / source / events / mutationevent.hxx
blob5ff545f1cbce59e4a11fa4ed3dc04769c447f55b
1 #ifndef __MUTATIONEVENT_HXX
2 #define __MUTATIONEVENT_HXX
4 #include <sal/types.h>
5 #include <cppuhelper/implbase1.hxx>
6 #include <cppuhelper/implbase2.hxx>
7 #include <cppuhelper/implbase3.hxx>
8 #include <com/sun/star/uno/Reference.h>
9 #include <com/sun/star/xml/dom/events/EventType.hpp>
10 #include <com/sun/star/xml/dom/events/PhaseType.hpp>
11 #include <com/sun/star/xml/dom/events/AttrChangeType.hpp>
12 #include <com/sun/star/xml/dom/events/XEvent.hpp>
13 #include <com/sun/star/xml/dom/events/XMutationEvent.hpp>
14 #include "event.hxx"
16 using ::rtl::OUString;
18 namespace DOM { namespace events {
20 class CMutationEvent : public cppu::ImplInheritanceHelper1< CEvent, XMutationEvent >
22 friend class CEventDispatcher;
23 protected:
24 Reference< XNode > m_relatedNode;
25 OUString m_prevValue;
26 OUString m_newValue;
27 OUString m_attrName;
28 AttrChangeType m_attrChangeType;
30 public:
32 virtual ~CMutationEvent();
34 virtual Reference< XNode > SAL_CALL getRelatedNode() throw (RuntimeException);
35 virtual OUString SAL_CALL getPrevValue() throw (RuntimeException);
36 virtual OUString SAL_CALL getNewValue() throw (RuntimeException);
37 virtual OUString SAL_CALL getAttrName() throw (RuntimeException);
38 virtual AttrChangeType SAL_CALL getAttrChange() throw (RuntimeException);
39 virtual void SAL_CALL initMutationEvent(
40 const OUString& typeArg,
41 sal_Bool canBubbleArg,
42 sal_Bool cancelableArg,
43 const Reference< XNode >& relatedNodeArg,
44 const OUString& prevValueArg,
45 const OUString& newValueArg,
46 const OUString& attrNameArg,
47 AttrChangeType attrChangeArg) throw (RuntimeException);
49 // delegate to CEvent, since we are inheriting from CEvent and XEvent
50 virtual OUString SAL_CALL getType() throw (RuntimeException);
51 virtual Reference< XEventTarget > SAL_CALL getTarget() throw (RuntimeException);
52 virtual Reference< XEventTarget > SAL_CALL getCurrentTarget() throw (RuntimeException);
53 virtual PhaseType SAL_CALL getEventPhase() throw (RuntimeException);
54 virtual sal_Bool SAL_CALL getBubbles() throw (RuntimeException);
55 virtual sal_Bool SAL_CALL getCancelable() throw (RuntimeException);
56 virtual com::sun::star::util::Time SAL_CALL getTimeStamp() throw (RuntimeException);
57 virtual void SAL_CALL stopPropagation() throw (RuntimeException);
58 virtual void SAL_CALL preventDefault() throw (RuntimeException);
59 virtual void SAL_CALL initEvent(
60 const OUString& eventTypeArg,
61 sal_Bool canBubbleArg,
62 sal_Bool cancelableArg)
63 throw (RuntimeException);
66 #endif