LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/sc/source/ui/inc - AccessibilityHints.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 2 50.0 %
Date: 2013-07-09 Functions: 1 2 50.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 SC_ACCESSIBILITYHINTS_HXX
      21             : #define SC_ACCESSIBILITYHINTS_HXX
      22             : 
      23             : #include "viewdata.hxx"
      24             : #include <com/sun/star/uno/XInterface.hpp>
      25             : #include <svl/smplhint.hxx>
      26             : #include <svl/hint.hxx>
      27             : 
      28             : #define SC_HINT_ACC_SIMPLE_START    SFX_HINT_USER00
      29             : #define SC_HINT_ACC_TABLECHANGED    SC_HINT_ACC_SIMPLE_START + 1
      30             : #define SC_HINT_ACC_CURSORCHANGED   SC_HINT_ACC_SIMPLE_START + 2
      31             : #define SC_HINT_ACC_VISAREACHANGED  SC_HINT_ACC_SIMPLE_START + 3
      32             : #define SC_HINT_ACC_ENTEREDITMODE   SC_HINT_ACC_SIMPLE_START + 4
      33             : #define SC_HINT_ACC_LEAVEEDITMODE   SC_HINT_ACC_SIMPLE_START + 5
      34             : #define SC_HINT_ACC_MAKEDRAWLAYER   SC_HINT_ACC_SIMPLE_START + 6
      35             : #define SC_HINT_ACC_WINDOWRESIZED   SC_HINT_ACC_SIMPLE_START + 7
      36             : 
      37             : class ScAccWinFocusLostHint : public SfxHint
      38             : {
      39             :     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
      40             :                 xOldAccessible;
      41             : public:
      42             :                 TYPEINFO();
      43             :                 ScAccWinFocusLostHint(
      44             :                     const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xOld );
      45             :                 ~ScAccWinFocusLostHint();
      46             : 
      47             :     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
      48             :                 GetOldAccessible() const { return xOldAccessible; }
      49             : };
      50             : 
      51             : class ScAccWinFocusGotHint : public SfxHint
      52             : {
      53             :     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
      54             :                 xNewAccessible;
      55             : public:
      56             :                 TYPEINFO();
      57             :                 ScAccWinFocusGotHint(
      58             :                     const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xNew );
      59             :                 ~ScAccWinFocusGotHint();
      60             : 
      61             :     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
      62             :                 GetNewAccessible() const { return xNewAccessible; }
      63             : };
      64             : 
      65             : class ScAccGridWinFocusLostHint : public ScAccWinFocusLostHint
      66             : {
      67             :     ScSplitPos  eOldGridWin;
      68             : public:
      69             :                 TYPEINFO();
      70             :                 ScAccGridWinFocusLostHint( ScSplitPos eOldGridWin,
      71             :                     const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xOld );
      72             :                 ~ScAccGridWinFocusLostHint();
      73             : 
      74           2 :     ScSplitPos  GetOldGridWin() const { return eOldGridWin; }
      75             : };
      76             : 
      77             : class ScAccGridWinFocusGotHint : public ScAccWinFocusGotHint
      78             : {
      79             :     ScSplitPos  eNewGridWin;
      80             : public:
      81             :                 TYPEINFO();
      82             :                 ScAccGridWinFocusGotHint( ScSplitPos eNewGridWin,
      83             :                     const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xNew );
      84             :                 ~ScAccGridWinFocusGotHint();
      85             : 
      86           0 :     ScSplitPos  GetNewGridWin() const { return eNewGridWin; }
      87             : };
      88             : 
      89             : #endif
      90             : 
      91             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10