LibreOffice Module sc (master)  1
prnsave.hxx
Go to the documentation of this file.
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_INC_PRNSAVE_HXX
21 #define INCLUDED_SC_INC_PRNSAVE_HXX
22 
23 #include "address.hxx"
24 #include <vector>
25 #include <memory>
26 
28 {
29  typedef ::std::vector< ScRange > ScRangeVec;
30 
31  ScRangeVec maPrintRanges;
32  std::unique_ptr<ScRange> mpRepeatCol;
33  std::unique_ptr<ScRange> mpRepeatRow;
35 
36 public:
39 
40  void SetAreas( const ScRangeVec& rRanges, bool bEntireSheet );
41  void SetRepeat( const ScRange* pCol, const ScRange* pRow );
42 
43  const ScRangeVec& GetPrintRanges() const { return maPrintRanges; }
44  bool IsEntireSheet() const { return mbEntireSheet; }
45  const ScRange* GetRepeatCol() const { return mpRepeatCol.get(); }
46  const ScRange* GetRepeatRow() const { return mpRepeatRow.get(); }
47 
48  bool operator==( const ScPrintSaverTab& rCmp ) const;
49 };
50 
52 {
54  std::unique_ptr<ScPrintSaverTab[]> pData;
55 
56 public:
57  ScPrintRangeSaver( SCTAB nCount );
59 
60  SCTAB GetTabCount() const { return nTabCount; }
62  const ScPrintSaverTab& GetTabData(SCTAB nTab) const;
63 
64  bool operator==( const ScPrintRangeSaver& rCmp ) const;
65 };
66 
67 #endif
68 
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
bool operator==(const ScPrintSaverTab &rCmp) const
Definition: prnsave.cxx:55
std::unique_ptr< ScRange > mpRepeatRow
single
Definition: prnsave.hxx:33
ScPrintRangeSaver(SCTAB nCount)
Definition: prnsave.cxx:66
bool operator==(const ScPrintRangeSaver &rCmp) const
Definition: prnsave.cxx:89
ScPrintSaverTab & GetTabData(SCTAB nTab)
Definition: prnsave.cxx:77
ScRangeVec maPrintRanges
Array.
Definition: prnsave.hxx:31
const ScRange * GetRepeatRow() const
Definition: prnsave.hxx:46
std::unique_ptr< ScPrintSaverTab[]> pData
Definition: prnsave.hxx:54
void SetRepeat(const ScRange *pCol, const ScRange *pRow)
Definition: prnsave.cxx:44
std::unique_ptr< ScRange > mpRepeatCol
single
Definition: prnsave.hxx:32
const ScRangeVec & GetPrintRanges() const
Definition: prnsave.hxx:43
const ScRange * GetRepeatCol() const
Definition: prnsave.hxx:45
bool IsEntireSheet() const
Definition: prnsave.hxx:44
SCTAB GetTabCount() const
Definition: prnsave.hxx:60
::std::vector< ScRange > ScRangeVec
Definition: prnsave.hxx:29
sal_Int16 SCTAB
Definition: types.hxx:23
void SetAreas(const ScRangeVec &rRanges, bool bEntireSheet)
Definition: prnsave.cxx:38
bool mbEntireSheet
Definition: prnsave.hxx:34