1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include <uievent.hxx>
22 namespace DOM
{ namespace events
30 Reference
< XAbstractView
> SAL_CALL
31 CUIEvent::getView() throw(RuntimeException
)
33 ::osl::MutexGuard
const g(m_Mutex
);
37 sal_Int32 SAL_CALL
CUIEvent::getDetail() throw(RuntimeException
)
39 ::osl::MutexGuard
const g(m_Mutex
);
43 void SAL_CALL
CUIEvent::initUIEvent(const OUString
& typeArg
,
44 sal_Bool canBubbleArg
,
45 sal_Bool cancelableArg
,
46 const Reference
< XAbstractView
>& viewArg
,
47 sal_Int32 detailArg
) throw(RuntimeException
)
49 ::osl::MutexGuard
const g(m_Mutex
);
51 CEvent::initEvent(typeArg
, canBubbleArg
, cancelableArg
);
57 // delegate to CEvent, since we are inheriting from CEvent and XEvent
58 OUString SAL_CALL
CUIEvent::getType() throw (RuntimeException
)
60 return CEvent::getType();
63 Reference
< XEventTarget
> SAL_CALL
CUIEvent::getTarget() throw (RuntimeException
)
65 return CEvent::getTarget();
68 Reference
< XEventTarget
> SAL_CALL
CUIEvent::getCurrentTarget() throw (RuntimeException
)
70 return CEvent::getCurrentTarget();
73 PhaseType SAL_CALL
CUIEvent::getEventPhase() throw (RuntimeException
)
75 return CEvent::getEventPhase();
78 sal_Bool SAL_CALL
CUIEvent::getBubbles() throw (RuntimeException
)
80 return CEvent::getBubbles();
83 sal_Bool SAL_CALL
CUIEvent::getCancelable() throw (RuntimeException
)
85 // mutation events cannot be canceled
89 com::sun::star::util::Time SAL_CALL
CUIEvent::getTimeStamp() throw (RuntimeException
)
91 return CEvent::getTimeStamp();
94 void SAL_CALL
CUIEvent::stopPropagation() throw (RuntimeException
)
96 CEvent::stopPropagation();
98 void SAL_CALL
CUIEvent::preventDefault() throw (RuntimeException
)
100 CEvent::preventDefault();
103 void SAL_CALL
CUIEvent::initEvent(const OUString
& eventTypeArg
, sal_Bool canBubbleArg
,
104 sal_Bool cancelableArg
) throw (RuntimeException
)
107 CEvent::initEvent(eventTypeArg
, canBubbleArg
, cancelableArg
);
111 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */