2 * Copyright (C) 2008 by Sebastian Pipping.
3 * Copyright (C) 2008 Dimitri van Heesch.
5 * Permission to use, copy, modify, and distribute this software and its
6 * documentation under the terms of the GNU General Public License is hereby
7 * granted. No representations are made about the suitability of this software
8 * for any purpose. It is provided "as is" without express or implied warranty.
9 * See the GNU General Public License for more details.
11 * Documents produced by Doxygen are derivative works derived from the
12 * input used in their production; they are not affected by this license.
14 * Sebastian Pipping <sebastian@pipping.org>
17 #ifndef QHPXMLWRITER_H
18 #define QHPXMLWRITER_H
21 #include "ftextstream.h"
31 void setIndentLevel(int level);
32 void setCompressionEnabled(bool enabled);
33 void insert(QhpXmlWriter const & source);
34 void dumpTo(QFile & file);
35 void open(char const * elementName,
36 char const * const * attributes = 0);
37 void openClose(char const * elementName,
38 char const * const * attributes = 0);
39 void openCloseContent(char const * elementName, char const * content);
40 void close(char const * elementName);
42 static char * dupEscaped(const char * source);
47 void openPureHelper(char const * elementName,
48 char const * const * attributes, bool close);
49 void openPure(char const * elementName,
50 char const * const * attributes = 0);
51 void openClosePure(char const * elementName,
52 char const * const * attributes = 0);
53 void closePure(char const * elementName);
58 bool m_curLineIndented;
63 #endif // QHPXMLWRITER_H