filters
cell.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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
00032
00033
00034 class Table;
00035 class Column;
00036
00040 class Cell: public Format
00041 {
00042
00043
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
00071
00072
00073
00074
00075 virtual ~Cell();
00076
00077
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
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
00107
|