fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / winaccessibility / inc / AccEventListener.hxx
blobc656e36595338e61b048481f0f73562c48cf54fb
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/implbase1.hxx>
28 #include <osl/mutex.hxx>
30 class AccObjectManagerAgent;
32 /**
33 * AccEventListener is the general event listener for all controls. It defines the
34 * procedure of all the event handling and provides the basic support for some simple
35 * methods.
37 class AccEventListener
38 : public ::cppu::WeakImplHelper1<
39 com::sun::star::accessibility::XAccessibleEventListener>
41 protected:
42 //accessible owner's pointer
43 com::sun::star::uno::Reference<
44 com::sun::star::accessibility::XAccessible> m_xAccessible;
45 //agent pointer for objects' manager
46 AccObjectManagerAgent* pAgent;
47 public:
48 AccEventListener( com::sun::star::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent);
49 virtual ~AccEventListener();
51 // XEventListener
52 virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException);
54 // XAccessibleEventListener
55 virtual void SAL_CALL notifyEvent( const ::com::sun::star::accessibility::AccessibleEventObject& aEvent ) throw (::com::sun::star::uno::RuntimeException);
57 //for name changed event
58 virtual void HandleNameChangedEvent(css::uno::Any name);
60 //for description changed event
61 virtual void HandleDescriptionChangedEvent(css::uno::Any desc);
63 //for state changed event
64 virtual void HandleStateChangedEvent(
65 css::uno::Any oldValue, css::uno::Any newValue);
66 virtual void SetComponentState(short state, bool enable);
67 virtual void FireStatePropertyChange(short state, bool set);
68 virtual void FireStateFocusedChange(bool enable);
70 //for bound rect changed event
71 virtual void HandleBoundrectChangedEvent();
73 //for visible data changed event
74 virtual void HandleVisibleDataChangedEvent();
76 // get the accessible role of m_xAccessible
77 virtual short GetRole();
78 //get the accessible parent's role
79 virtual short GetParentRole();
81 void RemoveMeFromBroadcaster();
84 #endif // INCLUDED_WINACCESSIBILITY_INC_ACCEVENTLISTENER_HXX
86 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */