1 #ifndef __XFORMSEVENT_HXX 2 #define __XFORMSEVENT_HXX 3 4 #include <sal/types.h> 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> 9 10 namespace com { 11 namespace sun { 12 namespace star { 13 namespace xforms { 14 15 class XFormsEventConcrete : public cppu::WeakImplHelper1< XFormsEvent > { 16 17 public: 18 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; 23 24 inline XFormsEventConcrete( void ) : m_canceled(sal_False) {} 25 virtual ~XFormsEventConcrete( void ) {} 26 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); 36 37 virtual void SAL_CALL initXFormsEvent( 38 const rtl::OUString& typeArg, 39 sal_Bool canBubbleArg, 40 sal_Bool cancelableArg ) 41 throw (RuntimeException_t); 42 43 virtual void SAL_CALL initEvent( 44 const rtl::OUString& eventTypeArg, 45 sal_Bool canBubbleArg, 46 sal_Bool cancelableArg) 47 throw (RuntimeException_t); 48 49 private: 50 51 sal_Bool m_canceled; 52 53 protected: 54 55 rtl::OUString m_eventType; 56 XEventTarget_t m_target; 57 XEventTarget_t m_currentTarget; 58 PhaseType_t m_phase; 59 sal_Bool m_bubbles; 60 sal_Bool m_cancelable; 61 Time_t m_time; 62 }; 63 64 } } } } 65 66 #endif 67