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 using namespace css::uno
;
23 using namespace css::xml::dom::events
;
24 using namespace css::xml::dom::views
;
26 namespace DOM
{ namespace events
34 Reference
< XAbstractView
> SAL_CALL
37 ::osl::MutexGuard
const g(m_Mutex
);
41 sal_Int32 SAL_CALL
CUIEvent::getDetail()
43 ::osl::MutexGuard
const g(m_Mutex
);
47 void SAL_CALL
CUIEvent::initUIEvent(const OUString
& typeArg
,
48 sal_Bool canBubbleArg
,
49 sal_Bool cancelableArg
,
50 const Reference
< XAbstractView
>& viewArg
,
53 ::osl::MutexGuard
const g(m_Mutex
);
55 CEvent::initEvent(typeArg
, canBubbleArg
, cancelableArg
);
61 // delegate to CEvent, since we are inheriting from CEvent and XEvent
62 OUString SAL_CALL
CUIEvent::getType()
64 return CEvent::getType();
67 Reference
< XEventTarget
> SAL_CALL
CUIEvent::getTarget()
69 return CEvent::getTarget();
72 Reference
< XEventTarget
> SAL_CALL
CUIEvent::getCurrentTarget()
74 return CEvent::getCurrentTarget();
77 PhaseType SAL_CALL
CUIEvent::getEventPhase()
79 return CEvent::getEventPhase();
82 sal_Bool SAL_CALL
CUIEvent::getBubbles()
84 return CEvent::getBubbles();
87 sal_Bool SAL_CALL
CUIEvent::getCancelable()
89 // mutation events cannot be canceled
93 css::util::Time SAL_CALL
CUIEvent::getTimeStamp()
95 return CEvent::getTimeStamp();
98 void SAL_CALL
CUIEvent::stopPropagation()
100 CEvent::stopPropagation();
102 void SAL_CALL
CUIEvent::preventDefault()
104 CEvent::preventDefault();
107 void SAL_CALL
CUIEvent::initEvent(const OUString
& eventTypeArg
, sal_Bool canBubbleArg
,
108 sal_Bool cancelableArg
)
111 CEvent::initEvent(eventTypeArg
, canBubbleArg
, cancelableArg
);
115 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */