LCOV - code coverage report
Current view: top level - sc/source/ui/inc - pagedata.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 4 13 30.8 %
Date: 2015-06-13 12:38:46 Functions: 4 13 30.8 %
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_SC_SOURCE_UI_INC_PAGEDATA_HXX
      21             : #define INCLUDED_SC_SOURCE_UI_INC_PAGEDATA_HXX
      22             : 
      23             : #include "global.hxx"
      24             : #include "address.hxx"
      25             : 
      26             : class ScPrintRangeData
      27             : {
      28             : private:
      29             :     ScRange     aPrintRange;
      30             :     size_t      nPagesX;
      31             :     SCCOL*      pPageEndX;
      32             :     size_t      nPagesY;
      33             :     SCROW*      pPageEndY;
      34             :     long        nFirstPage;
      35             :     bool        bTopDown;
      36             :     bool        bAutomatic;
      37             : 
      38             : public:
      39             :                 ScPrintRangeData();
      40             :                 ~ScPrintRangeData();
      41             : 
      42           1 :     void            SetPrintRange( const ScRange& rNew )    { aPrintRange = rNew; }
      43           0 :     const ScRange&  GetPrintRange() const                   { return aPrintRange; }
      44             : 
      45             :     void            SetPagesX( size_t nCount, const SCCOL* pEnd );
      46             :     void            SetPagesY( size_t nCount, const SCROW* pEnd );
      47             : 
      48           0 :     size_t          GetPagesX() const       { return nPagesX;   }
      49           0 :     const SCCOL*    GetPageEndX() const     { return pPageEndX; }
      50           0 :     size_t          GetPagesY() const       { return nPagesY;   }
      51           0 :     const SCROW*    GetPageEndY() const     { return pPageEndY; }
      52             : 
      53           0 :     void            SetFirstPage( long nNew )   { nFirstPage = nNew; }
      54           0 :     long            GetFirstPage() const        { return nFirstPage; }
      55           1 :     void            SetTopDown( bool bSet )     { bTopDown = bSet; }
      56           0 :     bool            IsTopDown() const           { return bTopDown; }
      57           1 :     void            SetAutomatic( bool bSet )   { bAutomatic = bSet; }
      58           0 :     bool            IsAutomatic() const         { return bAutomatic; }
      59             : };
      60             : 
      61             : class ScPageBreakData
      62             : {
      63             : private:
      64             :     size_t              nAlloc;
      65             :     size_t              nUsed;
      66             :     ScPrintRangeData*   pData;          // Array
      67             : 
      68             : public:
      69             :                 ScPageBreakData(size_t nMax);
      70             :                 ~ScPageBreakData();
      71             : 
      72           1 :     size_t              GetCount() const            { return nUsed; }
      73             :     ScPrintRangeData&   GetData(size_t i);
      74             : 
      75             :     bool                operator==( const ScPageBreakData& rOther ) const;
      76             : 
      77             :     void                AddPages();
      78             : };
      79             : 
      80             : #endif
      81             : 
      82             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11