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_UIEVENT_HXX
30 #define EVENT_UIEVENT_HXX
32 #include <sal/types.h>
34 #include <com/sun/star/xml/dom/events/PhaseType.hpp>
35 #include <com/sun/star/xml/dom/events/XUIEvent.hpp>
36 #include <com/sun/star/xml/dom/views/XAbstractView.hpp>
38 #include <cppuhelper/implbase1.hxx>
43 using ::rtl::OUString
;
44 using namespace com::sun::star::xml::dom::views
;
46 namespace DOM
{ namespace events
{
48 typedef ::cppu::ImplInheritanceHelper1
< CEvent
, XUIEvent
> CUIEvent_Base
;
51 : public CUIEvent_Base
55 Reference
< XAbstractView
> m_view
;
60 virtual Reference
< XAbstractView
> SAL_CALL
getView() throw(RuntimeException
);
61 virtual sal_Int32 SAL_CALL
getDetail() throw(RuntimeException
);
62 virtual void SAL_CALL
initUIEvent(const OUString
& typeArg
,
63 sal_Bool canBubbleArg
,
64 sal_Bool cancelableArg
,
65 const Reference
< XAbstractView
>& viewArg
,
66 sal_Int32 detailArg
) throw(RuntimeException
);
68 // delegate to CEvent, since we are inheriting from CEvent and XEvent
69 virtual OUString SAL_CALL
getType() throw (RuntimeException
);
70 virtual Reference
< XEventTarget
> SAL_CALL
getTarget() throw (RuntimeException
);
71 virtual Reference
< XEventTarget
> SAL_CALL
getCurrentTarget() throw (RuntimeException
);
72 virtual PhaseType SAL_CALL
getEventPhase() throw (RuntimeException
);
73 virtual sal_Bool SAL_CALL
getBubbles() throw (RuntimeException
);
74 virtual sal_Bool SAL_CALL
getCancelable() throw (RuntimeException
);
75 virtual com::sun::star::util::Time SAL_CALL
getTimeStamp() throw (RuntimeException
);
76 virtual void SAL_CALL
stopPropagation() throw (RuntimeException
);
77 virtual void SAL_CALL
preventDefault() throw (RuntimeException
);
78 virtual void SAL_CALL
initEvent(
79 const OUString
& eventTypeArg
,
80 sal_Bool canBubbleArg
,
81 sal_Bool cancelableArg
)
82 throw (RuntimeException
);
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */