kspread

krs_sheet.h

00001 /*
00002  *  Copyright (c) 2005 Cyrille Berger <cberger@cberger.net>
00003  *  Copyright (c) 2006 Isaac Clerencia <isaac@warp.es>
00004  *
00005  *  This program is free software; you can redistribute it and/or modify
00006  *  it under the terms of the GNU Library General Public License as published by
00007  *  the Free Software Foundation; either version 2 of the License, or
00008  *  (at your option) any later version.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU Library General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU Library General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
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
KDE Home | KDE Accessibility Home | Description of Access Keys