LCOV - code coverage report
Current view: top level - sw/source/core/access - accfrmobj.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 4 4 100.0 %
Date: 2015-06-13 12:38:46 Functions: 4 4 100.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_SW_SOURCE_CORE_ACCESS_ACCFRMOBJ_HXX
      21             : #define INCLUDED_SW_SOURCE_CORE_ACCESS_ACCFRMOBJ_HXX
      22             : 
      23             : #include <vcl/vclptr.hxx>
      24             : 
      25             : class SwAccessibleMap;
      26             : class SwFrm;
      27             : class SdrObject;
      28             : namespace vcl { class Window; }
      29             : class SwRect;
      30             : 
      31             : namespace sw { namespace access {
      32             : 
      33       11859 : class SwAccessibleChild
      34             : {
      35             :     public:
      36             :         SwAccessibleChild();
      37             :         explicit SwAccessibleChild( const SdrObject* pDrawObj );
      38             :         explicit SwAccessibleChild( const SwFrm* pFrm );
      39             :         explicit SwAccessibleChild( vcl::Window* pWindow );
      40             :         SwAccessibleChild( const SwFrm* pFrm,
      41             :                            const SdrObject* pDrawObj,
      42             :                            vcl::Window* pWindow );
      43             : 
      44             :         SwAccessibleChild( const SwAccessibleChild& r );
      45             :         SwAccessibleChild& operator=( const SwAccessibleChild& r );
      46             : 
      47             :         SwAccessibleChild& operator=( const SdrObject* pDrawObj );
      48             :         SwAccessibleChild& operator=( const SwFrm* pFrm );
      49             :         SwAccessibleChild& operator=( vcl::Window* pWindow );
      50             : 
      51             :         bool operator==( const SwAccessibleChild& r ) const;
      52             : 
      53             :         bool IsValid() const;
      54             : 
      55       19137 :         const SwFrm* GetSwFrm() const { return mpFrm; }
      56         874 :         const SdrObject* GetDrawObject() const { return mpDrawObj; }
      57         858 :         vcl::Window* GetWindow() const { return mpWindow; }
      58             : 
      59             :         const SwFrm* GetParent( const bool bInPagePreview ) const;
      60             : 
      61             :         bool IsAccessible( bool bPagePreview ) const;
      62             :         bool IsBoundAsChar() const;
      63             : 
      64             :         bool IsVisibleChildrenOnly() const;
      65             :         SwRect GetBox( const SwAccessibleMap& rAccMap ) const;
      66             :         SwRect GetBounds( const SwAccessibleMap& rAccMap ) const;
      67             : 
      68             :         /** indicating, if accessible child is included even, if the corresponding
      69             :             object is not visible. */
      70             :         bool AlwaysIncludeAsChild() const;
      71             : 
      72             :     private:
      73             :         const SwFrm* mpFrm;
      74             :         const SdrObject* mpDrawObj;
      75             :         VclPtr<vcl::Window> mpWindow;
      76             : 
      77             :         void Init( const SdrObject* pDrawObj );
      78             :         void Init( const SwFrm* pFrm );
      79             :         void Init( vcl::Window* pWindow );
      80             : };
      81             : 
      82             : } } // eof of namespace sw::access
      83             : 
      84             : #endif
      85             : 
      86             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11