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 #include <uievent.hxx>
31 namespace DOM
{ namespace events
39 Reference
< XAbstractView
> SAL_CALL
40 CUIEvent::getView() throw(RuntimeException
)
42 ::osl::MutexGuard
const g(m_Mutex
);
46 sal_Int32 SAL_CALL
CUIEvent::getDetail() throw(RuntimeException
)
48 ::osl::MutexGuard
const g(m_Mutex
);
52 void SAL_CALL
CUIEvent::initUIEvent(const OUString
& typeArg
,
53 sal_Bool canBubbleArg
,
54 sal_Bool cancelableArg
,
55 const Reference
< XAbstractView
>& viewArg
,
56 sal_Int32 detailArg
) throw(RuntimeException
)
58 ::osl::MutexGuard
const g(m_Mutex
);
60 CEvent::initEvent(typeArg
, canBubbleArg
, cancelableArg
);
66 // delegate to CEvent, since we are inheriting from CEvent and XEvent
67 OUString SAL_CALL
CUIEvent::getType() throw (RuntimeException
)
69 return CEvent::getType();
72 Reference
< XEventTarget
> SAL_CALL
CUIEvent::getTarget() throw (RuntimeException
)
74 return CEvent::getTarget();
77 Reference
< XEventTarget
> SAL_CALL
CUIEvent::getCurrentTarget() throw (RuntimeException
)
79 return CEvent::getCurrentTarget();
82 PhaseType SAL_CALL
CUIEvent::getEventPhase() throw (RuntimeException
)
84 return CEvent::getEventPhase();
87 sal_Bool SAL_CALL
CUIEvent::getBubbles() throw (RuntimeException
)
89 return CEvent::getBubbles();
92 sal_Bool SAL_CALL
CUIEvent::getCancelable() throw (RuntimeException
)
94 // mutation events cannot be canceled
98 com::sun::star::util::Time SAL_CALL
CUIEvent::getTimeStamp() throw (RuntimeException
)
100 return CEvent::getTimeStamp();
103 void SAL_CALL
CUIEvent::stopPropagation() throw (RuntimeException
)
105 CEvent::stopPropagation();
107 void SAL_CALL
CUIEvent::preventDefault() throw (RuntimeException
)
109 CEvent::preventDefault();
112 void SAL_CALL
CUIEvent::initEvent(const OUString
& eventTypeArg
, sal_Bool canBubbleArg
,
113 sal_Bool cancelableArg
) throw (RuntimeException
)
116 CEvent::initEvent(eventTypeArg
, canBubbleArg
, cancelableArg
);
120 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */