LCOV - code coverage report
Current view: top level - accessibility/inc/accessibility/extended - accessibletabbarpage.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-08-25 Functions: 0 1 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                 :            :  * 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                 :            : #ifndef ACCESSIBILITY_EXT_ACCESSIBLETABBARPAGE_HXX_
      21                 :            : #define ACCESSIBILITY_EXT_ACCESSIBLETABBARPAGE_HXX_
      22                 :            : 
      23                 :            : #include <com/sun/star/accessibility/XAccessible.hpp>
      24                 :            : #include <com/sun/star/lang/XServiceInfo.hpp>
      25                 :            : #include <cppuhelper/implbase2.hxx>
      26                 :            : #include "accessibility/extended/accessibletabbarbase.hxx"
      27                 :            : 
      28                 :            : #include <vector>
      29                 :            : 
      30                 :            : namespace utl {
      31                 :            : class AccessibleStateSetHelper;
      32                 :            : }
      33                 :            : 
      34                 :            : //.........................................................................
      35                 :            : namespace accessibility
      36                 :            : {
      37                 :            : //.........................................................................
      38                 :            : 
      39                 :            :     //  ----------------------------------------------------
      40                 :            :     //  class AccessibleTabBarPage
      41                 :            :     //  ----------------------------------------------------
      42                 :            : 
      43                 :            :     typedef ::cppu::ImplHelper2<
      44                 :            :         ::com::sun::star::accessibility::XAccessible,
      45                 :            :         ::com::sun::star::lang::XServiceInfo > AccessibleTabBarPage_BASE;
      46                 :            : 
      47                 :            :     class AccessibleTabBarPage :    public AccessibleTabBarBase,
      48                 :            :                                     public AccessibleTabBarPage_BASE
      49                 :            :     {
      50                 :            :         friend class AccessibleTabBarPageList;
      51                 :            : 
      52                 :            :     private:
      53                 :            :         sal_uInt16              m_nPageId;
      54                 :            :         sal_Bool                m_bEnabled;
      55                 :            :         sal_Bool                m_bShowing;
      56                 :            :         sal_Bool                m_bSelected;
      57                 :            :         ::rtl::OUString         m_sPageText;
      58                 :            : 
      59                 :            :         ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >        m_xParent;
      60                 :            : 
      61                 :            :     protected:
      62                 :            :         sal_Bool                IsEnabled();
      63                 :            :         sal_Bool                IsShowing();
      64                 :            :         sal_Bool                IsSelected();
      65                 :            : 
      66                 :            :         void                    SetEnabled( sal_Bool bEnabled );
      67                 :            :         void                    SetShowing( sal_Bool bShowing );
      68                 :            :         void                    SetSelected( sal_Bool bSelected );
      69                 :            :         void                    SetPageText( const ::rtl::OUString& sPageText );
      70                 :            : 
      71                 :          0 :         sal_uInt16              GetPageId() const { return m_nPageId; }
      72                 :            : 
      73                 :            :         virtual void            FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet );
      74                 :            : 
      75                 :            :         // OCommonAccessibleComponent
      76                 :            :         virtual ::com::sun::star::awt::Rectangle SAL_CALL   implGetBounds(  ) throw (::com::sun::star::uno::RuntimeException);
      77                 :            : 
      78                 :            :         // XComponent
      79                 :            :         virtual void SAL_CALL   disposing();
      80                 :            : 
      81                 :            :     public:
      82                 :            :         AccessibleTabBarPage( TabBar* pTabBar, sal_uInt16 nPageId,
      83                 :            :                               const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& rxParent );
      84                 :            :         virtual ~AccessibleTabBarPage();
      85                 :            : 
      86                 :            :         // XInterface
      87                 :            :         DECLARE_XINTERFACE()
      88                 :            : 
      89                 :            :         // XTypeProvider
      90                 :            :         DECLARE_XTYPEPROVIDER()
      91                 :            : 
      92                 :            :         // XServiceInfo
      93                 :            :         virtual ::rtl::OUString SAL_CALL getImplementationName() throw (::com::sun::star::uno::RuntimeException);
      94                 :            :         virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& rServiceName ) throw (::com::sun::star::uno::RuntimeException);
      95                 :            :         virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw (::com::sun::star::uno::RuntimeException);
      96                 :            : 
      97                 :            :         // XAccessible
      98                 :            :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext(  ) throw (::com::sun::star::uno::RuntimeException);
      99                 :            : 
     100                 :            :         // XAccessibleContext
     101                 :            :         virtual sal_Int32 SAL_CALL getAccessibleChildCount(  ) throw (::com::sun::star::uno::RuntimeException);
     102                 :            :         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);
     103                 :            :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleParent(  ) throw (::com::sun::star::uno::RuntimeException);
     104                 :            :         virtual sal_Int32 SAL_CALL getAccessibleIndexInParent(  ) throw (::com::sun::star::uno::RuntimeException);
     105                 :            :         virtual sal_Int16 SAL_CALL getAccessibleRole(  ) throw (::com::sun::star::uno::RuntimeException);
     106                 :            :         virtual ::rtl::OUString SAL_CALL getAccessibleDescription(  ) throw (::com::sun::star::uno::RuntimeException);
     107                 :            :         virtual ::rtl::OUString SAL_CALL getAccessibleName(  ) throw (::com::sun::star::uno::RuntimeException);
     108                 :            :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet(  ) throw (::com::sun::star::uno::RuntimeException);
     109                 :            :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet(  ) throw (::com::sun::star::uno::RuntimeException);
     110                 :            :         virtual ::com::sun::star::lang::Locale SAL_CALL getLocale(  ) throw (::com::sun::star::accessibility::IllegalAccessibleComponentStateException, ::com::sun::star::uno::RuntimeException);
     111                 :            : 
     112                 :            :         // XAccessibleComponent
     113                 :            :         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);
     114                 :            :         virtual void SAL_CALL grabFocus(  ) throw (::com::sun::star::uno::RuntimeException);
     115                 :            :         virtual sal_Int32 SAL_CALL getForeground(  ) throw (::com::sun::star::uno::RuntimeException);
     116                 :            :         virtual sal_Int32 SAL_CALL getBackground(  ) throw (::com::sun::star::uno::RuntimeException);
     117                 :            : 
     118                 :            :         // XAccessibleExtendedComponent
     119                 :            :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFont > SAL_CALL getFont(  ) throw (::com::sun::star::uno::RuntimeException);
     120                 :            :         virtual ::rtl::OUString SAL_CALL getTitledBorderText(  ) throw (::com::sun::star::uno::RuntimeException);
     121                 :            :         virtual ::rtl::OUString SAL_CALL getToolTipText(  ) throw (::com::sun::star::uno::RuntimeException);
     122                 :            :     };
     123                 :            : 
     124                 :            : //.........................................................................
     125                 :            : }   // namespace accessibility
     126                 :            : //.........................................................................
     127                 :            : 
     128                 :            : #endif // ACCESSIBILITY_EXT_ACCESSIBLETABBARPAGE_HXX_
     129                 :            : 
     130                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10