Update ooo320-m1
[ooovba.git] / unoxml / source / events / event.cxx
blob8895e0153110fd14e6b2ff754526c29ea96eaa86
1 #include "event.hxx"
3 namespace DOM { namespace events
6 CEvent::~CEvent()
10 OUString SAL_CALL CEvent::getType() throw (RuntimeException)
12 return m_eventType;
15 Reference< XEventTarget > SAL_CALL CEvent::getTarget() throw (RuntimeException)
17 return m_target;
20 Reference< XEventTarget > SAL_CALL CEvent::getCurrentTarget() throw (RuntimeException)
22 return m_currentTarget;
25 PhaseType SAL_CALL CEvent::getEventPhase() throw (RuntimeException)
27 return m_phase;
30 sal_Bool SAL_CALL CEvent::getBubbles() throw (RuntimeException)
32 return m_bubbles;
35 sal_Bool SAL_CALL CEvent::getCancelable() throw (RuntimeException)
37 return m_cancelable;
40 com::sun::star::util::Time SAL_CALL CEvent::getTimeStamp() throw (RuntimeException)
42 return m_time;
45 void SAL_CALL CEvent::stopPropagation() throw (RuntimeException)
47 if (m_cancelable) m_canceled = sal_True;
50 void SAL_CALL CEvent::preventDefault() throw (RuntimeException)
54 void SAL_CALL CEvent::initEvent(const OUString& eventTypeArg, sal_Bool canBubbleArg,
55 sal_Bool cancelableArg) throw (RuntimeException)
57 m_eventType = eventTypeArg;
58 m_bubbles = canBubbleArg;
59 m_cancelable = cancelableArg;