merge the formfield patch from ooo-build
[ooovba.git] / unoxml / source / events / mouseevent.hxx
blobb4a9adeaeecf4a3374535d56d1fddde428b7b3c9
1 #ifndef __MOUSEEVENT_HXX
2 #define __MOUSEEVENT_HXX
4 #include <sal/types.h>
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>
15 #include "event.hxx"
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;
25 protected:
26 sal_Int32 m_screenX;
27 sal_Int32 m_screenY;
28 sal_Int32 m_clientX;
29 sal_Int32 m_clientY;
30 sal_Bool m_ctrlKey;
31 sal_Bool m_shiftKey;
32 sal_Bool m_altKey;
33 sal_Bool m_metaKey;
34 sal_Int16 m_button;
35 Reference< XEventTarget > m_relatedTarget;
37 public:
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,
55 sal_Int32 detailArg,
56 sal_Int32 screenXArg,
57 sal_Int32 screenYArg,
58 sal_Int32 clientXArg,
59 sal_Int32 clientYArg,
60 sal_Bool ctrlKeyArg,
61 sal_Bool altKeyArg,
62 sal_Bool shiftKeyArg,
63 sal_Bool metaKeyArg,
64 sal_Int16 buttonArg,
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);
92 #endif