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 .
22 using namespace css::uno
;
23 using namespace css::xml::dom::events
;
30 , m_phase(PhaseType_CAPTURING_PHASE
)
40 OUString SAL_CALL
CEvent::getType()
42 std::unique_lock
const g(m_Mutex
);
46 Reference
< XEventTarget
> SAL_CALL
49 std::unique_lock
const g(m_Mutex
);
53 Reference
< XEventTarget
> SAL_CALL
54 CEvent::getCurrentTarget()
56 std::unique_lock
const g(m_Mutex
);
57 return m_currentTarget
;
60 PhaseType SAL_CALL
CEvent::getEventPhase()
62 std::unique_lock
const g(m_Mutex
);
66 sal_Bool SAL_CALL
CEvent::getBubbles()
68 std::unique_lock
const g(m_Mutex
);
72 sal_Bool SAL_CALL
CEvent::getCancelable()
74 std::unique_lock
const g(m_Mutex
);
78 css::util::Time SAL_CALL
79 CEvent::getTimeStamp()
81 std::unique_lock
const g(m_Mutex
);
85 void SAL_CALL
CEvent::stopPropagation()
87 std::unique_lock
const g(m_Mutex
);
88 if (m_cancelable
) { m_canceled
= true; }
91 void SAL_CALL
CEvent::preventDefault()
96 CEvent::initEvent(OUString
const& eventTypeArg
, sal_Bool canBubbleArg
,
97 sal_Bool cancelableArg
)
99 std::unique_lock
const g(m_Mutex
);
101 m_eventType
= eventTypeArg
;
102 m_bubbles
= canBubbleArg
;
103 m_cancelable
= cancelableArg
;
108 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */