LCOV - code coverage report
Current view: top level - sc/source/ui/inc - AccessibilityHints.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 1 2 50.0 %
Date: 2014-11-03 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 INCLUDED_SC_SOURCE_UI_INC_ACCESSIBILITYHINTS_HXX
      21             : #define INCLUDED_SC_SOURCE_UI_INC_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             :                 ScAccWinFocusLostHint(
      43             :                     const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xOld );
      44             :                 virtual ~ScAccWinFocusLostHint();
      45             : 
      46             :     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
      47             :                 GetOldAccessible() const { return xOldAccessible; }
      48             : };
      49             : 
      50             : class ScAccWinFocusGotHint : public SfxHint
      51             : {
      52             :     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
      53             :                 xNewAccessible;
      54             : public:
      55             :                 ScAccWinFocusGotHint(
      56             :                     const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xNew );
      57             :                 virtual ~ScAccWinFocusGotHint();
      58             : 
      59             :     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
      60             :                 GetNewAccessible() const { return xNewAccessible; }
      61             : };
      62             : 
      63             : class ScAccGridWinFocusLostHint : public ScAccWinFocusLostHint
      64             : {
      65             :     ScSplitPos  eOldGridWin;
      66             : public:
      67             :                 ScAccGridWinFocusLostHint( ScSplitPos eOldGridWin,
      68             :                     const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xOld );
      69             :                 virtual ~ScAccGridWinFocusLostHint();
      70             : 
      71           4 :     ScSplitPos  GetOldGridWin() const { return eOldGridWin; }
      72             : };
      73             : 
      74             : class ScAccGridWinFocusGotHint : public ScAccWinFocusGotHint
      75             : {
      76             :     ScSplitPos  eNewGridWin;
      77             : public:
      78             :                 ScAccGridWinFocusGotHint( ScSplitPos eNewGridWin,
      79             :                     const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xNew );
      80             :                 virtual ~ScAccGridWinFocusGotHint();
      81             : 
      82           0 :     ScSplitPos  GetNewGridWin() const { return eNewGridWin; }
      83             : };
      84             : 
      85             : #endif
      86             : 
      87             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10