Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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