LCOV - code coverage report
Current view: top level - sw/source/core/text - itrpaint.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 12 14 85.7 %
Date: 2014-11-03 Functions: 6 8 75.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             : #ifndef INCLUDED_SW_SOURCE_CORE_TEXT_ITRPAINT_HXX
      20             : #define INCLUDED_SW_SOURCE_CORE_TEXT_ITRPAINT_HXX
      21             : #include "itrtxt.hxx"
      22             : 
      23             : class SwSaveClip;          // SwTxtPainter
      24             : class SwMultiPortion;
      25             : 
      26      119602 : class SwTxtPainter : public SwTxtCursor
      27             : {
      28             :     bool bPaintDrop;
      29             : 
      30             :     SwLinePortion *CalcPaintOfst( const SwRect &rPaint );
      31             :     void CheckSpecialUnderline( const SwLinePortion* pPor,
      32             :                                 long nAdjustBaseLine = 0 );
      33             : protected:
      34             :     void CtorInitTxtPainter( SwTxtFrm *pFrm, SwTxtPaintInfo *pInf );
      35       97770 :     SwTxtPainter(SwTxtNode* pTxtNode)
      36             :         : SwTxtCursor(pTxtNode)
      37       97770 :         , bPaintDrop(false)
      38             :     {
      39       97770 :     }
      40             : 
      41             : public:
      42       21832 :     SwTxtPainter(SwTxtFrm *pTxtFrm, SwTxtPaintInfo *pTxtPaintInf)
      43       21832 :         : SwTxtCursor(pTxtFrm->GetTxtNode())
      44             :     {
      45       21832 :         CtorInitTxtPainter( pTxtFrm, pTxtPaintInf );
      46       21832 :     }
      47             :     void DrawTextLine( const SwRect &rPaint, SwSaveClip &rClip,
      48             :                        const bool bUnderSz );
      49             :     void PaintDropPortion();
      50             :     // if PaintMultiPortion is called recursively, we have to pass the
      51             :     // surrounding SwBidiPortion
      52             :     void PaintMultiPortion( const SwRect &rPaint, SwMultiPortion& rMulti,
      53             :                             const SwMultiPortion* pEnvPor = 0 );
      54          24 :     inline void SetPaintDrop( const bool bNew ) { bPaintDrop = bNew; }
      55       19954 :     inline bool IsPaintDrop() const { return bPaintDrop; }
      56     1911441 :     inline SwTxtPaintInfo &GetInfo()
      57     1911441 :         { return (SwTxtPaintInfo&)SwTxtIter::GetInfo(); }
      58           0 :     inline const SwTxtPaintInfo &GetInfo() const
      59           0 :         { return (const SwTxtPaintInfo&)SwTxtIter::GetInfo(); }
      60             : };
      61             : 
      62             : bool IsUnderlineBreak( const SwLinePortion& rPor, const SwFont& rFnt );
      63             : 
      64             : #endif
      65             : 
      66             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10