LCOV - code coverage report
Current view: top level - sw/source/core/inc - rowfrm.hxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 11 16 68.8 %
Date: 2014-04-11 Functions: 12 17 70.6 %
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_INC_ROWFRM_HXX
      20             : #define INCLUDED_SW_SOURCE_CORE_INC_ROWFRM_HXX
      21             : 
      22             : #include <tools/mempool.hxx>
      23             : 
      24             : #include "layfrm.hxx"
      25             : 
      26             : class SwTableLine;
      27             : class SwBorderAttrs;
      28             : 
      29             : /// SwRowFrm is one table row in the document layout.
      30             : class SwRowFrm: public SwLayoutFrm
      31             : {
      32             :     virtual void Format( const SwBorderAttrs *pAttrs = 0 ) SAL_OVERRIDE;
      33             :         //Aendern nur die Framesize, nicht die PrtArea-SSize
      34             :     virtual SwTwips ShrinkFrm( SwTwips, sal_Bool bTst = sal_False, sal_Bool bInfo = sal_False ) SAL_OVERRIDE;
      35             :     virtual SwTwips GrowFrm  ( SwTwips, sal_Bool bTst = sal_False, sal_Bool bInfo = sal_False ) SAL_OVERRIDE;
      36             : 
      37             :     const SwTableLine *pTabLine;
      38             :     SwRowFrm* pFollowRow;
      39             :     // #i29550#
      40             :     sal_uInt16 mnTopMarginForLowers;
      41             :     sal_uInt16 mnBottomMarginForLowers;
      42             :     sal_uInt16 mnBottomLineSize;
      43             :     // <-- collapsing
      44             :     bool bIsFollowFlowRow;
      45             :     bool bIsRepeatedHeadline;
      46             :     bool mbIsRowSpanLine;
      47             : 
      48             : protected:
      49             :     virtual void MakeAll() SAL_OVERRIDE;
      50             :     virtual void Modify( const SfxPoolItem*, const SfxPoolItem* ) SAL_OVERRIDE;
      51             : 
      52             : public:
      53             :     SwRowFrm( const SwTableLine &, SwFrm*, bool bInsertContent = true );
      54             :     virtual ~SwRowFrm();
      55             : 
      56             :     virtual void Cut() SAL_OVERRIDE;
      57             : 
      58             :     //Zum Anmelden der Flys nachdem eine Zeile erzeugt _und_ eingefuegt wurde.
      59             :     //Muss vom Erzeuger gerufen werden, denn erst nach dem Konstruieren wird
      60             :     //Das Teil gepastet; mithin ist auch erst dann die Seite zum Anmelden der
      61             :     //Flys erreichbar.
      62             :     void RegistFlys( SwPageFrm *pPage = 0 );
      63             : 
      64      810353 :     const SwTableLine *GetTabLine() const { return pTabLine; }
      65             : 
      66             :     //Passt die Zellen auf die aktuelle Hoehe an, invalidiert die Zellen
      67             :     //wenn die Direction nicht der Hoehe entspricht.
      68             :     void AdjustCells( const SwTwips nHeight, const sal_Bool bHeight );
      69             : 
      70           0 :     SwRowFrm* GetFollowRow() const { return pFollowRow; }
      71           0 :     void SetFollowRow( SwRowFrm* pNew ) { pFollowRow = pNew; }
      72             : 
      73             :     // #i29550#
      74       92976 :     sal_uInt16 GetTopMarginForLowers() const { return mnTopMarginForLowers; }
      75       13035 :     void   SetTopMarginForLowers( sal_uInt16 nNew ) { mnTopMarginForLowers = nNew; }
      76       92976 :     sal_uInt16 GetBottomMarginForLowers() const { return mnBottomMarginForLowers; }
      77       13035 :     void   SetBottomMarginForLowers( sal_uInt16 nNew ) { mnBottomMarginForLowers = nNew; }
      78       20595 :     sal_uInt16 GetBottomLineSize() const { return mnBottomLineSize; }
      79       13035 :     void   SetBottomLineSize( sal_uInt16 nNew ) { mnBottomLineSize = nNew; }
      80             :     // <-- collapsing
      81             : 
      82       22934 :     bool IsRepeatedHeadline() const { return bIsRepeatedHeadline; }
      83           0 :     void SetRepeatedHeadline( bool bNew ) { bIsRepeatedHeadline = bNew; }
      84             : 
      85             :     // --> split table rows
      86             :     bool IsRowSplitAllowed() const;
      87           0 :     bool IsFollowFlowRow() const { return bIsFollowFlowRow; }
      88           0 :     void SetFollowFlowRow( bool bNew ) { bIsFollowFlowRow = bNew; }
      89             :     // <-- split table rows
      90             : 
      91             :     // #131283# Table row keep feature
      92             :     bool ShouldRowKeepWithNext() const;
      93             : 
      94             :     // #i4032# NEW TABLES
      95       21399 :     bool IsRowSpanLine() const { return mbIsRowSpanLine; }
      96         112 :     void SetRowSpanLine( bool bNew ) { mbIsRowSpanLine = bNew; }
      97             : 
      98        5410 :     DECL_FIXEDMEMPOOL_NEWDEL(SwRowFrm)
      99             : };
     100             : 
     101             : #endif
     102             : 
     103             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10