LCOV - code coverage report
Current view: top level - sc/source/ui/inc - AccessibilityHints.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 2 0.0 %
Date: 2014-04-14 Functions: 0 2 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 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_OVERRIDE();
      43             :                 ScAccWinFocusLostHint(
      44             :                     const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xOld );
      45             :                 virtual ~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_OVERRIDE();
      57             :                 ScAccWinFocusGotHint(
      58             :                     const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xNew );
      59             :                 virtual ~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_OVERRIDE();
      70             :                 ScAccGridWinFocusLostHint( ScSplitPos eOldGridWin,
      71             :                     const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xOld );
      72             :                 virtual ~ScAccGridWinFocusLostHint();
      73             : 
      74           0 :     ScSplitPos  GetOldGridWin() const { return eOldGridWin; }
      75             : };
      76             : 
      77             : class ScAccGridWinFocusGotHint : public ScAccWinFocusGotHint
      78             : {
      79             :     ScSplitPos  eNewGridWin;
      80             : public:
      81             :                 TYPEINFO_OVERRIDE();
      82             :                 ScAccGridWinFocusGotHint( ScSplitPos eNewGridWin,
      83             :                     const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xNew );
      84             :                 virtual ~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