Diffstat (limited to 'noncore/apps/opie-sheet/Excel.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-sheet/Excel.h | 47 |
1 files changed, 35 insertions, 12 deletions
diff --git a/noncore/apps/opie-sheet/Excel.h b/noncore/apps/opie-sheet/Excel.h index 0a581cf..51ccf5c 100644 --- a/noncore/apps/opie-sheet/Excel.h +++ b/noncore/apps/opie-sheet/Excel.h @@ -1,16 +1,46 @@ +/* + =. This file is part of the Opie Project + .=l. Copyright (C) 2004 Opie Developer Team <opie-devel@handhelds.org> + .>+-= + _;:, .> :=|. This program is free software; you can +.> <`_, > . <= redistribute it and/or modify it under +:`=1 )Y*s>-.-- : the terms of the GNU General Public +.="- .-=="i, .._ License as published by the Free Software + - . .-<_> .<> Foundation; either version 2 of the License, + ._= =} : or (at your option) any later version. + .%`+i> _;_. + .i_,=:_. -<s. This program is distributed in the hope that + + . -:. = it will be useful, but WITHOUT ANY WARRANTY; + : .. .:, . . . without even the implied warranty of + =_ + =;=|` MERCHANTABILITY or FITNESS FOR A + _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU +..}^=.= = ; Library General Public License for more +++= -. .` .: details. + : = ...= . :.=- + -. .:....=;==+<; You should have received a copy of the GNU + -_. . . )=. = Library General Public License along with + -- :-=` this library; see the file COPYING.LIB. + If not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. + +*/ + +/* QT */ +#include <qstring.h> +#include <qarray.h> +#include <qlist.h> +/* STD */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <sys/types.h> #include <strings.h> -#include <qstring.h> -#include <qarray.h> -#include <qlist.h> #define DATEFORMAT 0x1 #define NUMBERFORMAT 0x2 #define BIFF8 0x600 #define BIFF7 0x500 @@ -111,25 +141,23 @@ public: bool InitCells(void); // true if ok ExcelCell* Get(int row, int col); void Set(int row, int col, ExcelCell* cell); }; -struct mulrk { +struct mulrk +{ int row; int first; int last; int numrks; QArray<int> rknumbers; QArray<double> rkdbls; QArray<int> xfindices; }; - - - class ExcelBook { public: FILE *File; int Position; //int stringcount; @@ -193,13 +221,8 @@ void HandleNumber(ExcelSheet* sheet, ExcelBREC* record); void HandleFormat(ExcelBREC* rec); void HandleXF(ExcelBREC* rec); void HandleRK(ExcelSheet* sheet, ExcelBREC* record); void HandleFormula(ExcelSheet* sheet, ExcelBREC* record); QString GetFormula(int row, int col, ExcelSheet* sheet, char* data, int sz); QString FindCellName(int row, int col); - - - - - }; |