LCOV - code coverage report
Current view: top level - sc/source/ui/inc - AccessibleDataPilotControl.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 2 0.0 %
Date: 2012-08-25 Functions: 0 4 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : 
      30                 :            : #ifndef _SC_ACCESSIBLEDATAPILOTCONTROL_HXX
      31                 :            : #define _SC_ACCESSIBLEDATAPILOTCONTROL_HXX
      32                 :            : 
      33                 :            : #include "AccessibleContextBase.hxx"
      34                 :            : 
      35                 :            : class ScDPFieldControlBase;
      36                 :            : class ScAccessibleDataPilotButton;
      37                 :            : 
      38                 :            : class ScAccessibleDataPilotControl
      39                 :            :     :   public ScAccessibleContextBase
      40                 :            : {
      41                 :            : public:
      42                 :            :     //=====  internal  ========================================================
      43                 :            :     ScAccessibleDataPilotControl(
      44                 :            :         const ::com::sun::star::uno::Reference<
      45                 :            :         ::com::sun::star::accessibility::XAccessible>& rxParent,
      46                 :            :         ScDPFieldControlBase* pDPFieldWindow);
      47                 :            : 
      48                 :            :     virtual void Init();
      49                 :            : 
      50                 :            :     using ScAccessibleContextBase::disposing;
      51                 :            :     virtual void SAL_CALL disposing();
      52                 :            : 
      53                 :            :     void AddField(sal_Int32 nNewIndex);
      54                 :            :     void MoveField(sal_Int32 nOldIndex, sal_Int32 nNewIndex);
      55                 :            :     void RemoveField(sal_Int32 nOldIndex);
      56                 :            :     void FieldFocusChange(sal_Int32 nOldIndex, sal_Int32 nNewIndex);
      57                 :            :     void FieldNameChange(sal_Int32 nIndex);
      58                 :            :     void GotFocus();
      59                 :            :     void LostFocus();
      60                 :            : protected:
      61                 :            :     virtual ~ScAccessibleDataPilotControl(void);
      62                 :            : public:
      63                 :            :     ///=====  XAccessibleComponent  ============================================
      64                 :            : 
      65                 :            :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >
      66                 :            :         SAL_CALL getAccessibleAtPoint(
      67                 :            :         const ::com::sun::star::awt::Point& rPoint )
      68                 :            :         throw (::com::sun::star::uno::RuntimeException);
      69                 :            : 
      70                 :            :     virtual sal_Bool SAL_CALL isVisible(  )
      71                 :            :         throw (::com::sun::star::uno::RuntimeException);
      72                 :            : 
      73                 :            :     virtual void SAL_CALL grabFocus(  )
      74                 :            :         throw (::com::sun::star::uno::RuntimeException);
      75                 :            : 
      76                 :            :     virtual sal_Int32 SAL_CALL getForeground(  )
      77                 :            :         throw (::com::sun::star::uno::RuntimeException);
      78                 :            : 
      79                 :            :     virtual sal_Int32 SAL_CALL getBackground(  )
      80                 :            :         throw (::com::sun::star::uno::RuntimeException);
      81                 :            : 
      82                 :            :     ///=====  XAccessibleContext  ==============================================
      83                 :            : 
      84                 :            :     /// Return the number of currently visible children.
      85                 :            :     virtual sal_Int32 SAL_CALL
      86                 :            :         getAccessibleChildCount(void) throw (::com::sun::star::uno::RuntimeException);
      87                 :            : 
      88                 :            :     /// Return the specified child or NULL if index is invalid.
      89                 :            :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible> SAL_CALL
      90                 :            :         getAccessibleChild(sal_Int32 nIndex)
      91                 :            :         throw (::com::sun::star::uno::RuntimeException,
      92                 :            :                 ::com::sun::star::lang::IndexOutOfBoundsException);
      93                 :            : 
      94                 :            :     /// Return the set of current states.
      95                 :            :     virtual ::com::sun::star::uno::Reference<
      96                 :            :             ::com::sun::star::accessibility::XAccessibleStateSet> SAL_CALL
      97                 :            :         getAccessibleStateSet(void)
      98                 :            :         throw (::com::sun::star::uno::RuntimeException);
      99                 :            : 
     100                 :            :     ///=====  XServiceInfo  ====================================================
     101                 :            : 
     102                 :            :     /** Returns an identifier for the implementation of this object.
     103                 :            :     */
     104                 :            :     virtual ::rtl::OUString SAL_CALL
     105                 :            :         getImplementationName(void)
     106                 :            :         throw (::com::sun::star::uno::RuntimeException);
     107                 :            : 
     108                 :            :     ///=====  XTypeProvider  ===================================================
     109                 :            : 
     110                 :            :     /** Returns a implementation id.
     111                 :            :     */
     112                 :            :     virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL
     113                 :            :         getImplementationId(void)
     114                 :            :         throw (::com::sun::star::uno::RuntimeException);
     115                 :            : 
     116                 :            : protected:
     117                 :            :     /// Return this object's description.
     118                 :            :     virtual ::rtl::OUString SAL_CALL
     119                 :            :         createAccessibleDescription(void)
     120                 :            :         throw (::com::sun::star::uno::RuntimeException);
     121                 :            : 
     122                 :            :     /// Return the object's current name.
     123                 :            :     virtual ::rtl::OUString SAL_CALL
     124                 :            :         createAccessibleName(void)
     125                 :            :         throw (::com::sun::star::uno::RuntimeException);
     126                 :            : 
     127                 :            :     /// Return the object's current bounding box relative to the desktop.
     128                 :            :     virtual Rectangle GetBoundingBoxOnScreen(void) const
     129                 :            :         throw (::com::sun::star::uno::RuntimeException);
     130                 :            : 
     131                 :            :     /// Return the object's current bounding box relative to the parent object.
     132                 :            :     virtual Rectangle GetBoundingBox(void) const
     133                 :            :         throw (::com::sun::star::uno::RuntimeException);
     134                 :            : 
     135                 :            : private:
     136                 :            :     ScDPFieldControlBase* mpDPFieldWindow;
     137                 :          0 :     struct AccessibleWeak
     138                 :            :     {
     139                 :            :         ::com::sun::star::uno::WeakReference< ::com::sun::star::accessibility::XAccessible > xWeakAcc;
     140                 :            :         ScAccessibleDataPilotButton* pAcc;
     141                 :          0 :         AccessibleWeak() : pAcc(NULL) {}
     142                 :            :     };
     143                 :            :     ::std::vector< AccessibleWeak > maChildren;
     144                 :            : };
     145                 :            : 
     146                 :            : 
     147                 :            : #endif
     148                 :            : 
     149                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10