update dev300-m58
[ooovba.git] / vcl / aqua / inc / aqua11ylistener.hxx
blob91aa3b96dea8f71c7f67141dc2caffbf0f408f52
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: aqua11ylistener.hxx,v $
11 * $Revision: 1.3 $
13 * This file is part of OpenOffice.org.
15 * OpenOffice.org is free software: you can redistribute it and/or modify
16 * it under the terms of the GNU Lesser General Public License version 3
17 * only, as published by the Free Software Foundation.
19 * OpenOffice.org is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU Lesser General Public License version 3 for more details
23 * (a copy is included in the LICENSE file that accompanied this code).
25 * You should have received a copy of the GNU Lesser General Public License
26 * version 3 along with OpenOffice.org. If not, see
27 * <http://www.openoffice.org/license.html>
28 * for a copy of the LGPLv3 License.
30 ************************************************************************/
32 #ifndef _AQUA11YLISTENER_HXX_
33 #define _AQUA11YLISTENER_HXX_
35 #include <com/sun/star/accessibility/XAccessibleEventListener.hpp>
36 #include <cppuhelper/implbase1.hxx>
38 #include "aqua11yfocustracker.hxx"
39 #include "aquavcltypes.h"
40 #include <set>
41 #include <com/sun/star/awt/Rectangle.hpp>
43 // -------------------------
44 // - AquaA11yEventListener -
45 // -------------------------
47 class AquaA11yEventListener :
48 public ::cppu::WeakImplHelper1< ::com::sun::star::accessibility::XAccessibleEventListener >
51 public:
52 AquaA11yEventListener(id wrapperObject, sal_Int16 role);
53 virtual ~AquaA11yEventListener();
55 // XEventListener
56 virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source )
57 throw (::com::sun::star::uno::RuntimeException);
59 // XAccessibleEventListener
60 virtual void SAL_CALL notifyEvent( const ::com::sun::star::accessibility::AccessibleEventObject& aEvent )
61 throw( ::com::sun::star::uno::RuntimeException );
63 private:
64 const id m_wrapperObject;
65 const sal_Int16 m_role;
66 ::com::sun::star::awt::Rectangle m_oldBounds;
69 #endif // _AQUA11YLISTENER_HXX_