LibreOffice Module winaccessibility (master) 1
AccDescendantManagerEventListener.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
22enum class UnoMSAAEvent;
23
24#include <stdio.h>
25#include <vector>
27#include <com/sun/star/accessibility/XAccessibleEventListener.hpp>
28#include <com/sun/star/accessibility/XAccessible.hpp>
29
37{
38private:
39 std::vector<com::sun::star::accessibility::XAccessible*> m_aUnselectedChildrenForDeletion;
40
41public:
42 AccDescendantManagerEventListener(css::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent);
43 virtual ~AccDescendantManagerEventListener() override;
44
45 // XAccessibleEventListener
46 virtual void SAL_CALL notifyEvent( const css::accessibility::AccessibleEventObject& aEvent ) override;
47
48 //for selection changed event
49 virtual void HandleSelectionChangedEvent(
50 css::uno::Any oldValue, css::uno::Any newValue);
51
52 //for child changed event
53 virtual void HandleChildChangedEvent(
54 css::uno::Any oldValue, css::uno::Any newValue);
55
57 css::uno::Any oldValue, css::uno::Any newValue);
58
59 bool NotifyChildEvent(UnoMSAAEvent eWinEvent, const css::uno::Any& Value);
60
62 const css::uno::Any &oldValue, const css::uno::Any &newValue);
64 const css::uno::Any &oldValue, const css::uno::Any &newValue);
66 const css::uno::Any &oldValue, const css::uno::Any &newValue);
67};
68
69/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
AccComponentEventListener is inherited from AccEventListener.
AccDescendantManagerEventListener is inherited from AccComponentEventListener.
virtual void HandleSelectionChangedWithinEvent(const css::uno::Any &oldValue, const css::uno::Any &newValue)
AccDescendantManagerEventListener(css::accessibility::XAccessible *pAcc, AccObjectManagerAgent *Agent)
virtual void HandleSelectionChangedRemoveEvent(const css::uno::Any &oldValue, const css::uno::Any &newValue)
virtual void SAL_CALL notifyEvent(const css::accessibility::AccessibleEventObject &aEvent) override
Uno's event notifier when event is captured.
virtual void HandleChildChangedNoFocusEvent(css::uno::Any oldValue, css::uno::Any newValue)
std::vector< com::sun::star::accessibility::XAccessible * > m_aUnselectedChildrenForDeletion
bool NotifyChildEvent(UnoMSAAEvent eWinEvent, const css::uno::Any &Value)
virtual void HandleSelectionChangedAddEvent(const css::uno::Any &oldValue, const css::uno::Any &newValue)
virtual void HandleSelectionChangedEvent(css::uno::Any oldValue, css::uno::Any newValue)
handle the SELECTION_CHANGED event
virtual void HandleChildChangedEvent(css::uno::Any oldValue, css::uno::Any newValue)
handle the CHILD event
UnoMSAAEvent