Update ooo320-m1
[ooovba.git] / unoxml / source / events / mouseevent.cxx
blob1110b22a1ecc3aba9e2f1b1482a76eed7192b78f
1 #include "mouseevent.hxx"
3 namespace DOM { namespace events
4 {
6 sal_Int32 SAL_CALL CMouseEvent::getScreenX() throw (RuntimeException)
8 return m_screenX;
10 sal_Int32 SAL_CALL CMouseEvent::getScreenY() throw (RuntimeException)
12 return m_screenY;
14 sal_Int32 SAL_CALL CMouseEvent::getClientX() throw (RuntimeException)
16 return m_clientX;
18 sal_Int32 SAL_CALL CMouseEvent::getClientY() throw (RuntimeException)
20 return m_clientY;
22 sal_Bool SAL_CALL CMouseEvent::getCtrlKey() throw (RuntimeException)
24 return m_ctrlKey;
26 sal_Bool SAL_CALL CMouseEvent::getShiftKey() throw (RuntimeException)
28 return m_shiftKey;
30 sal_Bool SAL_CALL CMouseEvent::getAltKey() throw (RuntimeException)
32 return m_altKey;
34 sal_Bool SAL_CALL CMouseEvent::getMetaKey() throw (RuntimeException)
36 return m_metaKey;
38 sal_Int16 SAL_CALL CMouseEvent::getButton() throw (RuntimeException)
40 return m_button;
42 Reference< XEventTarget > SAL_CALL CMouseEvent::getRelatedTarget() throw(RuntimeException)
44 return m_relatedTarget;
47 void SAL_CALL CMouseEvent::initMouseEvent(
48 const OUString& typeArg,
49 sal_Bool canBubbleArg,
50 sal_Bool cancelableArg,
51 const Reference< XAbstractView >& viewArg,
52 sal_Int32 detailArg,
53 sal_Int32 screenXArg,
54 sal_Int32 screenYArg,
55 sal_Int32 clientXArg,
56 sal_Int32 clientYArg,
57 sal_Bool ctrlKeyArg,
58 sal_Bool altKeyArg,
59 sal_Bool shiftKeyArg,
60 sal_Bool metaKeyArg,
61 sal_Int16 buttonArg,
62 const Reference< XEventTarget >& /*relatedTargetArg*/)
63 throw(RuntimeException)
65 CUIEvent::initUIEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg);
66 m_screenX = screenXArg;
67 m_screenY = screenYArg;
68 m_clientX = clientXArg;
69 m_clientY = clientYArg;
70 m_ctrlKey = ctrlKeyArg;
71 m_altKey = altKeyArg;
72 m_shiftKey = shiftKeyArg;
73 m_metaKey = metaKeyArg;
74 m_button = buttonArg;
77 // delegate to CUIEvent, since we are inheriting from CUIEvent and XUIEvent
78 Reference< XAbstractView > SAL_CALL CMouseEvent::getView() throw(RuntimeException)
80 return CUIEvent::getView();
83 sal_Int32 SAL_CALL CMouseEvent::getDetail() throw(RuntimeException)
85 return CUIEvent::getDetail();
88 void SAL_CALL CMouseEvent::initUIEvent(const OUString& typeArg,
89 sal_Bool canBubbleArg,
90 sal_Bool cancelableArg,
91 const Reference< XAbstractView >& viewArg,
92 sal_Int32 detailArg) throw(RuntimeException)
94 CUIEvent::initUIEvent(typeArg, canBubbleArg, cancelableArg, viewArg, detailArg);
97 OUString SAL_CALL CMouseEvent::getType() throw (RuntimeException)
99 return CUIEvent::getType();
102 Reference< XEventTarget > SAL_CALL CMouseEvent::getTarget() throw (RuntimeException)
104 return CUIEvent::getTarget();
107 Reference< XEventTarget > SAL_CALL CMouseEvent::getCurrentTarget() throw (RuntimeException)
109 return CUIEvent::getCurrentTarget();
112 PhaseType SAL_CALL CMouseEvent::getEventPhase() throw (RuntimeException)
114 return CUIEvent::getEventPhase();
117 sal_Bool SAL_CALL CMouseEvent::getBubbles() throw (RuntimeException)
119 return CEvent::getBubbles();
122 sal_Bool SAL_CALL CMouseEvent::getCancelable() throw (RuntimeException)
124 return CUIEvent::getCancelable();
127 com::sun::star::util::Time SAL_CALL CMouseEvent::getTimeStamp() throw (RuntimeException)
129 return CUIEvent::getTimeStamp();
132 void SAL_CALL CMouseEvent::stopPropagation() throw (RuntimeException)
134 CUIEvent::stopPropagation();
137 void SAL_CALL CMouseEvent::preventDefault() throw (RuntimeException)
139 CUIEvent::preventDefault();
142 void SAL_CALL CMouseEvent::initEvent(const OUString& eventTypeArg, sal_Bool canBubbleArg,
143 sal_Bool cancelableArg) throw (RuntimeException)
145 // base initializer
146 CUIEvent::initEvent(eventTypeArg, canBubbleArg, cancelableArg);