LCOV - code coverage report
Current view: top level - accessibility/inc/accessibility/extended - accessibletabbarpage.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 1 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 1 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             : #ifndef INCLUDED_ACCESSIBILITY_INC_ACCESSIBILITY_EXTENDED_ACCESSIBLETABBARPAGE_HXX
      21             : #define INCLUDED_ACCESSIBILITY_INC_ACCESSIBILITY_EXTENDED_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             :         bool                m_bEnabled;
      55             :         bool                m_bShowing;
      56             :         bool                m_bSelected;
      57             :         OUString                m_sPageText;
      58             : 
      59             :         ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >        m_xParent;
      60             : 
      61             :     protected:
      62             :         bool                IsEnabled();
      63             :         bool                IsShowing();
      64             :         bool                IsSelected();
      65             : 
      66             :         void                    SetEnabled( bool bEnabled );
      67             :         void                    SetShowing( bool bShowing );
      68             :         void                    SetSelected( bool bSelected );
      69             :         void                    SetPageText( const OUString& sPageText );
      70             : 
      71           0 :         sal_uInt16              GetPageId() const { return m_nPageId; }
      72             : 
      73             :         void            FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet );
      74             : 
      75             :         // OCommonAccessibleComponent
      76             :         virtual ::com::sun::star::awt::Rectangle implGetBounds(  ) throw (::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
      77             : 
      78             :         // XComponent
      79             :         virtual void SAL_CALL   disposing() SAL_OVERRIDE;
      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 OUString SAL_CALL getImplementationName() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      94             :         virtual sal_Bool SAL_CALL supportsService( const OUString& rServiceName ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      95             :         virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      96             : 
      97             :         // XAccessible
      98             :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      99             : 
     100             :         // XAccessibleContext
     101             :         virtual sal_Int32 SAL_CALL getAccessibleChildCount(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     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, std::exception) SAL_OVERRIDE;
     103             :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleParent(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     104             :         virtual sal_Int32 SAL_CALL getAccessibleIndexInParent(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     105             :         virtual sal_Int16 SAL_CALL getAccessibleRole(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     106             :         virtual OUString SAL_CALL getAccessibleDescription(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     107             :         virtual OUString SAL_CALL getAccessibleName(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     108             :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     109             :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleStateSet > SAL_CALL getAccessibleStateSet(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     110             :         virtual ::com::sun::star::lang::Locale SAL_CALL getLocale(  ) throw (::com::sun::star::accessibility::IllegalAccessibleComponentStateException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     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, std::exception) SAL_OVERRIDE;
     114             :         virtual void SAL_CALL grabFocus(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     115             :         virtual sal_Int32 SAL_CALL getForeground(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     116             :         virtual sal_Int32 SAL_CALL getBackground(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     117             : 
     118             :         // XAccessibleExtendedComponent
     119             :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XFont > SAL_CALL getFont(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     120             :         virtual OUString SAL_CALL getTitledBorderText(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     121             :         virtual OUString SAL_CALL getToolTipText(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     122             :     };
     123             : 
     124             : 
     125             : }   // namespace accessibility
     126             : 
     127             : 
     128             : #endif // INCLUDED_ACCESSIBILITY_INC_ACCESSIBILITY_EXTENDED_ACCESSIBLETABBARPAGE_HXX
     129             : 
     130             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11