LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/sw/source/ui/inc - FrameControl.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 5 5 100.0 %
Date: 2013-07-09 Functions: 4 5 80.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             :  */
      12             : #ifndef _FRAMECONTROL_HXX
      13             : #define _FRAMECONTROL_HXX
      14             : 
      15             : class SwEditWin;
      16             : class SwFrm;
      17             : class Point;
      18             : 
      19             : /** Class representing a control linked to a SwFrm.
      20             :   */
      21             : class SwFrameControl
      22             : {
      23             :     SwEditWin*            m_pEditWin;
      24             :     const SwFrm*          m_pFrm;
      25             : 
      26             : public:
      27          29 :     SwFrameControl( SwEditWin* pEditWin, const SwFrm* pFrm ) :
      28          29 :         m_pEditWin( pEditWin ), m_pFrm( pFrm ) {};
      29          29 :     virtual ~SwFrameControl( ) {};
      30             : 
      31             :     SwFrameControl( const SwFrameControl& rCopy ) :
      32             :         m_pEditWin( rCopy.m_pEditWin ),
      33             :         m_pFrm( rCopy.m_pFrm )
      34             :     {
      35             :     }
      36             : 
      37             :     const SwFrameControl& operator=( const SwFrameControl& rCopy )
      38             :     {
      39             :         m_pEditWin = rCopy.m_pEditWin;
      40             :         m_pFrm = rCopy.m_pFrm;
      41             :         return *this;
      42             :     }
      43             : 
      44          48 :     const SwFrm* GetFrame( ) { return m_pFrm; }
      45         315 :     SwEditWin*   GetEditWin( ) { return m_pEditWin; }
      46             : 
      47             :     virtual void SetReadonly( bool bReadonly ) = 0;
      48             :     virtual void ShowAll( bool bShow ) = 0;
      49             : 
      50             :     /// Returns true if the point is inside the control.
      51             :     virtual bool Contains( const Point &rDocPt ) const = 0;
      52             : };
      53             : 
      54             : #endif
      55             : 
      56             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10