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>
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
;
27 Reference
< XAbstractView
> m_view
;
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
);