LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/svx/source/inc - svxrectctaccessiblecontext.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 8 0.0 %
Date: 2013-07-09 Functions: 0 4 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       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/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      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 .
      18             :  */
      19             : 
      20             : 
      21             : #ifndef _SVXRECTACCESSIBLECONTEXT_HXX
      22             : #define _SVXRECTACCESSIBLECONTEXT_HXX
      23             : 
      24             : #include <com/sun/star/accessibility/XAccessible.hpp>
      25             : #include <com/sun/star/accessibility/XAccessibleComponent.hpp>
      26             : #include <com/sun/star/accessibility/XAccessibleContext.hpp>
      27             : #include <com/sun/star/accessibility/XAccessibleEventBroadcaster.hpp>
      28             : #include <com/sun/star/accessibility/IllegalAccessibleComponentStateException.hpp>
      29             : #include <com/sun/star/accessibility/XAccessibleSelection.hpp>
      30             : #include <com/sun/star/accessibility/XAccessibleValue.hpp>
      31             : #include <com/sun/star/beans/XPropertyChangeListener.hpp>
      32             : #include <com/sun/star/uno/Reference.hxx>
      33             : #include <cppuhelper/weak.hxx>
      34             : #include <com/sun/star/lang/XServiceInfo.hpp>
      35             : #include <com/sun/star/lang/XTypeProvider.hpp>
      36             : #include <com/sun/star/lang/XServiceName.hpp>
      37             : #include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
      38             : #include <com/sun/star/lang/DisposedException.hpp>
      39             : #include <osl/mutex.hxx>
      40             : #include <cppuhelper/interfacecontainer.h>
      41             : #include <cppuhelper/compbase6.hxx>
      42             : #include <comphelper/broadcasthelper.hxx>
      43             : #include <cppuhelper/implbase6.hxx>
      44             : #include <comphelper/servicehelper.hxx>
      45             : #include <svx/rectenum.hxx>
      46             : 
      47             : namespace com { namespace sun { namespace star { namespace awt {
      48             :     struct Point;
      49             :     struct Rectangle;
      50             :     struct Size;
      51             :     class XFocusListener;
      52             : } } } }
      53             : 
      54             : class Rectangle;
      55             : class SvxRectCtl;
      56             : class SvxRectCtlChildAccessibleContext;
      57             : class Window;
      58             : 
      59             : 
      60             : typedef ::cppu::WeakAggComponentImplHelper6<
      61             :             ::com::sun::star::accessibility::XAccessible,
      62             :             ::com::sun::star::accessibility::XAccessibleComponent,
      63             :             ::com::sun::star::accessibility::XAccessibleContext,
      64             :             ::com::sun::star::accessibility::XAccessibleEventBroadcaster,
      65             :             ::com::sun::star::accessibility::XAccessibleSelection,
      66             :             ::com::sun::star::lang::XServiceInfo >
      67             :             SvxRectCtlAccessibleContext_Base;
      68             : 
      69             : class SvxRectCtlAccessibleContext : public ::comphelper::OBaseMutex, public SvxRectCtlAccessibleContext_Base
      70             : {
      71             : public:
      72             :     //=====  internal  ========================================================
      73             :     SvxRectCtlAccessibleContext(
      74             :         const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible>& rxParent,
      75             :         SvxRectCtl&             rRepresentation,
      76             :         const OUString*  pName = NULL,
      77             :         const OUString*  pDescription = NULL );
      78             : protected:
      79             :     virtual ~SvxRectCtlAccessibleContext();
      80             : public:
      81             :     //=====  XAccessible  =====================================================
      82             : 
      83             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext> SAL_CALL
      84             :         getAccessibleContext( void ) throw( ::com::sun::star::uno::RuntimeException );
      85             : 
      86             :     //=====  XAccessibleComponent  ============================================
      87             : 
      88             :     virtual sal_Bool SAL_CALL
      89             :         containsPoint( const ::com::sun::star::awt::Point& rPoint ) throw( ::com::sun::star::uno::RuntimeException );
      90             : 
      91             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL
      92             :         getAccessibleAtPoint( const ::com::sun::star::awt::Point& rPoint ) throw( ::com::sun::star::uno::RuntimeException );
      93             : 
      94             :     virtual ::com::sun::star::awt::Rectangle SAL_CALL
      95             :         getBounds() throw( ::com::sun::star::uno::RuntimeException );
      96             : 
      97             :     virtual ::com::sun::star::awt::Point SAL_CALL
      98             :         getLocation() throw( ::com::sun::star::uno::RuntimeException );
      99             : 
     100             :     virtual ::com::sun::star::awt::Point SAL_CALL
     101             :         getLocationOnScreen() throw( ::com::sun::star::uno::RuntimeException );
     102             : 
     103             :     virtual ::com::sun::star::awt::Size SAL_CALL
     104             :         getSize() throw( ::com::sun::star::uno::RuntimeException );
     105             : 
     106             :     virtual sal_Bool SAL_CALL
     107             :         isShowing() throw( ::com::sun::star::uno::RuntimeException );
     108             : 
     109             :     virtual sal_Bool SAL_CALL
     110             :         isVisible() throw( ::com::sun::star::uno::RuntimeException );
     111             : 
     112             :     virtual sal_Bool SAL_CALL
     113             :         isFocusTraversable() throw( ::com::sun::star::uno::RuntimeException );
     114             : 
     115             :     virtual void SAL_CALL
     116             :         addFocusListener(
     117             :             const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFocusListener >& xListener )
     118             :             throw( ::com::sun::star::uno::RuntimeException );
     119             : 
     120             :     virtual void SAL_CALL
     121             :         removeFocusListener(
     122             :             const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFocusListener >& xListener )
     123             :             throw( ::com::sun::star::uno::RuntimeException );
     124             : 
     125             :     virtual void SAL_CALL
     126             :         grabFocus() throw( ::com::sun::star::uno::RuntimeException );
     127             : 
     128             :     virtual ::com::sun::star::uno::Any SAL_CALL
     129             :         getAccessibleKeyBinding() throw( ::com::sun::star::uno::RuntimeException );
     130             :     virtual sal_Int32 SAL_CALL
     131             :         getForeground(  ) throw (::com::sun::star::uno::RuntimeException);
     132             :     virtual sal_Int32 SAL_CALL
     133             :         getBackground(  ) throw (::com::sun::star::uno::RuntimeException);
     134             : 
     135             :     //=====  XAccessibleContext  ==============================================
     136             : 
     137             :     virtual sal_Int32 SAL_CALL
     138             :         getAccessibleChildCount( void ) throw( ::com::sun::star::uno::RuntimeException );
     139             : 
     140             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> SAL_CALL
     141             :         getAccessibleChild( sal_Int32 nIndex )
     142             :             throw( ::com::sun::star::uno::RuntimeException, ::com::sun::star::lang::IndexOutOfBoundsException );
     143             : 
     144             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> SAL_CALL
     145             :         getAccessibleParent( void ) throw( ::com::sun::star::uno::RuntimeException );
     146             : 
     147             :     virtual sal_Int32 SAL_CALL
     148             :         getAccessibleIndexInParent( void ) throw( ::com::sun::star::uno::RuntimeException );
     149             : 
     150             :     virtual sal_Int16 SAL_CALL
     151             :         getAccessibleRole( void ) throw( ::com::sun::star::uno::RuntimeException );
     152             : 
     153             :     virtual OUString SAL_CALL
     154             :         getAccessibleDescription( void ) throw (::com::sun::star::uno::RuntimeException);
     155             : 
     156             :     virtual OUString SAL_CALL
     157             :         getAccessibleName( void ) throw (::com::sun::star::uno::RuntimeException);
     158             : 
     159             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleRelationSet > SAL_CALL
     160             :         getAccessibleRelationSet( void ) throw( ::com::sun::star::uno::RuntimeException );
     161             : 
     162             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet > SAL_CALL
     163             :         getAccessibleStateSet( void ) throw( ::com::sun::star::uno::RuntimeException );
     164             : 
     165             :     virtual ::com::sun::star::lang::Locale SAL_CALL
     166             :         getLocale( void )
     167             :             throw(  ::com::sun::star::uno::RuntimeException,
     168             :                     ::com::sun::star::accessibility::IllegalAccessibleComponentStateException );
     169             : 
     170             :     //=====  XAccessibleEventBroadcaster  =====================================
     171             : 
     172             :     virtual void SAL_CALL
     173             :         addAccessibleEventListener(
     174             :             const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener )
     175             :             throw( com::sun::star::uno::RuntimeException );
     176             : 
     177             :     virtual void SAL_CALL
     178             :         removeAccessibleEventListener(
     179             :             const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener )
     180             :             throw( com::sun::star::uno::RuntimeException );
     181             : 
     182             :     //=====  XServiceInfo  ====================================================
     183             : 
     184             :     virtual OUString SAL_CALL
     185             :         getImplementationName( void ) throw( ::com::sun::star::uno::RuntimeException );
     186             : 
     187             :     virtual sal_Bool SAL_CALL
     188             :         supportsService( const OUString& sServiceName ) throw( ::com::sun::star::uno::RuntimeException );
     189             : 
     190             :     virtual ::com::sun::star::uno::Sequence< OUString> SAL_CALL
     191             :         getSupportedServiceNames( void ) throw( ::com::sun::star::uno::RuntimeException );
     192             : 
     193             :     //=====  XTypeProvider  ===================================================
     194             : 
     195             :     virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL
     196             :         getImplementationId( void ) throw( ::com::sun::star::uno::RuntimeException );
     197             : 
     198             :     //=====  XAccessibleSelection =============================================
     199             : 
     200             :     virtual void SAL_CALL
     201             :         selectAccessibleChild( sal_Int32 nChildIndex )
     202             :             throw( ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException );
     203             : 
     204             :     virtual sal_Bool SAL_CALL
     205             :         isAccessibleChildSelected( sal_Int32 nChildIndex )
     206             :             throw( ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException );
     207             : 
     208             :     virtual void SAL_CALL
     209             :         clearAccessibleSelection() throw( ::com::sun::star::uno::RuntimeException );
     210             : 
     211             :     virtual void SAL_CALL
     212             :         selectAllAccessibleChildren() throw( ::com::sun::star::uno::RuntimeException );
     213             : 
     214             :     virtual sal_Int32 SAL_CALL
     215             :         getSelectedAccessibleChildCount() throw( ::com::sun::star::uno::RuntimeException );
     216             : 
     217             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL
     218             :         getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex )
     219             :             throw( ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException );
     220             : 
     221             :     virtual void SAL_CALL
     222             :         deselectAccessibleChild( sal_Int32 nSelectedChildIndex )
     223             :             throw( ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException );
     224             : 
     225             : 
     226             : protected:
     227             :     //=====  internals ========================================================
     228             : 
     229             :     void checkChildIndex( long nIndexOfChild ) throw( ::com::sun::star::lang::IndexOutOfBoundsException );
     230             : 
     231             :     void checkChildIndexOnSelection( long nIndexOfChild ) throw( ::com::sun::star::lang::IndexOutOfBoundsException );
     232             : 
     233             :     /** Selects a new child by index.
     234             : 
     235             :         <p>If the child was not selected before, the state of the child will
     236             :         be updated. If the index is invalid, the index will internaly set to NOCHILDSELECTED</p>
     237             : 
     238             :         @param nIndexOfChild
     239             :             Index of the new child which should be selected.
     240             :     */
     241             :     void selectChild( long nIndexOfChild );
     242             : 
     243             : public:
     244             :     /** Selects a new child by point.
     245             : 
     246             :         <p>If the child was not selected before, the state of the child will
     247             :         be updated. If the point is not invalid, the index will internaly set to NOCHILDSELECTED</p>
     248             : 
     249             :         @param eButton
     250             :             Button which belongs to the child which should be selected.
     251             :     */
     252             :     void selectChild( RECT_POINT ePoint );
     253             : 
     254             : private:
     255             :     static ::com::sun::star::uno::Sequence< sal_Int8 > getUniqueId( void );
     256             : protected:
     257             : 
     258             :     /// @Return the object's current bounding box relative to the desktop.
     259             :     virtual Rectangle GetBoundingBoxOnScreen( void ) throw( ::com::sun::star::uno::RuntimeException );
     260             : 
     261             :     /// @Return the object's current bounding box relative to the parent object.
     262             :     virtual Rectangle GetBoundingBox( void ) throw( ::com::sun::star::uno::RuntimeException );
     263             : 
     264             :     virtual void SAL_CALL disposing();
     265             : 
     266             :     /// @returns true if it's disposed or in disposing
     267             :     inline bool IsAlive( void ) const;
     268             : 
     269             :     /// @returns true if it's not disposed and no in disposing
     270             :     inline bool IsNotAlive( void ) const;
     271             : 
     272             :     /// throws the exception DisposedException if it's not alive
     273             :     void ThrowExceptionIfNotAlive( void ) throw( ::com::sun::star::lang::DisposedException );
     274             : 
     275             : private:
     276             :     /** Description of this object.  This is not a constant because it can
     277             :         be set from the outside.
     278             :     */
     279             :     OUString                     msDescription;
     280             : 
     281             :     /** Name of this object.
     282             :     */
     283             :     OUString                     msName;
     284             : 
     285             :     /// Reference to the parent object.
     286             :     ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
     287             :                                         mxParent;
     288             : 
     289             :     /// pointer to internal representation
     290             :     SvxRectCtl*                         mpRepr;
     291             : 
     292             :     /// array for all possible children
     293             :     SvxRectCtlChildAccessibleContext**  mpChildren;
     294             : 
     295             :     /// client id in the AccessibleEventNotifier queue
     296             :     sal_uInt32 mnClientId;
     297             : 
     298             :     /// actual selected child
     299             :     long                                mnSelectedChild;
     300             : 
     301             :     /// mode of control (true -> 8 points, false -> 9 points)
     302             :     bool                            mbAngleMode;
     303             : };
     304             : 
     305           0 : inline bool SvxRectCtlAccessibleContext::IsAlive( void ) const
     306             : {
     307           0 :     return !rBHelper.bDisposed && !rBHelper.bInDispose;
     308             : }
     309             : 
     310           0 : inline bool SvxRectCtlAccessibleContext::IsNotAlive( void ) const
     311             : {
     312           0 :     return rBHelper.bDisposed || rBHelper.bInDispose;
     313             : }
     314             : 
     315             : 
     316             : typedef ::cppu::WeakAggComponentImplHelper6<
     317             :             ::com::sun::star::accessibility::XAccessible,
     318             :             ::com::sun::star::accessibility::XAccessibleComponent,
     319             :             ::com::sun::star::accessibility::XAccessibleContext,
     320             :             ::com::sun::star::accessibility::XAccessibleEventBroadcaster,
     321             :             ::com::sun::star::accessibility::XAccessibleValue,
     322             :             ::com::sun::star::lang::XServiceInfo >
     323             :             SvxRectCtlChildAccessibleContext_Base;
     324             : 
     325             : 
     326             : class SvxRectCtlChildAccessibleContext : public SvxRectCtlChildAccessibleContext_Base
     327             : {
     328             : public:
     329             :     SvxRectCtlChildAccessibleContext(
     330             :         const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible>& rxParent,
     331             :         const Window& rParentWindow,
     332             :         const OUString& rName, const OUString& rDescription,
     333             :         const Rectangle& rBoundingBox,
     334             :         long nIndexInParent );
     335             : protected:
     336             :     virtual ~SvxRectCtlChildAccessibleContext();
     337             : public:
     338             :     //=====  XAccessible  =====================================================
     339             : 
     340             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext> SAL_CALL
     341             :         getAccessibleContext( void ) throw( ::com::sun::star::uno::RuntimeException );
     342             : 
     343             :     //=====  XAccessibleComponent  ============================================
     344             : 
     345             :     virtual sal_Bool SAL_CALL
     346             :         containsPoint( const ::com::sun::star::awt::Point& rPoint ) throw( ::com::sun::star::uno::RuntimeException );
     347             : 
     348             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL
     349             :         getAccessibleAtPoint( const ::com::sun::star::awt::Point& rPoint ) throw( ::com::sun::star::uno::RuntimeException );
     350             : 
     351             :     virtual ::com::sun::star::awt::Rectangle SAL_CALL
     352             :         getBounds() throw( ::com::sun::star::uno::RuntimeException );
     353             : 
     354             :     virtual ::com::sun::star::awt::Point SAL_CALL
     355             :         getLocation() throw( ::com::sun::star::uno::RuntimeException );
     356             : 
     357             :     virtual ::com::sun::star::awt::Point SAL_CALL
     358             :         getLocationOnScreen() throw( ::com::sun::star::uno::RuntimeException );
     359             : 
     360             :     virtual ::com::sun::star::awt::Size SAL_CALL
     361             :         getSize() throw( ::com::sun::star::uno::RuntimeException );
     362             : 
     363             :     virtual sal_Bool SAL_CALL
     364             :         isShowing() throw( ::com::sun::star::uno::RuntimeException );
     365             : 
     366             :     virtual sal_Bool SAL_CALL
     367             :         isVisible() throw( ::com::sun::star::uno::RuntimeException );
     368             : 
     369             :     virtual sal_Bool SAL_CALL
     370             :         isFocusTraversable() throw( ::com::sun::star::uno::RuntimeException );
     371             : 
     372             :     virtual void SAL_CALL
     373             :         addFocusListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFocusListener >& xListener )
     374             :             throw( ::com::sun::star::uno::RuntimeException );
     375             : 
     376             :     virtual void SAL_CALL
     377             :         removeFocusListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFocusListener >& xListener )
     378             :             throw (::com::sun::star::uno::RuntimeException);
     379             : 
     380             :     virtual void SAL_CALL
     381             :         grabFocus() throw( ::com::sun::star::uno::RuntimeException );
     382             : 
     383             :     virtual ::com::sun::star::uno::Any SAL_CALL
     384             :         getAccessibleKeyBinding() throw( ::com::sun::star::uno::RuntimeException );
     385             :     virtual sal_Int32 SAL_CALL
     386             :         getForeground(  ) throw (::com::sun::star::uno::RuntimeException);
     387             :     virtual sal_Int32 SAL_CALL
     388             :         getBackground(  ) throw (::com::sun::star::uno::RuntimeException);
     389             : 
     390             :     //=====  XAccessibleContext  ==============================================
     391             : 
     392             :     virtual sal_Int32 SAL_CALL
     393             :         getAccessibleChildCount( void ) throw( ::com::sun::star::uno::RuntimeException );
     394             : 
     395             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL
     396             :         getAccessibleChild( sal_Int32 nIndex )
     397             :             throw( ::com::sun::star::uno::RuntimeException, ::com::sun::star::lang::IndexOutOfBoundsException );
     398             : 
     399             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL
     400             :         getAccessibleParent( void ) throw( ::com::sun::star::uno::RuntimeException );
     401             : 
     402             :     virtual sal_Int32 SAL_CALL
     403             :         getAccessibleIndexInParent( void ) throw( ::com::sun::star::uno::RuntimeException );
     404             : 
     405             :     virtual sal_Int16 SAL_CALL
     406             :         getAccessibleRole( void ) throw( ::com::sun::star::uno::RuntimeException );
     407             : 
     408             :     virtual OUString SAL_CALL
     409             :         getAccessibleDescription( void ) throw( ::com::sun::star::uno::RuntimeException );
     410             : 
     411             :     virtual OUString SAL_CALL
     412             :         getAccessibleName( void ) throw( ::com::sun::star::uno::RuntimeException );
     413             : 
     414             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleRelationSet > SAL_CALL
     415             :         getAccessibleRelationSet( void ) throw( ::com::sun::star::uno::RuntimeException );
     416             : 
     417             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet > SAL_CALL
     418             :         getAccessibleStateSet( void ) throw( ::com::sun::star::uno::RuntimeException );
     419             : 
     420             :     virtual ::com::sun::star::lang::Locale SAL_CALL
     421             :         getLocale( void )
     422             :             throw( ::com::sun::star::uno::RuntimeException, ::com::sun::star::accessibility::IllegalAccessibleComponentStateException );
     423             : 
     424             :     //=====  XAccessibleEventBroadcaster  =====================================
     425             : 
     426             :     virtual void SAL_CALL
     427             :         addAccessibleEventListener(
     428             :             const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener )
     429             :             throw( ::com::sun::star::uno::RuntimeException );
     430             : 
     431             :     virtual void SAL_CALL
     432             :         removeAccessibleEventListener(
     433             :             const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener )
     434             :             throw( com::sun::star::uno::RuntimeException );
     435             : 
     436             :     //=====  XAccessibleValue  ================================================
     437             : 
     438             :     virtual ::com::sun::star::uno::Any SAL_CALL
     439             :         getCurrentValue() throw( ::com::sun::star::uno::RuntimeException );
     440             : 
     441             :     virtual sal_Bool SAL_CALL
     442             :         setCurrentValue( const ::com::sun::star::uno::Any& aNumber ) throw( ::com::sun::star::uno::RuntimeException );
     443             : 
     444             :     virtual ::com::sun::star::uno::Any SAL_CALL
     445             :         getMaximumValue() throw( ::com::sun::star::uno::RuntimeException );
     446             : 
     447             :     virtual ::com::sun::star::uno::Any SAL_CALL
     448             :         getMinimumValue() throw( ::com::sun::star::uno::RuntimeException );
     449             : 
     450             :     //=====  XServiceInfo  ====================================================
     451             : 
     452             :     virtual OUString SAL_CALL
     453             :         getImplementationName( void ) throw( ::com::sun::star::uno::RuntimeException );
     454             : 
     455             :     virtual sal_Bool SAL_CALL
     456             :         supportsService( const OUString& sServiceName ) throw( ::com::sun::star::uno::RuntimeException );
     457             : 
     458             :     virtual ::com::sun::star::uno::Sequence< OUString> SAL_CALL
     459             :         getSupportedServiceNames( void ) throw( ::com::sun::star::uno::RuntimeException );
     460             : 
     461             : 
     462             :     //=====  XTypeProvider  ===================================================
     463             : 
     464             :     virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL
     465             :         getImplementationId( void ) throw( ::com::sun::star::uno::RuntimeException );
     466             : 
     467             :     //===== internal ==========================================================
     468             : 
     469             :     /// Sets the checked status
     470             :     void setStateChecked( bool bChecked );
     471             : 
     472             : protected:
     473             :     virtual Rectangle GetBoundingBoxOnScreen( void ) throw( ::com::sun::star::uno::RuntimeException );
     474             : 
     475             :     virtual Rectangle GetBoundingBox( void ) throw( ::com::sun::star::uno::RuntimeException );
     476             : 
     477             :     void CommitChange( const com::sun::star::accessibility::AccessibleEventObject& rEvent );
     478             : 
     479             :     virtual void SAL_CALL disposing();
     480             : 
     481             :     /// @returns true if it's disposed or in disposing
     482             :     inline bool IsAlive( void ) const;
     483             : 
     484             :     /// @returns true if it's not disposed and no in disposing
     485             :     inline bool IsNotAlive( void ) const;
     486             : 
     487             :     /// throws the exception DisposedException if it's not alive
     488             :     void ThrowExceptionIfNotAlive( void ) throw( ::com::sun::star::lang::DisposedException );
     489             : 
     490             :     /// Mutex guarding this object.
     491             :     ::osl::Mutex                        maMutex;
     492             : 
     493             : private:
     494             : 
     495             :     /** Description of this object.  This is not a constant because it can
     496             :         be set from the outside.  Furthermore, it changes according the the
     497             :         draw page's display mode.
     498             :     */
     499             :     OUString                     msDescription;
     500             : 
     501             :     /** Name of this object.  It changes according the draw page's
     502             :         display mode.
     503             :     */
     504             :     OUString                     msName;
     505             : 
     506             :     /// Reference to the parent object.
     507             :     ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
     508             :                                         mxParent;
     509             : 
     510             :     /// Bounding box
     511             :     Rectangle*                          mpBoundingBox;
     512             : 
     513             :     /// window of parent
     514             :     const Window&                       mrParentWindow;
     515             : 
     516             :     /// client id in the AccessibleEventNotifier queue
     517             :     sal_uInt32                          mnClientId;
     518             : 
     519             :     /// index of child in parent
     520             :     long                                mnIndexInParent;
     521             : 
     522             :     /// Indicates, if object is checked
     523             :     bool                            mbIsChecked;
     524             : };
     525             : 
     526           0 : inline bool SvxRectCtlChildAccessibleContext::IsAlive( void ) const
     527             : {
     528           0 :     return !rBHelper.bDisposed && !rBHelper.bInDispose;
     529             : }
     530             : 
     531           0 : inline bool SvxRectCtlChildAccessibleContext::IsNotAlive( void ) const
     532             : {
     533           0 :     return rBHelper.bDisposed || rBHelper.bInDispose;
     534             : }
     535             : 
     536             : 
     537             : #endif
     538             : 
     539             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10