1 #include "mutationevent.hxx"
3 namespace DOM
{ namespace events
5 CMutationEvent::~CMutationEvent()
9 Reference
< XNode
> SAL_CALL
CMutationEvent::getRelatedNode() throw (RuntimeException
)
14 OUString SAL_CALL
CMutationEvent::getPrevValue() throw (RuntimeException
)
19 OUString SAL_CALL
CMutationEvent::getNewValue() throw (RuntimeException
)
24 OUString SAL_CALL
CMutationEvent::getAttrName() throw (RuntimeException
)
29 AttrChangeType SAL_CALL
CMutationEvent::getAttrChange() throw (RuntimeException
)
31 return m_attrChangeType
;
34 void SAL_CALL
CMutationEvent::initMutationEvent(const OUString
& typeArg
,
35 sal_Bool canBubbleArg
, sal_Bool cancelableArg
,
36 const Reference
< XNode
>& relatedNodeArg
, const OUString
& prevValueArg
,
37 const OUString
& newValueArg
, const OUString
& attrNameArg
,
38 AttrChangeType attrChangeArg
) throw (RuntimeException
)
40 initEvent(typeArg
, canBubbleArg
, cancelableArg
);
41 m_relatedNode
= relatedNodeArg
;
42 m_prevValue
= prevValueArg
;
43 m_newValue
= newValueArg
;
44 m_attrName
= attrNameArg
;
45 m_attrChangeType
= attrChangeArg
;
48 // delegate to CEvent, since we are inheriting from CEvent and XEvent
49 OUString SAL_CALL
CMutationEvent::getType() throw (RuntimeException
)
51 return CEvent::getType();
54 Reference
< XEventTarget
> SAL_CALL
CMutationEvent::getTarget() throw (RuntimeException
)
56 return CEvent::getTarget();
59 Reference
< XEventTarget
> SAL_CALL
CMutationEvent::getCurrentTarget() throw (RuntimeException
)
61 return CEvent::getCurrentTarget();
64 PhaseType SAL_CALL
CMutationEvent::getEventPhase() throw (RuntimeException
)
66 return CEvent::getEventPhase();
69 sal_Bool SAL_CALL
CMutationEvent::getBubbles() throw (RuntimeException
)
71 return CEvent::getBubbles();
74 sal_Bool SAL_CALL
CMutationEvent::getCancelable() throw (RuntimeException
)
76 return CEvent::getCancelable();
79 com::sun::star::util::Time SAL_CALL
CMutationEvent::getTimeStamp() throw (RuntimeException
)
81 return CEvent::getTimeStamp();
84 void SAL_CALL
CMutationEvent::stopPropagation() throw (RuntimeException
)
86 CEvent::stopPropagation();
88 void SAL_CALL
CMutationEvent::preventDefault() throw (RuntimeException
)
90 CEvent::preventDefault();
93 void SAL_CALL
CMutationEvent::initEvent(const OUString
& eventTypeArg
, sal_Bool canBubbleArg
,
94 sal_Bool cancelableArg
) throw (RuntimeException
)
97 CEvent::initEvent(eventTypeArg
, canBubbleArg
, cancelableArg
);