kspread
krs_sheet.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KROSS_KSPREADCOREKRSSHEET_H
00021 #define KROSS_KSPREADCOREKRSSHEET_H
00022
00023 #include <kspread_sheet.h>
00024 #include <kspread_value.h>
00025
00026 #include <api/class.h>
00027
00028 namespace Kross { namespace KSpreadCore {
00029
00030 class Cell;
00031
00050 class Sheet : public Kross::Api::Class<Sheet>
00051 {
00052 public:
00053 Sheet(KSpread::Sheet* sheet, KSpread::Doc* doc = 0);
00054 virtual ~Sheet();
00055 virtual const QString getClassName() const;
00056 private:
00057
00061 const QString name() const;
00065 void setName(const QString& name);
00066
00070 int maxColumn() const;
00074 int maxRow() const;
00075
00092 Cell* firstCell() const;
00093
00113 Cell* cell(uint col, uint row);
00114
00118 bool insertRow(uint row);
00122 bool insertColumn(uint col);
00123
00127 void removeRow(uint row);
00131 void removeColumn(uint col);
00132
00133 private:
00134 KSpread::Sheet* m_sheet;
00135 KSpread::Doc* m_doc;
00136 };
00137 }
00138 }
00139
00140 #endif
|