kspread

krs_sheet.h
1/*
2 * Copyright (c) 2005 Cyrille Berger <cberger@cberger.net>
3 * Copyright (c) 2006 Isaac Clerencia <isaac@warp.es>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU Library General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19
20#ifndef KROSS_KSPREADCOREKRSSHEET_H
21#define KROSS_KSPREADCOREKRSSHEET_H
22
23#include <kspread_sheet.h>
24#include <kspread_value.h>
25
26#include <api/class.h>
27
28namespace Kross { namespace KSpreadCore {
29
30class Cell;
31
50class Sheet : public Kross::Api::Class<Sheet>
51{
52 public:
53 Sheet(KSpread::Sheet* sheet, KSpread::Doc* doc = 0);
54 virtual ~Sheet();
55 virtual const TQString getClassName() const;
56 private:
57
61 const TQString name() const;
65 void setName(const TQString& name);
66
70 int maxColumn() const;
74 int maxRow() const;
75
92 Cell* firstCell() const;
93
113 Cell* cell(uint col, uint row);
114
118 bool insertRow(uint row);
122 bool insertColumn(uint col);
123
127 void removeRow(uint row);
131 void removeColumn(uint col);
132
133 private:
134 KSpread::Sheet* m_sheet;
135 KSpread::Doc* m_doc;
136};
137}
138}
139
140#endif
This class holds the data that makes up a spreadsheet.
Definition kspread_doc.h:98
For every cell in the spread sheet there is a Cell object.
Definition krs_cell.h:51