1*cdf0e10cSrcweir #ifndef __XFORMSEVENT_HXX 2*cdf0e10cSrcweir #define __XFORMSEVENT_HXX 3*cdf0e10cSrcweir 4*cdf0e10cSrcweir #include <sal/types.h> 5*cdf0e10cSrcweir #include <cppuhelper/implbase1.hxx> 6*cdf0e10cSrcweir #include <com/sun/star/uno/Reference.h> 7*cdf0e10cSrcweir #include <com/sun/star/xforms/XFormsEvent.hpp> 8*cdf0e10cSrcweir #include <com/sun/star/xml/dom/events/XEventTarget.hpp> 9*cdf0e10cSrcweir 10*cdf0e10cSrcweir namespace com { 11*cdf0e10cSrcweir namespace sun { 12*cdf0e10cSrcweir namespace star { 13*cdf0e10cSrcweir namespace xforms { 14*cdf0e10cSrcweir 15*cdf0e10cSrcweir class XFormsEventConcrete : public cppu::WeakImplHelper1< XFormsEvent > { 16*cdf0e10cSrcweir 17*cdf0e10cSrcweir public: 18*cdf0e10cSrcweir 19*cdf0e10cSrcweir typedef com::sun::star::uno::RuntimeException RuntimeException_t; 20*cdf0e10cSrcweir typedef com::sun::star::uno::Reference< com::sun::star::xml::dom::events::XEventTarget > XEventTarget_t; 21*cdf0e10cSrcweir typedef com::sun::star::xml::dom::events::PhaseType PhaseType_t; 22*cdf0e10cSrcweir typedef com::sun::star::util::Time Time_t; 23*cdf0e10cSrcweir 24*cdf0e10cSrcweir inline XFormsEventConcrete( void ) : m_canceled(sal_False) {} 25*cdf0e10cSrcweir virtual ~XFormsEventConcrete( void ) {} 26*cdf0e10cSrcweir 27*cdf0e10cSrcweir virtual rtl::OUString SAL_CALL getType() throw (RuntimeException_t); 28*cdf0e10cSrcweir virtual XEventTarget_t SAL_CALL getTarget() throw (RuntimeException_t); 29*cdf0e10cSrcweir virtual XEventTarget_t SAL_CALL getCurrentTarget() throw (RuntimeException_t); 30*cdf0e10cSrcweir virtual PhaseType_t SAL_CALL getEventPhase() throw (RuntimeException_t); 31*cdf0e10cSrcweir virtual sal_Bool SAL_CALL getBubbles() throw (RuntimeException_t); 32*cdf0e10cSrcweir virtual sal_Bool SAL_CALL getCancelable() throw (RuntimeException_t); 33*cdf0e10cSrcweir virtual Time_t SAL_CALL getTimeStamp() throw (RuntimeException_t); 34*cdf0e10cSrcweir virtual void SAL_CALL stopPropagation() throw (RuntimeException_t); 35*cdf0e10cSrcweir virtual void SAL_CALL preventDefault() throw (RuntimeException_t); 36*cdf0e10cSrcweir 37*cdf0e10cSrcweir virtual void SAL_CALL initXFormsEvent( 38*cdf0e10cSrcweir const rtl::OUString& typeArg, 39*cdf0e10cSrcweir sal_Bool canBubbleArg, 40*cdf0e10cSrcweir sal_Bool cancelableArg ) 41*cdf0e10cSrcweir throw (RuntimeException_t); 42*cdf0e10cSrcweir 43*cdf0e10cSrcweir virtual void SAL_CALL initEvent( 44*cdf0e10cSrcweir const rtl::OUString& eventTypeArg, 45*cdf0e10cSrcweir sal_Bool canBubbleArg, 46*cdf0e10cSrcweir sal_Bool cancelableArg) 47*cdf0e10cSrcweir throw (RuntimeException_t); 48*cdf0e10cSrcweir 49*cdf0e10cSrcweir private: 50*cdf0e10cSrcweir 51*cdf0e10cSrcweir sal_Bool m_canceled; 52*cdf0e10cSrcweir 53*cdf0e10cSrcweir protected: 54*cdf0e10cSrcweir 55*cdf0e10cSrcweir rtl::OUString m_eventType; 56*cdf0e10cSrcweir XEventTarget_t m_target; 57*cdf0e10cSrcweir XEventTarget_t m_currentTarget; 58*cdf0e10cSrcweir PhaseType_t m_phase; 59*cdf0e10cSrcweir sal_Bool m_bubbles; 60*cdf0e10cSrcweir sal_Bool m_cancelable; 61*cdf0e10cSrcweir Time_t m_time; 62*cdf0e10cSrcweir }; 63*cdf0e10cSrcweir 64*cdf0e10cSrcweir } } } } 65*cdf0e10cSrcweir 66*cdf0e10cSrcweir #endif 67