File indexing completed on 2025-02-16 13:49:56
0001 0002 /* 0003 ** Header file for inclusion with words_xml2latex.c 0004 ** 0005 ** Copyright (C) 2000, 2003 Robert JACOLIN 0006 ** 0007 ** This library is free software; you can redistribute it and/or 0008 ** modify it under the terms of the GNU Library General Public 0009 ** License as published by the Free Software Foundation; either 0010 ** version 2 of the License, or (at your option) any later version. 0011 ** 0012 ** This library is distributed in the hope that it will be useful, 0013 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 0014 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0015 ** Library General Public License for more details. 0016 ** 0017 ** To receive a copy of the GNU Library General Public License, write to the 0018 ** Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0019 * Boston, MA 02110-1301, USA. 0020 ** 0021 */ 0022 0023 #ifndef __CALLIGRA_SHEETS_LATEX_DOCUMENT_H__ 0024 #define __CALLIGRA_SHEETS_LATEX_DOCUMENT_H__ 0025 0026 #include <QFile> /* for QFile class */ 0027 #include <QTextStream> /* for QTextStream class */ 0028 #include <QString> /* for QString class */ 0029 0030 #include "xmlparser.h" 0031 #include "config.h" 0032 #include "spreadsheet.h" 0033 0034 class Document : public XmlParser, Config 0035 { 0036 QFile _file; 0037 QTextStream _out; 0038 QString _filename; 0039 const KoStore* _in; 0040 0041 //FileHeader _header; 0042 Spreadsheet _document; 0043 0044 /* Options */ 0045 0046 0047 public: 0048 /** 0049 * @param in tar file. 0050 * @param fileOut Output latex filename. 0051 */ 0052 Document(const KoStore* in, QString fileOut); 0053 0054 ~Document() override; 0055 0056 /* Accesors */ 0057 0058 void analyze(); 0059 void generate(); 0060 0061 private: 0062 0063 }; 0064 0065 #endif /* __CALLIGRA_SHEETS_LATEX_DOCUMENT_H__ */