LCOV - code coverage report
Current view: top level - sw/source/ui/inc - swtablerep.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 21 0.0 %
Date: 2012-08-25 Functions: 0 21 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     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        bComplex : 1;
      42                 :            :     sal_Bool        bLineSelected : 1;
      43                 :            :     sal_Bool        bWidthChanged : 1;
      44                 :            :     sal_Bool        bColsChanged : 1;
      45                 :            : 
      46                 :            : public:
      47                 :            :     SwTableRep( const SwTabCols& rTabCol, sal_Bool bComplex );
      48                 :            :     ~SwTableRep();
      49                 :            : 
      50                 :            :     sal_Bool        FillTabCols( SwTabCols& rTabCol ) const;
      51                 :            : 
      52                 :          0 :     SwTwips     GetLeftSpace() const            {return nLeftSpace;}
      53                 :          0 :     void        SetLeftSpace(SwTwips nSet)      {nLeftSpace = nSet;}
      54                 :            : 
      55                 :          0 :     SwTwips     GetRightSpace() const           {return nRightSpace;}
      56                 :          0 :     void        SetRightSpace(SwTwips nSet)     {nRightSpace = nSet;}
      57                 :            : 
      58                 :          0 :     SwTwips     GetWidth() const                {return nTblWidth;}
      59                 :          0 :     void        SetWidth(SwTwips nSet)          {nTblWidth = nSet;}
      60                 :            : 
      61                 :          0 :     sal_uInt16      GetWidthPercent() const         {return nWidthPercent;}
      62                 :          0 :     void        SetWidthPercent(sal_uInt16 nSet)    {nWidthPercent = nSet;}
      63                 :            : 
      64                 :          0 :     sal_uInt16      GetAlign() const                {return nAlign;}
      65                 :          0 :     void        SetAlign(sal_uInt16 nSet)           {nAlign = nSet;}
      66                 :            : 
      67                 :            :     sal_Bool        IsComplex() const               {return bComplex;}
      68                 :          0 :     sal_uInt16      GetColCount() const             {return nColCount;}
      69                 :          0 :     sal_uInt16      GetAllColCount() const          {return nAllCols;}
      70                 :            : 
      71                 :          0 :     sal_Bool        HasColsChanged() const          {return bColsChanged;}
      72                 :          0 :     void        SetColsChanged()                {bColsChanged = sal_True;}
      73                 :            : 
      74                 :          0 :     sal_Bool        HasWidthChanged() const         {return bWidthChanged;}
      75                 :          0 :     void        SetWidthChanged()               {bWidthChanged  = sal_True;}
      76                 :            : 
      77                 :          0 :     sal_Bool        IsLineSelected() const          {return bLineSelected;}
      78                 :          0 :     void        SetLineSelected(sal_Bool bSet)      {bLineSelected = bSet;}
      79                 :            : 
      80                 :          0 :     SwTwips     GetSpace() const                { return nSpace;}
      81                 :          0 :     void        SetSpace(SwTwips nSet)          {nSpace = nSet;}
      82                 :            : 
      83                 :          0 :     TColumn*    GetColumns() const              {return pTColumns;}
      84                 :            : };
      85                 :            : #endif
      86                 :            : 
      87                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10