LCOV - code coverage report
Current view: top level - libreoffice/accessibility/inc/accessibility/standard - vclxaccessiblestatusbaritem.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-12-27 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 ACCESSIBILITY_STANDARD_VCLXACCESSIBLESTATUSBARITEM_HXX
      21             : #define ACCESSIBILITY_STANDARD_VCLXACCESSIBLESTATUSBARITEM_HXX
      22             : 
      23             : #include <com/sun/star/accessibility/XAccessible.hpp>
      24             : #include <com/sun/star/lang/XServiceInfo.hpp>
      25             : #include <comphelper/accessibletexthelper.hxx>
      26             : #include <cppuhelper/implbase2.hxx>
      27             : 
      28             : 
      29             : class StatusBar;
      30             : class VCLExternalSolarLock;
      31             : 
      32             : namespace utl {
      33             : class AccessibleStateSetHelper;
      34             : }
      35             : 
      36             : 
      37             : //  ----------------------------------------------------
      38             : //  class VCLXAccessibleStatusBarItem
      39             : //  ----------------------------------------------------
      40             : 
      41             : typedef ::comphelper::OAccessibleTextHelper AccessibleTextHelper_BASE;
      42             : 
      43             : typedef ::cppu::ImplHelper2<
      44             :     ::com::sun::star::accessibility::XAccessible,
      45             :     ::com::sun::star::lang::XServiceInfo > VCLXAccessibleStatusBarItem_BASE;
      46             : 
      47             : class VCLXAccessibleStatusBarItem : public AccessibleTextHelper_BASE,
      48             :                                     public VCLXAccessibleStatusBarItem_BASE
      49             : {
      50             :     friend class VCLXAccessibleStatusBar;
      51             : 
      52             : private:
      53             :     VCLExternalSolarLock*   m_pExternalLock;
      54             :     StatusBar*              m_pStatusBar;
      55             :     sal_uInt16              m_nItemId;
      56             :     OUString                m_sItemName;
      57             :     OUString                m_sItemText;
      58             :     sal_Bool                m_bShowing;
      59             : 
      60             : protected:
      61             :     sal_Bool                IsShowing();
      62             :     void                    SetShowing( sal_Bool bShowing );
      63             :     void                    SetItemName( const OUString& sItemName );
      64             :     OUString                GetItemName();
      65             :     void                    SetItemText( const OUString& sItemText );
      66             :     OUString                GetItemText();
      67           0 :     sal_uInt16              GetItemId() const { return m_nItemId; }
      68             : 
      69             :     virtual void            FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet );
      70             : 
      71             :     // OCommonAccessibleComponent
      72             :     virtual ::com::sun::star::awt::Rectangle SAL_CALL   implGetBounds(  ) throw (::com::sun::star::uno::RuntimeException);
      73             : 
      74             :     // OCommonAccessibleText
      75             :     virtual OUString                        implGetText();
      76             :     virtual ::com::sun::star::lang::Locale  implGetLocale();
      77             :     virtual void                            implGetSelection( sal_Int32& nStartIndex, sal_Int32& nEndIndex );
      78             : 
      79             :     // XComponent
      80             :     virtual void SAL_CALL   disposing();
      81             : 
      82             : public:
      83             :     VCLXAccessibleStatusBarItem( StatusBar* pStatusBar, sal_uInt16 nItemId );
      84             :     virtual ~VCLXAccessibleStatusBarItem();
      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);
      94             :     virtual sal_Bool SAL_CALL supportsService( const OUString& rServiceName ) throw (::com::sun::star::uno::RuntimeException);
      95             :     virtual ::com::sun::star::uno::Sequence< 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 OUString SAL_CALL getAccessibleDescription(  ) throw (::com::sun::star::uno::RuntimeException);
     107             :     virtual 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 OUString SAL_CALL getTitledBorderText(  ) throw (::com::sun::star::uno::RuntimeException);
     121             :     virtual OUString SAL_CALL getToolTipText(  ) throw (::com::sun::star::uno::RuntimeException);
     122             : 
     123             :     // XAccessibleText
     124             :     virtual sal_Int32 SAL_CALL getCaretPosition() throw (::com::sun::star::uno::RuntimeException);
     125             :     virtual sal_Bool SAL_CALL setCaretPosition( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
     126             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getCharacterAttributes( sal_Int32 nIndex, const ::com::sun::star::uno::Sequence< OUString >& aRequestedAttributes ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
     127             :     virtual ::com::sun::star::awt::Rectangle SAL_CALL getCharacterBounds( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
     128             :     virtual sal_Int32 SAL_CALL getIndexAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException);
     129             :     virtual sal_Bool SAL_CALL setSelection( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
     130             :     virtual sal_Bool SAL_CALL copyText( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
     131             : };
     132             : 
     133             : #endif // ACCESSIBILITY_STANDARD_VCLXACCESSIBLESTATUSBARITEM_HXX
     134             : 
     135             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10