LCOV - code coverage report
Current view: top level - libreoffice/sc/inc - prnsave.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 5 0.0 %
Date: 2012-12-27 Functions: 0 5 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 SC_PRNSAVE_HXX
      21             : #define SC_PRNSAVE_HXX
      22             : 
      23             : #include "address.hxx"
      24             : #include <tools/solar.h>
      25             : 
      26             : #include <vector>
      27             : 
      28             : class ScRange;
      29             : 
      30             : class ScPrintSaverTab
      31             : {
      32             :     typedef ::std::vector< ScRange > ScRangeVec;
      33             : 
      34             :     ScRangeVec  maPrintRanges;      // Array
      35             :     ScRange*    mpRepeatCol;        // single
      36             :     ScRange*    mpRepeatRow;        // single
      37             :     sal_Bool        mbEntireSheet;
      38             : 
      39             : public:
      40             :             ScPrintSaverTab();
      41             :             ~ScPrintSaverTab();
      42             : 
      43             :     void            SetAreas( const ScRangeVec& rRanges, sal_Bool bEntireSheet );
      44             :     void            SetRepeat( const ScRange* pCol, const ScRange* pRow );
      45             : 
      46           0 :     const ScRangeVec&   GetPrintRanges() const  { return maPrintRanges; }
      47           0 :     sal_Bool                IsEntireSheet() const   { return mbEntireSheet; }
      48           0 :     const ScRange*      GetRepeatCol() const    { return mpRepeatCol; }
      49           0 :     const ScRange*      GetRepeatRow() const    { return mpRepeatRow; }
      50             : 
      51             :     sal_Bool    operator==( const ScPrintSaverTab& rCmp ) const;
      52             : };
      53             : 
      54             : class ScPrintRangeSaver
      55             : {
      56             :     SCTAB               nTabCount;
      57             :     ScPrintSaverTab*    pData;      // Array
      58             : 
      59             : public:
      60             :             ScPrintRangeSaver( SCTAB nCount );
      61             :             ~ScPrintRangeSaver();
      62             : 
      63           0 :     SCTAB                   GetTabCount() const     { return nTabCount; }
      64             :     ScPrintSaverTab&        GetTabData(SCTAB nTab);
      65             :     const ScPrintSaverTab&  GetTabData(SCTAB nTab) const;
      66             : 
      67             :     sal_Bool    operator==( const ScPrintRangeSaver& rCmp ) const;
      68             : };
      69             : 
      70             : 
      71             : #endif
      72             : 
      73             : 
      74             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10