Chameleon

Chameleon Svn Source Tree

Root/branches/xZenu/src/util/doxygen/src/qhp.h

Source at commit 1322 created 12 years 8 months ago.
By meklort, Add doxygen to utils folder
1/*
2 * Copyright (C) 2008 by Sebastian Pipping.
3 * Copyright (C) 2008 Dimitri van Heesch.
4 *
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.
10 *
11 * Documents produced by Doxygen are derivative works derived from the
12 * input used in their production; they are not affected by this license.
13 *
14 * Sebastian Pipping <sebastian@pipping.org>
15 */
16
17#ifndef DOXYGEN_QHP_H
18#define DOXYGEN_QHP_H
19
20#include "index.h"
21#include "qhpxmlwriter.h"
22
23class Qhp : public IndexIntf
24{
25 public:
26 Qhp();
27 ~Qhp();
28
29 // BEGIN IndexIntf
30 void initialize();
31 void finalize();
32 void incContentsDepth();
33 void decContentsDepth();
34 void addContentsItem(bool isDir, const char * name, const char * ref,
35 const char * file, const char * anchor);
36 void addIndexItem(Definition *context,MemberDef *md,const char *title);
37 void addIndexFile(const char * name);
38 void addImageFile(const char * name);
39 void addStyleSheetFile(const char * name);
40 // END IndexIntf
41
42 static QCString getQhpFileName();
43
44 private:
45 void handlePrevSection();
46 void clearPrevSection();
47 void setPrevSection(const char * title, const char * ref, int level);
48 void addFile(const char * fileName);
49
50 static QCString getFullProjectName();
51
52 QhpXmlWriter m_doc;
53 QhpXmlWriter m_toc;
54 QhpXmlWriter m_index;
55 QhpXmlWriter m_files;
56
57 QCString m_prevSectionTitle;
58 QCString m_prevSectionRef;
59
60 int m_prevSectionLevel;
61 int m_sectionLevel;
62
63 //QCString m_prevIdName;
64 //QCString m_prevIdRef;
65};
66
67#endif // DOXYGEN_QHP_H
68
69

Archive Download this file

Revision: 1322