1 #include "mouseevent.hxx"
3 namespace DOM
{ namespace events
6 sal_Int32 SAL_CALL
CMouseEvent::getScreenX() throw (RuntimeException
)
10 sal_Int32 SAL_CALL
CMouseEvent::getScreenY() throw (RuntimeException
)
14 sal_Int32 SAL_CALL
CMouseEvent::getClientX() throw (RuntimeException
)
18 sal_Int32 SAL_CALL
CMouseEvent::getClientY() throw (RuntimeException
)
22 sal_Bool SAL_CALL
CMouseEvent::getCtrlKey() throw (RuntimeException
)
26 sal_Bool SAL_CALL
CMouseEvent::getShiftKey() throw (RuntimeException
)
30 sal_Bool SAL_CALL
CMouseEvent::getAltKey() throw (RuntimeException
)
34 sal_Bool SAL_CALL
CMouseEvent::getMetaKey() throw (RuntimeException
)
38 sal_Int16 SAL_CALL
CMouseEvent::getButton() throw (RuntimeException
)
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
,
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
;
72 m_shiftKey
= shiftKeyArg
;
73 m_metaKey
= metaKeyArg
;
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
)
146 CUIEvent::initEvent(eventTypeArg
, canBubbleArg
, cancelableArg
);