1 #ifndef __MOUSEEVENT_HXX
2 #define __MOUSEEVENT_HXX
5 #include <cppuhelper/implbase1.hxx>
6 #include <cppuhelper/implbase2.hxx>
7 #include <cppuhelper/implbase3.hxx>
8 #include <com/sun/star/uno/Reference.h>
9 #include <com/sun/star/xml/dom/events/EventType.hpp>
10 #include <com/sun/star/xml/dom/events/PhaseType.hpp>
11 #include <com/sun/star/xml/dom/events/AttrChangeType.hpp>
12 #include <com/sun/star/xml/dom/events/XEvent.hpp>
13 #include <com/sun/star/xml/dom/events/XUIEvent.hpp>
14 #include <com/sun/star/xml/dom/events/XMouseEvent.hpp>
16 #include "uievent.hxx"
18 using ::rtl::OUString
;
20 namespace DOM
{ namespace events
{
22 class CMouseEvent
: public cppu::ImplInheritanceHelper1
< CUIEvent
, XMouseEvent
>
24 friend class CEventDispatcher
;
35 Reference
< XEventTarget
> m_relatedTarget
;
39 virtual sal_Int32 SAL_CALL
getScreenX() throw (RuntimeException
);
40 virtual sal_Int32 SAL_CALL
getScreenY() throw (RuntimeException
);
41 virtual sal_Int32 SAL_CALL
getClientX() throw (RuntimeException
);
42 virtual sal_Int32 SAL_CALL
getClientY() throw (RuntimeException
);
43 virtual sal_Bool SAL_CALL
getCtrlKey() throw (RuntimeException
);
44 virtual sal_Bool SAL_CALL
getShiftKey() throw (RuntimeException
);
45 virtual sal_Bool SAL_CALL
getAltKey() throw (RuntimeException
);
46 virtual sal_Bool SAL_CALL
getMetaKey() throw (RuntimeException
);
47 virtual sal_Int16 SAL_CALL
getButton() throw (RuntimeException
);
48 virtual Reference
< XEventTarget
> SAL_CALL
getRelatedTarget() throw(RuntimeException
);
50 virtual void SAL_CALL
initMouseEvent(
51 const OUString
& typeArg
,
52 sal_Bool canBubbleArg
,
53 sal_Bool cancelableArg
,
54 const Reference
< XAbstractView
>& viewArg
,
65 const Reference
< XEventTarget
>& relatedTargetArg
)
66 throw(RuntimeException
);
68 // delegate to CUIevent
69 virtual Reference
< XAbstractView
> SAL_CALL
getView() throw (RuntimeException
);
70 virtual sal_Int32 SAL_CALL
getDetail() throw (RuntimeException
);
71 virtual void SAL_CALL
initUIEvent(const OUString
& typeArg
,
72 sal_Bool canBubbleArg
,
73 sal_Bool cancelableArg
,
74 const Reference
< XAbstractView
>& viewArg
,
75 sal_Int32 detailArg
) throw (RuntimeException
);
76 virtual OUString SAL_CALL
getType() throw (RuntimeException
);
77 virtual Reference
< XEventTarget
> SAL_CALL
getTarget() throw (RuntimeException
);
78 virtual Reference
< XEventTarget
> SAL_CALL
getCurrentTarget() throw (RuntimeException
);
79 virtual PhaseType SAL_CALL
getEventPhase() throw (RuntimeException
);
80 virtual sal_Bool SAL_CALL
getBubbles() throw (RuntimeException
);
81 virtual sal_Bool SAL_CALL
getCancelable() throw (RuntimeException
);
82 virtual com::sun::star::util::Time SAL_CALL
getTimeStamp() throw (RuntimeException
);
83 virtual void SAL_CALL
stopPropagation() throw (RuntimeException
);
84 virtual void SAL_CALL
preventDefault() throw (RuntimeException
);
85 virtual void SAL_CALL
initEvent(
86 const OUString
& eventTypeArg
,
87 sal_Bool canBubbleArg
,
88 sal_Bool cancelableArg
)
89 throw (RuntimeException
);