• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ie_exp_XML.h

Go to the documentation of this file.
00001 /* AbiWord
00002  * Copyright (C) 2015 Jean Brefort <jean.brefort@normalesup.org>
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017  * 02110-1301 USA.
00018  */
00019 
00020 
00021 #ifndef IE_EXP_XML_H
00022 #define IE_EXP_XML_H
00023 
00024 #include "ie_exp.h"
00025 #include <string>
00026 
00027 class ABI_EXPORT IE_Exp_XML: public IE_Exp
00028 {
00029 public:
00030     IE_Exp_XML(PD_Document * pDocument);
00031     virtual ~IE_Exp_XML();
00032 
00033 public:
00034     void setupFile(bool compressed);
00035     void closeHandle();
00036     void setDocType(char const *doctype);
00037     void startElement(char const *name);
00038     void endElement();
00039     void addBool(char const *id, bool value);
00040     void addComment(char const *comment);
00041     void addFloat(char const *id, double value, int precision = -1);
00042     void addInt(char const *id, int value);
00043     void addLint(char const *id, long value);
00044     void addLuint(char const *id, unsigned long value);
00045     void addString(char const *id, char const *value);
00046     void addString(char const *id, std::string const &value);
00047     void addString(char const *id, UT_UCSChar const *data, int length);
00048     void addStringUnchecked(char const *id, char const *value);
00049     void addStringUnchecked(char const *id, std::string const &value);
00050     void addUint(char const *id, unsigned value);
00051 
00052     void setPrettyPrint(bool pretty);
00053 
00054 private:
00055 
00056     GsfOutput *m_zip;
00057     GsfXMLOut *m_xml;
00058 };
00059 
00060 #endif /* IE_EXP_XML_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1