1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #ifndef EVENT_EVENT_HXX
30 #define EVENT_EVENT_HXX
32 #include <sal/types.h>
34 #include <com/sun/star/uno/Reference.h>
35 #include <com/sun/star/xml/dom/events/XEvent.hpp>
36 #include <com/sun/star/xml/dom/events/XEventTarget.hpp>
37 #include <com/sun/star/util/Time.hpp>
39 #include <cppuhelper/implbase1.hxx>
41 #include "../dom/node.hxx"
44 using namespace com::sun::star::uno
;
45 using namespace com::sun::star::xml::dom
;
46 using namespace com::sun::star::xml::dom::events
;
49 namespace DOM
{namespace events
51 class CEvent
: public cppu::WeakImplHelper1
< XEvent
>
53 friend class CEventDispatcher
;
59 Reference
< XEventTarget
> m_target
;
60 Reference
< XEventTarget
> m_currentTarget
;
63 sal_Bool m_cancelable
;
64 com::sun::star::util::Time m_time
;
71 virtual OUString SAL_CALL
getType() throw (RuntimeException
);
72 virtual Reference
< XEventTarget
> SAL_CALL
getTarget() throw (RuntimeException
);
73 virtual Reference
< XEventTarget
> SAL_CALL
getCurrentTarget() throw (RuntimeException
);
74 virtual PhaseType SAL_CALL
getEventPhase() throw (RuntimeException
);
75 virtual sal_Bool SAL_CALL
getBubbles() throw (RuntimeException
);
76 virtual sal_Bool SAL_CALL
getCancelable() throw (RuntimeException
);
77 virtual com::sun::star::util::Time SAL_CALL
getTimeStamp() throw (RuntimeException
);
78 virtual void SAL_CALL
stopPropagation() throw (RuntimeException
);
79 virtual void SAL_CALL
preventDefault() throw (RuntimeException
);
80 virtual void SAL_CALL
initEvent(
81 const OUString
& eventTypeArg
,
82 sal_Bool canBubbleArg
,
83 sal_Bool cancelableArg
) throw (RuntimeException
);
88 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */