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 #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>
28 #include "atkwrapper.hxx"
30 class AtkListener
: public ::cppu::WeakImplHelper
< css::accessibility::XAccessibleEventListener
>
33 explicit AtkListener(AtkObjectWrapper
* pWrapper
);
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
;
43 AtkObjectWrapper
*mpWrapper
;
44 std::vector
< css::uno::Reference
< css::accessibility::XAccessible
> >
47 virtual ~AtkListener() override
;
49 // Updates the child list held to provide the old IndexInParent on children_changed::remove
51 css::uno::Reference
<css::accessibility::XAccessibleContext
> const &
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: */