LCOV - code coverage report
Current view: top level - sw/source/core/inc - frminf.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 4 0.0 %
Date: 2014-11-03 Functions: 0 3 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             : 
      20             : #ifndef INCLUDED_SW_SOURCE_CORE_INC_FRMINF_HXX
      21             : #define INCLUDED_SW_SOURCE_CORE_INC_FRMINF_HXX
      22             : 
      23             : #include "swtypes.hxx"
      24             : 
      25             : class SwTxtFrm;
      26             : class SwPaM;
      27             : class SwTxtCursor;
      28             : 
      29             : class SwTxtFrmInfo
      30             : {
      31             :     const SwTxtFrm *pFrm;
      32             : 
      33             :     // Where does the text (w/o whitespaces) start (document is global!)?
      34             :     SwTwips GetLineStart( const SwTxtCursor &rLine ) const;
      35             : 
      36             : public:
      37           0 :     inline SwTxtFrmInfo( const SwTxtFrm *pTxtFrm ) : pFrm(pTxtFrm) { }
      38             : 
      39             :     // Does the paragraph fit into a single line?
      40             :     bool IsOneLine() const;
      41             : 
      42             :     // Is the line filled to X%?
      43             :     bool IsFilled( const sal_uInt8 nPercent ) const;
      44             : 
      45             :     // Where does the text (w/o whitespaces) start (rel. in frame)?
      46             :     SwTwips GetLineStart() const;
      47             : 
      48             :     // return center position of the next character
      49             :     SwTwips GetCharPos( sal_Int32 nChar, bool bCenter = true ) const;
      50             : 
      51             :     // collect all whitespaces at the beginning and end of a line in Pam
      52             :     void GetSpaces( SwPaM &rPam, bool bWithLineBreak ) const;
      53             : 
      54             :     // Is a bullet point/symbol/etc. at the first text position?
      55             :     bool IsBullet( sal_Int32 nTxtPos ) const;
      56             : 
      57             :     // determine intentation for first line
      58             :     SwTwips GetFirstIndent() const;
      59             : 
      60           0 :     const SwTxtFrm* GetFrm() const { return pFrm; }
      61           0 :     SwTxtFrmInfo& SetFrm( const SwTxtFrm* pNew )
      62           0 :         { pFrm = pNew; return *this; }
      63             : 
      64             :     // Is it a comparison? Returns position in frame.
      65             :     sal_Int32 GetBigIndent( sal_Int32& rFndPos,
      66             :                         const SwTxtFrm *pNextFrm = 0 ) const;
      67             : };
      68             : 
      69             : #endif
      70             : 
      71             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10