Update ooo320-m1
[ooovba.git] / unoxml / source / events / uievent.cxx
blobfd4563532ca913816da54382002b30a75d5be0a8
1 #include "event.hxx"
2 #include "uievent.hxx"
4 namespace DOM { namespace events
5 {
7 Reference< XAbstractView > SAL_CALL CUIEvent::getView() throw(RuntimeException)
9 return m_view;
12 sal_Int32 SAL_CALL CUIEvent::getDetail() throw(RuntimeException)
14 return m_detail;
17 void SAL_CALL CUIEvent::initUIEvent(const OUString& typeArg,
18 sal_Bool canBubbleArg,
19 sal_Bool cancelableArg,
20 const Reference< XAbstractView >& viewArg,
21 sal_Int32 detailArg) throw(RuntimeException)
23 initEvent(typeArg, canBubbleArg, cancelableArg);
24 m_view = viewArg;
25 m_detail = detailArg;
29 // delegate to CEvent, since we are inheriting from CEvent and XEvent
30 OUString SAL_CALL CUIEvent::getType() throw (RuntimeException)
32 return CEvent::getType();
35 Reference< XEventTarget > SAL_CALL CUIEvent::getTarget() throw (RuntimeException)
37 return CEvent::getTarget();
40 Reference< XEventTarget > SAL_CALL CUIEvent::getCurrentTarget() throw (RuntimeException)
42 return CEvent::getCurrentTarget();
45 PhaseType SAL_CALL CUIEvent::getEventPhase() throw (RuntimeException)
47 return CEvent::getEventPhase();
50 sal_Bool SAL_CALL CUIEvent::getBubbles() throw (RuntimeException)
52 return CEvent::getBubbles();
55 sal_Bool SAL_CALL CUIEvent::getCancelable() throw (RuntimeException)
57 // mutation events cannot be canceled
58 return sal_False;
61 com::sun::star::util::Time SAL_CALL CUIEvent::getTimeStamp() throw (RuntimeException)
63 return CEvent::getTimeStamp();
66 void SAL_CALL CUIEvent::stopPropagation() throw (RuntimeException)
68 CEvent::stopPropagation();
70 void SAL_CALL CUIEvent::preventDefault() throw (RuntimeException)
72 CEvent::preventDefault();
75 void SAL_CALL CUIEvent::initEvent(const OUString& eventTypeArg, sal_Bool canBubbleArg,
76 sal_Bool cancelableArg) throw (RuntimeException)
78 // base initializer
79 CEvent::initEvent(eventTypeArg, canBubbleArg, cancelableArg);