filters
spreadsheet.h
00001 /* 00002 ** Header file for inclusion with kword_xml2latex.c 00003 ** 00004 ** Copyright (C) 2002, 2003 Robert JACOLIN 00005 ** 00006 ** This library is free software; you can redistribute it and/or 00007 ** modify it under the terms of the GNU Library General Public 00008 ** License as published by the Free Software Foundation; either 00009 ** version 2 of the License, or (at your option) any later version. 00010 ** 00011 ** This library is distributed in the hope that it will be useful, 00012 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 ** Library General Public License for more details. 00015 ** 00016 ** To receive a copy of the GNU Library General Public License, write to the 00017 ** Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 * Boston, MA 02110-1301, USA. 00019 ** 00020 */ 00021 00022 #ifndef __KSPREAD_LATEX_SPREADSHEET_H__ 00023 #define __KSPREAD_LATEX_SPREADSHEET_H__ 00024 00025 #include <qptrlist.h> 00026 #include <qtextstream.h> 00027 00028 #include "map.h" 00029 #include "config.h" 00030 00031 enum EGenerate 00032 { 00033 E_LATEX, 00034 E_KWORD, 00035 E_CONFIG 00036 }; 00037 00038 /***********************************************************************/ 00039 /* Class: Spreadsheet */ 00040 /***********************************************************************/ 00041 00046 class Spreadsheet: public XmlParser, Config 00047 { 00048 00049 //Paper _paper; 00050 Map _map; 00051 //Locale _locale; 00052 //AreaName _areaname; 00053 00054 public: 00060 Spreadsheet(); 00061 00067 virtual ~Spreadsheet(); 00068 00073 void analyse(const QDomNode); 00074 void analyse_attr(const QDomNode); 00075 00076 void generate(QTextStream&, bool); 00077 00078 private: 00082 void generatePreambule(QTextStream&); 00083 00087 void generateTypeHeader(QTextStream&); 00088 00092 void generateTypeFooter(QTextStream&); 00093 }; 00094 00095 #endif /* __KSPREAD_LATEX_SPREADSHEET_H__ */