LCOV - code coverage report
Current view: top level - sw/source/core/text - itrpaint.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 14 0.0 %
Date: 2014-04-14 Functions: 0 8 0.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             : /*************************************************************************
      27             :  *                      class SwTxtPainter
      28             :  *************************************************************************/
      29             : 
      30           0 : class SwTxtPainter : public SwTxtCursor
      31             : {
      32             :     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           0 :     SwTxtPainter(SwTxtNode* pTxtNode)
      40             :         : SwTxtCursor(pTxtNode)
      41           0 :         , bPaintDrop(false)
      42             :     {
      43           0 :     }
      44             : 
      45             : public:
      46           0 :     SwTxtPainter(SwTxtFrm *pTxtFrm, SwTxtPaintInfo *pTxtPaintInf)
      47           0 :         : SwTxtCursor(pTxtFrm->GetTxtNode())
      48             :     {
      49           0 :         CtorInitTxtPainter( pTxtFrm, pTxtPaintInf );
      50           0 :     }
      51             :     void DrawTextLine( const SwRect &rPaint, SwSaveClip &rClip,
      52             :                        const bool bUnderSz );
      53             :     void PaintDropPortion();
      54             :     // if PaintMultiPortion is called recursively, we have to pass the
      55             :     // surrounding SwBidiPortion
      56             :     void PaintMultiPortion( const SwRect &rPaint, SwMultiPortion& rMulti,
      57             :                             const SwMultiPortion* pEnvPor = 0 );
      58           0 :     inline void SetPaintDrop( const bool bNew ) { bPaintDrop = bNew; }
      59           0 :     inline bool IsPaintDrop() const { return bPaintDrop; }
      60           0 :     inline SwTxtPaintInfo &GetInfo()
      61           0 :         { return (SwTxtPaintInfo&)SwTxtIter::GetInfo(); }
      62           0 :     inline const SwTxtPaintInfo &GetInfo() const
      63           0 :         { return (const SwTxtPaintInfo&)SwTxtIter::GetInfo(); }
      64             : };
      65             : 
      66             : bool IsUnderlineBreak( const SwLinePortion& rPor, const SwFont& rFnt );
      67             : 
      68             : #endif
      69             : 
      70             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10