1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir #include <vos/mutex.hxx> 29*cdf0e10cSrcweir #include <tools/list.hxx> 30*cdf0e10cSrcweir #include <tools/color.hxx> 31*cdf0e10cSrcweir #include <tools/string.hxx> 32*cdf0e10cSrcweir #ifndef _IMAGE_HXX 33*cdf0e10cSrcweir #include <vcl/image.hxx> 34*cdf0e10cSrcweir #endif 35*cdf0e10cSrcweir #include <rtl/uuid.h> 36*cdf0e10cSrcweir #include <cppuhelper/implbase5.hxx> 37*cdf0e10cSrcweir #include <cppuhelper/compbase6.hxx> 38*cdf0e10cSrcweir #include <comphelper/broadcasthelper.hxx> 39*cdf0e10cSrcweir #include <com/sun/star/lang/XUnoTunnel.hpp> 40*cdf0e10cSrcweir #include <com/sun/star/accessibility/XAccessible.hpp> 41*cdf0e10cSrcweir #include <com/sun/star/accessibility/XAccessibleContext.hpp> 42*cdf0e10cSrcweir #include <com/sun/star/accessibility/XAccessibleComponent.hpp> 43*cdf0e10cSrcweir #include <com/sun/star/accessibility/XAccessibleSelection.hpp> 44*cdf0e10cSrcweir #include <com/sun/star/accessibility/XAccessibleEventBroadcaster.hpp> 45*cdf0e10cSrcweir #include <com/sun/star/lang/DisposedException.hpp> 46*cdf0e10cSrcweir 47*cdf0e10cSrcweir #include <memory> 48*cdf0e10cSrcweir #include <vector> 49*cdf0e10cSrcweir 50*cdf0e10cSrcweir // ----------- 51*cdf0e10cSrcweir // - Defines - 52*cdf0e10cSrcweir // ----------- 53*cdf0e10cSrcweir 54*cdf0e10cSrcweir #define ITEM_OFFSET 4 55*cdf0e10cSrcweir #define ITEM_OFFSET_DOUBLE 6 56*cdf0e10cSrcweir #define NAME_LINE_OFF_X 2 57*cdf0e10cSrcweir #define NAME_LINE_OFF_Y 2 58*cdf0e10cSrcweir #define NAME_LINE_HEIGHT 2 59*cdf0e10cSrcweir #define NAME_OFFSET 2 60*cdf0e10cSrcweir #define SCRBAR_OFFSET 1 61*cdf0e10cSrcweir #define VALUESET_ITEM_NONEITEM 0xFFFE 62*cdf0e10cSrcweir #define VALUESET_SCROLL_OFFSET 4 63*cdf0e10cSrcweir 64*cdf0e10cSrcweir // -------------------- 65*cdf0e10cSrcweir // - ValueSetItemType - 66*cdf0e10cSrcweir // -------------------- 67*cdf0e10cSrcweir 68*cdf0e10cSrcweir enum ValueSetItemType 69*cdf0e10cSrcweir { 70*cdf0e10cSrcweir VALUESETITEM_NONE, 71*cdf0e10cSrcweir VALUESETITEM_IMAGE, 72*cdf0e10cSrcweir VALUESETITEM_COLOR, 73*cdf0e10cSrcweir VALUESETITEM_USERDRAW, 74*cdf0e10cSrcweir VALUESETITEM_SPACE 75*cdf0e10cSrcweir }; 76*cdf0e10cSrcweir 77*cdf0e10cSrcweir // ---------------- 78*cdf0e10cSrcweir // - ValueSetItem - 79*cdf0e10cSrcweir // ---------------- 80*cdf0e10cSrcweir 81*cdf0e10cSrcweir class ValueSet; 82*cdf0e10cSrcweir 83*cdf0e10cSrcweir struct ValueSetItem 84*cdf0e10cSrcweir { 85*cdf0e10cSrcweir ValueSet& mrParent; 86*cdf0e10cSrcweir sal_uInt16 mnId; 87*cdf0e10cSrcweir sal_uInt16 mnBits; 88*cdf0e10cSrcweir ValueSetItemType meType; 89*cdf0e10cSrcweir Image maImage; 90*cdf0e10cSrcweir Color maColor; 91*cdf0e10cSrcweir XubString maText; 92*cdf0e10cSrcweir void* mpData; 93*cdf0e10cSrcweir Rectangle maRect; 94*cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >* mpxAcc; 95*cdf0e10cSrcweir 96*cdf0e10cSrcweir ValueSetItem( ValueSet& rParent ); 97*cdf0e10cSrcweir ~ValueSetItem(); 98*cdf0e10cSrcweir 99*cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > 100*cdf0e10cSrcweir GetAccessible( bool bIsTransientChildrenDisabled ); 101*cdf0e10cSrcweir void ClearAccessible(); 102*cdf0e10cSrcweir }; 103*cdf0e10cSrcweir 104*cdf0e10cSrcweir // ----------------------------------------------------------------------------- 105*cdf0e10cSrcweir 106*cdf0e10cSrcweir DECLARE_LIST( ValueItemList, ValueSetItem* ) 107*cdf0e10cSrcweir 108*cdf0e10cSrcweir // ----------------------------------------------------------------------------- 109*cdf0e10cSrcweir 110*cdf0e10cSrcweir struct ValueSet_Impl 111*cdf0e10cSrcweir { 112*cdf0e10cSrcweir ::std::auto_ptr< ValueItemList > mpItemList; 113*cdf0e10cSrcweir bool mbIsTransientChildrenDisabled; 114*cdf0e10cSrcweir Link maHighlightHdl; 115*cdf0e10cSrcweir 116*cdf0e10cSrcweir ValueSet_Impl() : mpItemList( ::std::auto_ptr< ValueItemList >( new ValueItemList() ) ), 117*cdf0e10cSrcweir mbIsTransientChildrenDisabled( false ) 118*cdf0e10cSrcweir { 119*cdf0e10cSrcweir } 120*cdf0e10cSrcweir }; 121*cdf0e10cSrcweir 122*cdf0e10cSrcweir // --------------- 123*cdf0e10cSrcweir // - ValueSetAcc - 124*cdf0e10cSrcweir // --------------- 125*cdf0e10cSrcweir 126*cdf0e10cSrcweir typedef ::cppu::WeakComponentImplHelper6< 127*cdf0e10cSrcweir ::com::sun::star::accessibility::XAccessible, 128*cdf0e10cSrcweir ::com::sun::star::accessibility::XAccessibleEventBroadcaster, 129*cdf0e10cSrcweir ::com::sun::star::accessibility::XAccessibleContext, 130*cdf0e10cSrcweir ::com::sun::star::accessibility::XAccessibleComponent, 131*cdf0e10cSrcweir ::com::sun::star::accessibility::XAccessibleSelection, 132*cdf0e10cSrcweir ::com::sun::star::lang::XUnoTunnel > 133*cdf0e10cSrcweir ValueSetAccComponentBase; 134*cdf0e10cSrcweir 135*cdf0e10cSrcweir class ValueSetAcc : 136*cdf0e10cSrcweir public ::comphelper::OBaseMutex, 137*cdf0e10cSrcweir public ValueSetAccComponentBase 138*cdf0e10cSrcweir { 139*cdf0e10cSrcweir public: 140*cdf0e10cSrcweir 141*cdf0e10cSrcweir ValueSetAcc( ValueSet* pParent, bool bIsTransientChildrenDisabled ); 142*cdf0e10cSrcweir ~ValueSetAcc(); 143*cdf0e10cSrcweir 144*cdf0e10cSrcweir void FireAccessibleEvent( short nEventId, const ::com::sun::star::uno::Any& rOldValue, const ::com::sun::star::uno::Any& rNewValue ); 145*cdf0e10cSrcweir sal_Bool HasAccessibleListeners() const { return( mxEventListeners.size() > 0 ); } 146*cdf0e10cSrcweir 147*cdf0e10cSrcweir static ValueSetAcc* getImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxData ) throw(); 148*cdf0e10cSrcweir 149*cdf0e10cSrcweir public: 150*cdf0e10cSrcweir 151*cdf0e10cSrcweir /** Called by the corresponding ValueSet when it gets the focus. 152*cdf0e10cSrcweir Stores the new focus state and broadcasts a state change event. 153*cdf0e10cSrcweir */ 154*cdf0e10cSrcweir void GetFocus (void); 155*cdf0e10cSrcweir 156*cdf0e10cSrcweir /** Called by the corresponding ValueSet when it loses the focus. 157*cdf0e10cSrcweir Stores the new focus state and broadcasts a state change event. 158*cdf0e10cSrcweir */ 159*cdf0e10cSrcweir void LoseFocus (void); 160*cdf0e10cSrcweir 161*cdf0e10cSrcweir 162*cdf0e10cSrcweir // XAccessible 163*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) throw (::com::sun::star::uno::RuntimeException); 164*cdf0e10cSrcweir 165*cdf0e10cSrcweir // XAccessibleEventBroadcaster 166*cdf0e10cSrcweir using cppu::WeakComponentImplHelper6<com::sun::star::accessibility::XAccessible, com::sun::star::accessibility::XAccessibleEventBroadcaster, com::sun::star::accessibility::XAccessibleContext, com::sun::star::accessibility::XAccessibleComponent, com::sun::star::accessibility::XAccessibleSelection, com::sun::star::lang::XUnoTunnel>::addEventListener; 167*cdf0e10cSrcweir virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException); 168*cdf0e10cSrcweir using cppu::WeakComponentImplHelper6<com::sun::star::accessibility::XAccessible, com::sun::star::accessibility::XAccessibleEventBroadcaster, com::sun::star::accessibility::XAccessibleContext, com::sun::star::accessibility::XAccessibleComponent, com::sun::star::accessibility::XAccessibleSelection, com::sun::star::lang::XUnoTunnel>::removeEventListener; 169*cdf0e10cSrcweir virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException); 170*cdf0e10cSrcweir 171*cdf0e10cSrcweir // XAccessibleContext 172*cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getAccessibleChildCount( ) throw (::com::sun::star::uno::RuntimeException); 173*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); 174*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleParent( ) throw (::com::sun::star::uno::RuntimeException); 175*cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getAccessibleIndexInParent( ) throw (::com::sun::star::uno::RuntimeException); 176*cdf0e10cSrcweir virtual sal_Int16 SAL_CALL getAccessibleRole( ) throw (::com::sun::star::uno::RuntimeException); 177*cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getAccessibleDescription( ) throw (::com::sun::star::uno::RuntimeException); 178*cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getAccessibleName( ) throw (::com::sun::star::uno::RuntimeException); 179*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) throw (::com::sun::star::uno::RuntimeException); 180*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) throw (::com::sun::star::uno::RuntimeException); 181*cdf0e10cSrcweir virtual ::com::sun::star::lang::Locale SAL_CALL getLocale( ) throw (::com::sun::star::accessibility::IllegalAccessibleComponentStateException, ::com::sun::star::uno::RuntimeException); 182*cdf0e10cSrcweir 183*cdf0e10cSrcweir // XAccessibleComponent 184*cdf0e10cSrcweir virtual sal_Bool SAL_CALL containsPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException); 185*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException); 186*cdf0e10cSrcweir virtual ::com::sun::star::awt::Rectangle SAL_CALL getBounds( ) throw (::com::sun::star::uno::RuntimeException); 187*cdf0e10cSrcweir virtual ::com::sun::star::awt::Point SAL_CALL getLocation( ) throw (::com::sun::star::uno::RuntimeException); 188*cdf0e10cSrcweir virtual ::com::sun::star::awt::Point SAL_CALL getLocationOnScreen( ) throw (::com::sun::star::uno::RuntimeException); 189*cdf0e10cSrcweir virtual ::com::sun::star::awt::Size SAL_CALL getSize( ) throw (::com::sun::star::uno::RuntimeException); 190*cdf0e10cSrcweir virtual void SAL_CALL grabFocus( ) throw (::com::sun::star::uno::RuntimeException); 191*cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getAccessibleKeyBinding( ) throw (::com::sun::star::uno::RuntimeException); 192*cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getForeground( ) throw (::com::sun::star::uno::RuntimeException); 193*cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getBackground( ) throw (::com::sun::star::uno::RuntimeException); 194*cdf0e10cSrcweir 195*cdf0e10cSrcweir // XAccessibleSelection 196*cdf0e10cSrcweir virtual void SAL_CALL selectAccessibleChild( sal_Int32 nChildIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); 197*cdf0e10cSrcweir virtual sal_Bool SAL_CALL isAccessibleChildSelected( sal_Int32 nChildIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); 198*cdf0e10cSrcweir virtual void SAL_CALL clearAccessibleSelection( ) throw (::com::sun::star::uno::RuntimeException); 199*cdf0e10cSrcweir virtual void SAL_CALL selectAllAccessibleChildren( ) throw (::com::sun::star::uno::RuntimeException); 200*cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getSelectedAccessibleChildCount( ) throw (::com::sun::star::uno::RuntimeException); 201*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); 202*cdf0e10cSrcweir virtual void SAL_CALL deselectAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); 203*cdf0e10cSrcweir 204*cdf0e10cSrcweir // XUnoTunnel 205*cdf0e10cSrcweir virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rId ) throw( ::com::sun::star::uno::RuntimeException ); 206*cdf0e10cSrcweir 207*cdf0e10cSrcweir private: 208*cdf0e10cSrcweir // ::vos::OMutex maMutex; 209*cdf0e10cSrcweir ::std::vector< ::com::sun::star::uno::Reference< 210*cdf0e10cSrcweir ::com::sun::star::accessibility::XAccessibleEventListener > > mxEventListeners; 211*cdf0e10cSrcweir ValueSet* mpParent; 212*cdf0e10cSrcweir bool mbIsTransientChildrenDisabled; 213*cdf0e10cSrcweir /// The current FOCUSED state. 214*cdf0e10cSrcweir bool mbIsFocused; 215*cdf0e10cSrcweir 216*cdf0e10cSrcweir static const ::com::sun::star::uno::Sequence< sal_Int8 >& getUnoTunnelId(); 217*cdf0e10cSrcweir 218*cdf0e10cSrcweir /** Tell all listeners that the object is dying. This callback is 219*cdf0e10cSrcweir usually called from the WeakComponentImplHelper class. 220*cdf0e10cSrcweir */ 221*cdf0e10cSrcweir virtual void SAL_CALL disposing (void); 222*cdf0e10cSrcweir 223*cdf0e10cSrcweir /** Return the number of items. This takes the None-Item into account. 224*cdf0e10cSrcweir */ 225*cdf0e10cSrcweir sal_uInt16 getItemCount (void) const; 226*cdf0e10cSrcweir 227*cdf0e10cSrcweir /** Return the item associated with the given index. The None-Item is 228*cdf0e10cSrcweir taken into account which, when present, is taken to be the first 229*cdf0e10cSrcweir (with index 0) item. 230*cdf0e10cSrcweir @param nIndex 231*cdf0e10cSrcweir Index of the item to return. The index 0 denotes the None-Item 232*cdf0e10cSrcweir when present. 233*cdf0e10cSrcweir @return 234*cdf0e10cSrcweir Returns NULL when the given index is out of range. 235*cdf0e10cSrcweir */ 236*cdf0e10cSrcweir ValueSetItem* getItem (sal_uInt16 nIndex) const; 237*cdf0e10cSrcweir 238*cdf0e10cSrcweir /** Check whether or not the object has been disposed (or is in the 239*cdf0e10cSrcweir state of beeing disposed). If that is the case then 240*cdf0e10cSrcweir DisposedException is thrown to inform the (indirect) caller of the 241*cdf0e10cSrcweir foul deed. 242*cdf0e10cSrcweir */ 243*cdf0e10cSrcweir void ThrowIfDisposed (void) 244*cdf0e10cSrcweir throw (::com::sun::star::lang::DisposedException); 245*cdf0e10cSrcweir 246*cdf0e10cSrcweir /** Check whether or not the object has been disposed (or is in the 247*cdf0e10cSrcweir state of beeing disposed). 248*cdf0e10cSrcweir 249*cdf0e10cSrcweir @return sal_True, if the object is disposed or in the course 250*cdf0e10cSrcweir of being disposed. Otherwise, sal_False is returned. 251*cdf0e10cSrcweir */ 252*cdf0e10cSrcweir sal_Bool IsDisposed (void); 253*cdf0e10cSrcweir 254*cdf0e10cSrcweir /** Check whether the value set has a 'none' field, i.e. a field (button) 255*cdf0e10cSrcweir that deselects any items (selects none of them). 256*cdf0e10cSrcweir @return 257*cdf0e10cSrcweir Returns <true/> if there is a 'none' field and <false/> it it is 258*cdf0e10cSrcweir missing. 259*cdf0e10cSrcweir */ 260*cdf0e10cSrcweir bool HasNoneField (void) const; 261*cdf0e10cSrcweir }; 262*cdf0e10cSrcweir 263*cdf0e10cSrcweir // ---------------- 264*cdf0e10cSrcweir // - ValueItemAcc - 265*cdf0e10cSrcweir // ---------------- 266*cdf0e10cSrcweir 267*cdf0e10cSrcweir class ValueItemAcc : public ::cppu::WeakImplHelper5< ::com::sun::star::accessibility::XAccessible, 268*cdf0e10cSrcweir ::com::sun::star::accessibility::XAccessibleEventBroadcaster, 269*cdf0e10cSrcweir ::com::sun::star::accessibility::XAccessibleContext, 270*cdf0e10cSrcweir ::com::sun::star::accessibility::XAccessibleComponent, 271*cdf0e10cSrcweir ::com::sun::star::lang::XUnoTunnel > 272*cdf0e10cSrcweir { 273*cdf0e10cSrcweir private: 274*cdf0e10cSrcweir 275*cdf0e10cSrcweir ::std::vector< ::com::sun::star::uno::Reference< 276*cdf0e10cSrcweir ::com::sun::star::accessibility::XAccessibleEventListener > > mxEventListeners; 277*cdf0e10cSrcweir ::vos::OMutex maMutex; 278*cdf0e10cSrcweir ValueSetItem* mpParent; 279*cdf0e10cSrcweir bool mbIsTransientChildrenDisabled; 280*cdf0e10cSrcweir 281*cdf0e10cSrcweir static const ::com::sun::star::uno::Sequence< sal_Int8 >& getUnoTunnelId(); 282*cdf0e10cSrcweir 283*cdf0e10cSrcweir public: 284*cdf0e10cSrcweir 285*cdf0e10cSrcweir ValueItemAcc( ValueSetItem* pParent, bool bIsTransientChildrenDisabled ); 286*cdf0e10cSrcweir ~ValueItemAcc(); 287*cdf0e10cSrcweir 288*cdf0e10cSrcweir void ParentDestroyed(); 289*cdf0e10cSrcweir 290*cdf0e10cSrcweir void FireAccessibleEvent( short nEventId, const ::com::sun::star::uno::Any& rOldValue, const ::com::sun::star::uno::Any& rNewValue ); 291*cdf0e10cSrcweir sal_Bool HasAccessibleListeners() const { return( mxEventListeners.size() > 0 ); } 292*cdf0e10cSrcweir 293*cdf0e10cSrcweir static ValueItemAcc* getImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxData ) throw(); 294*cdf0e10cSrcweir 295*cdf0e10cSrcweir public: 296*cdf0e10cSrcweir 297*cdf0e10cSrcweir // XAccessible 298*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) throw (::com::sun::star::uno::RuntimeException); 299*cdf0e10cSrcweir 300*cdf0e10cSrcweir // XAccessibleEventBroadcaster 301*cdf0e10cSrcweir virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException); 302*cdf0e10cSrcweir virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException); 303*cdf0e10cSrcweir 304*cdf0e10cSrcweir // XAccessibleContext 305*cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getAccessibleChildCount( ) throw (::com::sun::star::uno::RuntimeException); 306*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException); 307*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleParent( ) throw (::com::sun::star::uno::RuntimeException); 308*cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getAccessibleIndexInParent( ) throw (::com::sun::star::uno::RuntimeException); 309*cdf0e10cSrcweir virtual sal_Int16 SAL_CALL getAccessibleRole( ) throw (::com::sun::star::uno::RuntimeException); 310*cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getAccessibleDescription( ) throw (::com::sun::star::uno::RuntimeException); 311*cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getAccessibleName( ) throw (::com::sun::star::uno::RuntimeException); 312*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) throw (::com::sun::star::uno::RuntimeException); 313*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet( ) throw (::com::sun::star::uno::RuntimeException); 314*cdf0e10cSrcweir virtual ::com::sun::star::lang::Locale SAL_CALL getLocale( ) throw (::com::sun::star::accessibility::IllegalAccessibleComponentStateException, ::com::sun::star::uno::RuntimeException); 315*cdf0e10cSrcweir 316*cdf0e10cSrcweir // XAccessibleComponent 317*cdf0e10cSrcweir virtual sal_Bool SAL_CALL containsPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException); 318*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException); 319*cdf0e10cSrcweir virtual ::com::sun::star::awt::Rectangle SAL_CALL getBounds( ) throw (::com::sun::star::uno::RuntimeException); 320*cdf0e10cSrcweir virtual ::com::sun::star::awt::Point SAL_CALL getLocation( ) throw (::com::sun::star::uno::RuntimeException); 321*cdf0e10cSrcweir virtual ::com::sun::star::awt::Point SAL_CALL getLocationOnScreen( ) throw (::com::sun::star::uno::RuntimeException); 322*cdf0e10cSrcweir virtual ::com::sun::star::awt::Size SAL_CALL getSize( ) throw (::com::sun::star::uno::RuntimeException); 323*cdf0e10cSrcweir virtual void SAL_CALL grabFocus( ) throw (::com::sun::star::uno::RuntimeException); 324*cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getAccessibleKeyBinding( ) throw (::com::sun::star::uno::RuntimeException); 325*cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getForeground( ) throw (::com::sun::star::uno::RuntimeException); 326*cdf0e10cSrcweir virtual sal_Int32 SAL_CALL getBackground( ) throw (::com::sun::star::uno::RuntimeException); 327*cdf0e10cSrcweir 328*cdf0e10cSrcweir // XUnoTunnel 329*cdf0e10cSrcweir virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rId ) throw( ::com::sun::star::uno::RuntimeException ); 330*cdf0e10cSrcweir }; 331