nss: upgrade to release 3.73
[LibreOffice.git] / vcl / unx / gtk3 / a11y / atklistener.hxx
blob58798d4439fbaa6414a631181324a5e510526e46
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 #ifndef INCLUDED_VCL_UNX_GTK_A11Y_ATKLISTENER_HXX
21 #define INCLUDED_VCL_UNX_GTK_A11Y_ATKLISTENER_HXX
23 #include <com/sun/star/accessibility/XAccessibleEventListener.hpp>
24 #include <cppuhelper/implbase.hxx>
26 #include <vector>
28 #include "atkwrapper.hxx"
30 class AtkListener : public ::cppu::WeakImplHelper< css::accessibility::XAccessibleEventListener >
32 public:
33 explicit AtkListener(AtkObjectWrapper * pWrapper);
35 // XEventListener
36 virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
38 // XAccessibleEventListener
39 virtual void SAL_CALL notifyEvent( const css::accessibility::AccessibleEventObject& aEvent ) override;
41 private:
43 AtkObjectWrapper *mpWrapper;
44 std::vector< css::uno::Reference< css::accessibility::XAccessible > >
45 m_aChildList;
47 virtual ~AtkListener() override;
49 // Updates the child list held to provide the old IndexInParent on children_changed::remove
50 void updateChildList(
51 css::uno::Reference<css::accessibility::XAccessibleContext> const &
52 pContext);
54 // Process CHILD_EVENT notifications with a new child added
55 void handleChildAdded(
56 const css::uno::Reference< css::accessibility::XAccessibleContext >& rxParent,
57 const css::uno::Reference< css::accessibility::XAccessible>& rxChild);
59 // Process CHILD_EVENT notifications with a child removed
60 void handleChildRemoved(
61 const css::uno::Reference< css::accessibility::XAccessibleContext >& rxParent,
62 const css::uno::Reference< css::accessibility::XAccessible>& rxChild);
64 // Process INVALIDATE_ALL_CHILDREN notification
65 void handleInvalidateChildren(
66 const css::uno::Reference< css::accessibility::XAccessibleContext >& rxParent);
69 #endif // INCLUDED_VCL_UNX_GTK_A11Y_ATKLISTENER_HXX
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */