|
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 |
|
23 class 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(const char * level1, const char * level2, |
|
37 // const char * contRef, const char * memRef, |
|
38 // const char * anchor, const MemberDef * md); |
|
39 void addIndexItem(Definition *context,MemberDef *md, |
|
40 const char *anchor,const char *word); |
|
41 void addIndexFile(const char * name); |
|
42 void addImageFile(const char * name); |
|
43 void addStyleSheetFile(const char * name); |
|
44 // END IndexIntf |
|
45 |
|
46 static QCString getQhpFileName(); |
|
47 |
|
48 private: |
|
49 void handlePrevSection(); |
|
50 void clearPrevSection(); |
|
51 void setPrevSection(const char * title, const char * ref, int level); |
|
52 void addFile(const char * fileName); |
|
53 |
|
54 static QCString getFullProjectName(); |
|
55 |
|
56 QhpXmlWriter m_doc; |
|
57 QhpXmlWriter m_toc; |
|
58 QhpXmlWriter m_index; |
|
59 QhpXmlWriter m_files; |
|
60 |
|
61 QCString m_prevSectionTitle; |
|
62 QCString m_prevSectionRef; |
|
63 |
|
64 int m_prevSectionLevel; |
|
65 int m_sectionLevel; |
|
66 |
|
67 //QCString m_prevIdName; |
|
68 //QCString m_prevIdRef; |
|
69 }; |
|
70 |
|
71 #endif // DOXYGEN_QHP_H |
|
72 |