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 #pragma once
21 
22 #include "address.hxx"
23 #include <vector>
24 #include <memory>
25 
27 {
28  typedef ::std::vector< ScRange > ScRangeVec;
29 
30  ScRangeVec maPrintRanges;
31  std::unique_ptr<ScRange> mpRepeatCol;
32  std::unique_ptr<ScRange> mpRepeatRow;
34 
35 public:
38 
39  void SetAreas( const ScRangeVec& rRanges, bool bEntireSheet );
40  void SetRepeat( const ScRange* pCol, const ScRange* pRow );
41 
42  const ScRangeVec& GetPrintRanges() const { return maPrintRanges; }
43  bool IsEntireSheet() const { return mbEntireSheet; }
44  const ScRange* GetRepeatCol() const { return mpRepeatCol.get(); }
45  const ScRange* GetRepeatRow() const { return mpRepeatRow.get(); }
46 
47  bool operator==( const ScPrintSaverTab& rCmp ) const;
48 };
49 
51 {
53  std::unique_ptr<ScPrintSaverTab[]> pData;
54 
55 public:
56  ScPrintRangeSaver( SCTAB nCount );
58 
59  SCTAB GetTabCount() const { return nTabCount; }
61  const ScPrintSaverTab& GetTabData(SCTAB nTab) const;
62 
63  bool operator==( const ScPrintRangeSaver& rCmp ) const;
64 };
65 
66 /* 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:32
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:30
const ScRange * GetRepeatRow() const
Definition: prnsave.hxx:45
std::unique_ptr< ScPrintSaverTab[]> pData
Definition: prnsave.hxx:53
void SetRepeat(const ScRange *pCol, const ScRange *pRow)
Definition: prnsave.cxx:44
std::unique_ptr< ScRange > mpRepeatCol
single
Definition: prnsave.hxx:31
const ScRangeVec & GetPrintRanges() const
Definition: prnsave.hxx:42
const ScRange * GetRepeatCol() const
Definition: prnsave.hxx:44
bool IsEntireSheet() const
Definition: prnsave.hxx:43
SCTAB GetTabCount() const
Definition: prnsave.hxx:59
::std::vector< ScRange > ScRangeVec
Definition: prnsave.hxx:28
sal_Int16 SCTAB
Definition: types.hxx:22
void SetAreas(const ScRangeVec &rRanges, bool bEntireSheet)
Definition: prnsave.cxx:38
bool mbEntireSheet
Definition: prnsave.hxx:33