nss: upgrade to release 3.73
[LibreOffice.git] / winaccessibility / inc / AccEventListener.hxx
blob5ca714b397504c4f567f242b904952b2db8cb93d
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_WINACCESSIBILITY_INC_ACCEVENTLISTENER_HXX
21 #define INCLUDED_WINACCESSIBILITY_INC_ACCEVENTLISTENER_HXX
23 #include <com/sun/star/accessibility/XAccessibleEventListener.hpp>
24 #include <com/sun/star/accessibility/XAccessible.hpp>
26 #include <cppuhelper/implbase.hxx>
28 class AccObjectManagerAgent;
30 /**
31 * AccEventListener is the general event listener for all controls. It defines the
32 * procedure of all the event handling and provides the basic support for some simple
33 * methods.
35 class AccEventListener : public ::cppu::WeakImplHelper<css::accessibility::XAccessibleEventListener>
37 protected:
38 //accessible owner's pointer
39 css::uno::Reference<css::accessibility::XAccessible> m_xAccessible;
40 //agent pointer for objects' manager
41 AccObjectManagerAgent* pAgent;
43 public:
44 AccEventListener(css::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent);
45 virtual ~AccEventListener() override;
47 // XEventListener
48 virtual void SAL_CALL disposing(const css::lang::EventObject& Source) override;
50 // XAccessibleEventListener
51 virtual void SAL_CALL
52 notifyEvent(const css::accessibility::AccessibleEventObject& aEvent) override;
54 //for name changed event
55 virtual void HandleNameChangedEvent(css::uno::Any name);
57 //for description changed event
58 virtual void HandleDescriptionChangedEvent(css::uno::Any desc);
60 //for state changed event
61 virtual void HandleStateChangedEvent(css::uno::Any oldValue, css::uno::Any newValue);
62 virtual void SetComponentState(short state, bool enable);
63 virtual void FireStatePropertyChange(short state, bool set);
64 virtual void FireStateFocusedChange(bool enable);
66 //for bound rect changed event
67 virtual void HandleBoundrectChangedEvent();
69 //for visible data changed event
70 virtual void HandleVisibleDataChangedEvent();
72 // get the accessible role of m_xAccessible
73 virtual short GetRole();
74 //get the accessible parent's role
75 virtual short GetParentRole();
77 void RemoveMeFromBroadcaster();
80 #endif // INCLUDED_WINACCESSIBILITY_INC_ACCEVENTLISTENER_HXX
82 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */