1
/* Sidewinder - Portable library for spreadsheet
2
Copyright (C) 2003 Ariya Hidayat <ariya@kde.org>
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Library General Public
6
License as published by the Free Software Foundation; either
7
version 2 of the License, or (at your option) any later version.
9
This library is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
Library General Public License for more details.
14
You should have received a copy of the GNU Library General Public License
15
along with this library; see the file COPYING.LIB. If not, write to
16
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
Boston, MA 02111-1307, US
26
using namespace Sidewinder;
28
class Workbook::Private
31
std::vector<Sheet*> sheets;
37
d = new Workbook::Private();
46
void Workbook::clear()
49
for( unsigned i=0; i<sheetCount(); i++ )
51
Sheet* s = sheet( i );
57
void Workbook::appendSheet( Sheet* sheet )
59
d->sheets.push_back( sheet );
62
unsigned Workbook::sheetCount() const
64
return d->sheets.size();
67
Sheet* Workbook::sheet( unsigned index )
69
if( index >= sheetCount() ) return (Sheet*)0;
70
return d->sheets[index];
73
bool Workbook::autoCalc() const
78
void Workbook::setAutoCalc( bool a )