filters

cell.h

00001 /*
00002 **
00003 ** Copyright (C) 2002 Robert JACOLIN
00004 **
00005 ** This library is free software; you can redistribute it and/or
00006 ** modify it under the terms of the GNU Library General Public
00007 ** License as published by the Free Software Foundation; either
00008 ** version 2 of the License, or (at your option) any later version.
00009 **
00010 ** This library 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 GNU
00013 ** Library General Public License for more details.
00014 **
00015 ** To receive a copy of the GNU Library General Public License, write to the
00016 ** Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 **
00019 */
00020 
00021 #ifndef __KSPREAD_LATEX_CELL_H__
00022 #define __KSPREAD_LATEX_CELL_H__
00023 
00024 #include <qstring.h>
00025 
00026 #include "config.h"
00027 #include "format.h"
00028 #include "xmlparser.h"
00029 
00030 /***********************************************************************/
00031 /* Class: Cell                                                        */
00032 /***********************************************************************/
00033 
00034 class Table;
00035 class Column;
00036 
00040 class Cell: public Format
00041 {
00042     
00043     /* USEFULL DATA */
00044     long _row;
00045     long _col;
00046     QString _text;
00047     QString _textDataType;
00048     QString _result;
00049     QString _resultDataType;
00050 
00051         
00052     public:
00061         Cell();
00062 
00063         Cell(long row, long col)
00064         {
00065             _row = row;
00066             _col = col;
00067         }
00068         
00069         /* 
00070          * Destructor
00071          *
00072          * The destructor must remove the list of frames.
00073          */
00074 
00075         virtual ~Cell();
00076 
00077         /* ==== getters ==== */
00078 
00079         long     getRow() const { return _row; }
00080         long     getCol() const { return _col; }
00081         QString  getText() const { return _text; }
00082         QString  getTextDataType() const { return _textDataType; }
00083         QString  getResult() const { return _result; }
00084         QString  getResultDataType() const { return _resultDataType; }
00085 
00086         /* ==== setters ==== */
00087         void setRow(int r) { _row = r; }
00088         void setCol(int c) { _col = c; }
00089         void setText(QString text) { _text = text; }
00090         void setTextDataType(QString dt) { _textDataType = dt; }
00091         void setResult(QString result) { _result = result; }
00092         void setResultDataType(QString dt) { _resultDataType = dt; }
00093     
00097         void     analyse (const QDomNode);
00098         void     analyseText (const QDomNode);
00099         void     analyseResult (const QDomNode);
00100         void     generate  (QTextStream&, Table*);
00101         
00102     private:
00103 
00104 };
00105 
00106 #endif /* __KSPREAD_LATEX_CELL_H__ */
00107 
KDE Home | KDE Accessibility Home | Description of Access Keys