1 #ifndef __XFORMSEVENT_HXX
2 #define __XFORMSEVENT_HXX
5 #include <cppuhelper/implbase1.hxx>
6 #include <com/sun/star/uno/Reference.h>
7 #include <com/sun/star/xforms/XFormsEvent.hpp>
8 #include <com/sun/star/xml/dom/events/XEventTarget.hpp>
15 class XFormsEventConcrete
: public cppu::WeakImplHelper1
< XFormsEvent
> {
19 typedef com::sun::star::uno::RuntimeException RuntimeException_t
;
20 typedef com::sun::star::uno::Reference
< com::sun::star::xml::dom::events::XEventTarget
> XEventTarget_t
;
21 typedef com::sun::star::xml::dom::events::PhaseType PhaseType_t
;
22 typedef com::sun::star::util::Time Time_t
;
24 inline XFormsEventConcrete( void ) : m_canceled(sal_False
) {}
25 virtual ~XFormsEventConcrete( void ) {}
27 virtual rtl::OUString SAL_CALL
getType() throw (RuntimeException_t
);
28 virtual XEventTarget_t SAL_CALL
getTarget() throw (RuntimeException_t
);
29 virtual XEventTarget_t SAL_CALL
getCurrentTarget() throw (RuntimeException_t
);
30 virtual PhaseType_t SAL_CALL
getEventPhase() throw (RuntimeException_t
);
31 virtual sal_Bool SAL_CALL
getBubbles() throw (RuntimeException_t
);
32 virtual sal_Bool SAL_CALL
getCancelable() throw (RuntimeException_t
);
33 virtual Time_t SAL_CALL
getTimeStamp() throw (RuntimeException_t
);
34 virtual void SAL_CALL
stopPropagation() throw (RuntimeException_t
);
35 virtual void SAL_CALL
preventDefault() throw (RuntimeException_t
);
37 virtual void SAL_CALL
initXFormsEvent(
38 const rtl::OUString
& typeArg
,
39 sal_Bool canBubbleArg
,
40 sal_Bool cancelableArg
)
41 throw (RuntimeException_t
);
43 virtual void SAL_CALL
initEvent(
44 const rtl::OUString
& eventTypeArg
,
45 sal_Bool canBubbleArg
,
46 sal_Bool cancelableArg
)
47 throw (RuntimeException_t
);
55 rtl::OUString m_eventType
;
56 XEventTarget_t m_target
;
57 XEventTarget_t m_currentTarget
;
60 sal_Bool m_cancelable
;