LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/sw/source/core/text - itrpaint.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 7 10 70.0 %
Date: 2013-07-09 Functions: 5 8 62.5 %
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             : #ifndef _ITRPAINT_HXX
      20             : #define _ITRPAINT_HXX
      21             : #include "itrtxt.hxx"
      22             : 
      23             : class SwSaveClip;          // SwTxtPainter
      24             : class SwMultiPortion;
      25             : 
      26             : /*************************************************************************
      27             :  *                      class SwTxtPainter
      28             :  *************************************************************************/
      29             : 
      30       14294 : class SwTxtPainter : public SwTxtCursor
      31             : {
      32             :     sal_Bool bPaintDrop;
      33             : 
      34             :     SwLinePortion *CalcPaintOfst( const SwRect &rPaint );
      35             :     void CheckSpecialUnderline( const SwLinePortion* pPor,
      36             :                                 long nAdjustBaseLine = 0 );
      37             : protected:
      38             :     void CtorInitTxtPainter( SwTxtFrm *pFrm, SwTxtPaintInfo *pInf );
      39        7758 :     inline SwTxtPainter(SwTxtNode* pTxtNode) : SwTxtCursor(pTxtNode) { }
      40             : 
      41             : public:
      42        6536 :     inline SwTxtPainter( SwTxtFrm *pTxtFrm, SwTxtPaintInfo *pTxtPaintInf ) : SwTxtCursor(pTxtFrm!=NULL?pTxtFrm->GetTxtNode():NULL)
      43        6536 :            { CtorInitTxtPainter( pTxtFrm, pTxtPaintInf ); }
      44             :     void DrawTextLine( const SwRect &rPaint, SwSaveClip &rClip,
      45             :                        const sal_Bool bUnderSz );
      46             :     void PaintDropPortion();
      47             :     // if PaintMultiPortion is called recursively, we have to pass the
      48             :     // surrounding SwBidiPortion
      49             :     void PaintMultiPortion( const SwRect &rPaint, SwMultiPortion& rMulti,
      50             :                             const SwMultiPortion* pEnvPor = 0 );
      51           0 :     inline void SetPaintDrop( const sal_Bool bNew ) { bPaintDrop = bNew; }
      52        6485 :     inline sal_Bool IsPaintDrop() const { return bPaintDrop; }
      53      544232 :     inline SwTxtPaintInfo &GetInfo()
      54      544232 :         { return (SwTxtPaintInfo&)SwTxtIter::GetInfo(); }
      55           0 :     inline const SwTxtPaintInfo &GetInfo() const
      56           0 :         { return (const SwTxtPaintInfo&)SwTxtIter::GetInfo(); }
      57             : };
      58             : 
      59             : 
      60             : 
      61             : #endif
      62             : 
      63             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10