2010-10-27 06:43:08 -05:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2000-09-18 11:07:07 -05:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 12:45:32 -05:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2000-09-18 11:07:07 -05:00
|
|
|
*
|
2010-02-12 08:01:35 -06:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2000-09-18 11:07:07 -05:00
|
|
|
*
|
2008-04-10 12:45:32 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 11:07:07 -05:00
|
|
|
*
|
2008-04-10 12:45:32 -05:00
|
|
|
* This file is part of OpenOffice.org.
|
2000-09-18 11:07:07 -05:00
|
|
|
*
|
2008-04-10 12:45:32 -05:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2000-09-18 11:07:07 -05:00
|
|
|
*
|
2008-04-10 12:45:32 -05:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2000-09-18 11:07:07 -05:00
|
|
|
*
|
2008-04-10 12:45:32 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2000-09-18 11:07:07 -05:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#ifndef SC_PRNSAVE_HXX
|
|
|
|
#define SC_PRNSAVE_HXX
|
|
|
|
|
2004-06-04 04:12:44 -05:00
|
|
|
#include "address.hxx"
|
2000-09-18 11:07:07 -05:00
|
|
|
#include <tools/solar.h>
|
|
|
|
|
2003-12-01 02:48:43 -06:00
|
|
|
#include <vector>
|
|
|
|
|
2000-09-18 11:07:07 -05:00
|
|
|
class ScRange;
|
|
|
|
|
|
|
|
class ScPrintSaverTab
|
|
|
|
{
|
2003-12-01 02:48:43 -06:00
|
|
|
typedef ::std::vector< ScRange > ScRangeVec;
|
|
|
|
|
|
|
|
ScRangeVec maPrintRanges; // Array
|
|
|
|
ScRange* mpRepeatCol; // einzeln
|
|
|
|
ScRange* mpRepeatRow; // einzeln
|
|
|
|
BOOL mbEntireSheet;
|
2000-09-18 11:07:07 -05:00
|
|
|
|
|
|
|
public:
|
|
|
|
ScPrintSaverTab();
|
|
|
|
~ScPrintSaverTab();
|
|
|
|
|
2003-12-01 02:48:43 -06:00
|
|
|
void SetAreas( const ScRangeVec& rRanges, BOOL bEntireSheet );
|
|
|
|
void SetRepeat( const ScRange* pCol, const ScRange* pRow );
|
2000-09-18 11:07:07 -05:00
|
|
|
|
2003-12-01 02:48:43 -06:00
|
|
|
const ScRangeVec& GetPrintRanges() const { return maPrintRanges; }
|
|
|
|
BOOL IsEntireSheet() const { return mbEntireSheet; }
|
|
|
|
const ScRange* GetRepeatCol() const { return mpRepeatCol; }
|
|
|
|
const ScRange* GetRepeatRow() const { return mpRepeatRow; }
|
2000-09-18 11:07:07 -05:00
|
|
|
|
|
|
|
BOOL operator==( const ScPrintSaverTab& rCmp ) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
class ScPrintRangeSaver
|
|
|
|
{
|
2004-06-04 04:12:44 -05:00
|
|
|
SCTAB nTabCount;
|
2000-09-18 11:07:07 -05:00
|
|
|
ScPrintSaverTab* pData; // Array
|
|
|
|
|
|
|
|
public:
|
2004-06-04 04:12:44 -05:00
|
|
|
ScPrintRangeSaver( SCTAB nCount );
|
2000-09-18 11:07:07 -05:00
|
|
|
~ScPrintRangeSaver();
|
|
|
|
|
2004-06-04 04:12:44 -05:00
|
|
|
SCTAB GetTabCount() const { return nTabCount; }
|
|
|
|
ScPrintSaverTab& GetTabData(SCTAB nTab);
|
|
|
|
const ScPrintSaverTab& GetTabData(SCTAB nTab) const;
|
2000-09-18 11:07:07 -05:00
|
|
|
|
|
|
|
BOOL operator==( const ScPrintRangeSaver& rCmp ) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2010-10-27 06:43:08 -05:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|