merge the formfield patch from ooo-build
[ooovba.git] / unoxml / source / events / uievent.hxx
blobd9cd5cc01363f08406b55802c89cf47d820836d7
1 #ifndef __UIEVENT_HXX
2 #define __UIEVENT_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/views/XAbstractView.hpp>
15 #include "event.hxx"
17 using ::rtl::OUString;
18 using namespace com::sun::star::xml::dom::views;
20 namespace DOM { namespace events {
22 class CUIEvent : public cppu::ImplInheritanceHelper1< CEvent, XUIEvent >
24 friend class CEventDispatcher;
25 protected:
26 sal_Int32 m_detail;
27 Reference< XAbstractView > m_view;
29 public:
30 virtual Reference< XAbstractView > SAL_CALL getView() throw(RuntimeException);
31 virtual sal_Int32 SAL_CALL getDetail() throw(RuntimeException);
32 virtual void SAL_CALL initUIEvent(const OUString& typeArg,
33 sal_Bool canBubbleArg,
34 sal_Bool cancelableArg,
35 const Reference< XAbstractView >& viewArg,
36 sal_Int32 detailArg) throw(RuntimeException);
38 // delegate to CEvent, since we are inheriting from CEvent and XEvent
39 virtual OUString SAL_CALL getType() throw (RuntimeException);
40 virtual Reference< XEventTarget > SAL_CALL getTarget() throw (RuntimeException);
41 virtual Reference< XEventTarget > SAL_CALL getCurrentTarget() throw (RuntimeException);
42 virtual PhaseType SAL_CALL getEventPhase() throw (RuntimeException);
43 virtual sal_Bool SAL_CALL getBubbles() throw (RuntimeException);
44 virtual sal_Bool SAL_CALL getCancelable() throw (RuntimeException);
45 virtual com::sun::star::util::Time SAL_CALL getTimeStamp() throw (RuntimeException);
46 virtual void SAL_CALL stopPropagation() throw (RuntimeException);
47 virtual void SAL_CALL preventDefault() throw (RuntimeException);
48 virtual void SAL_CALL initEvent(
49 const OUString& eventTypeArg,
50 sal_Bool canBubbleArg,
51 sal_Bool cancelableArg)
52 throw (RuntimeException);
55 #endif