LCOV - code coverage report
Current view: top level - libreoffice/sw/source/ui/inc - swtablerep.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 21 0.0 %
Date: 2012-12-27 Functions: 0 21 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 _SWTABLEREP_HXX
      20             : #define _SWTABLEREP_HXX
      21             : 
      22             : 
      23             : #include <sfx2/tabdlg.hxx>
      24             : #include "swdllapi.h"
      25             : #include "swtypes.hxx"
      26             : 
      27             : class SwTabCols;
      28             : struct TColumn;
      29             : class SW_DLLPUBLIC SwTableRep
      30             : {
      31             :     TColumn*    pTColumns;
      32             : 
      33             :     SwTwips     nTblWidth;
      34             :     SwTwips     nSpace;
      35             :     SwTwips     nLeftSpace;
      36             :     SwTwips     nRightSpace;
      37             :     sal_uInt16      nAlign;
      38             :     sal_uInt16      nColCount;
      39             :     sal_uInt16      nAllCols;
      40             :     sal_uInt16      nWidthPercent;
      41             :     sal_Bool        bLineSelected : 1;
      42             :     sal_Bool        bWidthChanged : 1;
      43             :     sal_Bool        bColsChanged : 1;
      44             : 
      45             : public:
      46             :     SwTableRep( const SwTabCols& rTabCol );
      47             :     ~SwTableRep();
      48             : 
      49             :     sal_Bool        FillTabCols( SwTabCols& rTabCol ) const;
      50             : 
      51           0 :     SwTwips     GetLeftSpace() const            {return nLeftSpace;}
      52           0 :     void        SetLeftSpace(SwTwips nSet)      {nLeftSpace = nSet;}
      53             : 
      54           0 :     SwTwips     GetRightSpace() const           {return nRightSpace;}
      55           0 :     void        SetRightSpace(SwTwips nSet)     {nRightSpace = nSet;}
      56             : 
      57           0 :     SwTwips     GetWidth() const                {return nTblWidth;}
      58           0 :     void        SetWidth(SwTwips nSet)          {nTblWidth = nSet;}
      59             : 
      60           0 :     sal_uInt16      GetWidthPercent() const         {return nWidthPercent;}
      61           0 :     void        SetWidthPercent(sal_uInt16 nSet)    {nWidthPercent = nSet;}
      62             : 
      63           0 :     sal_uInt16      GetAlign() const                {return nAlign;}
      64           0 :     void        SetAlign(sal_uInt16 nSet)           {nAlign = nSet;}
      65             : 
      66           0 :     sal_uInt16      GetColCount() const             {return nColCount;}
      67           0 :     sal_uInt16      GetAllColCount() const          {return nAllCols;}
      68             : 
      69           0 :     sal_Bool        HasColsChanged() const          {return bColsChanged;}
      70           0 :     void        SetColsChanged()                {bColsChanged = sal_True;}
      71             : 
      72           0 :     sal_Bool        HasWidthChanged() const         {return bWidthChanged;}
      73           0 :     void        SetWidthChanged()               {bWidthChanged  = sal_True;}
      74             : 
      75           0 :     sal_Bool        IsLineSelected() const          {return bLineSelected;}
      76           0 :     void        SetLineSelected(sal_Bool bSet)      {bLineSelected = bSet;}
      77             : 
      78           0 :     SwTwips     GetSpace() const                { return nSpace;}
      79           0 :     void        SetSpace(SwTwips nSet)          {nSpace = nSet;}
      80             : 
      81           0 :     TColumn*    GetColumns() const              {return pTColumns;}
      82             : };
      83             : #endif
      84             : 
      85             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10