Doxygen
qhp.h
浏览该文件的文档.
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 QCString & name, const QCString & ref,
35  const QCString & file, const QCString & anchor,
36  bool separateIndex,bool addToNavIndex,
37  const Definition *def);
38  void addIndexItem(const Definition *context, const MemberDef *md,
39  const QCString &sectionAnchor, const QCString &title);
40  void addIndexFile(const QCString & name);
41  void addImageFile(const QCString & name);
42  void addStyleSheetFile(const QCString & name);
43  // END IndexIntf
44 
45  static QCString getQhpFileName();
46 
47  private:
48  void handlePrevSection();
49  void clearPrevSection();
50  void setPrevSection(const QCString & title, const QCString & basename, const QCString & anchor, int level);
51  void addFile(const QCString & fileName);
52 
54 
59 
63 
65  int m_sectionLevel = 0;
66  int m_openCount = 0;
67  bool m_skipMainPageSection = false;
68 };
69 
70 #endif // DOXYGEN_QHP_H
71 
Qhp::addIndexItem
void addIndexItem(const Definition *context, const MemberDef *md, const QCString &sectionAnchor, const QCString &title)
Definition: qhp.cpp:223
Qhp::incContentsDepth
void incContentsDepth()
Definition: qhp.cpp:181
Definition
The common base class of all entity definitions found in the sources.
Definition: definition.h:76
Qhp::m_toc
QhpXmlWriter m_toc
Definition: qhp.h:56
Qhp::finalize
void finalize()
Definition: qhp.cpp:148
index.h
qhpxmlwriter.h
Qhp::m_index
QhpXmlWriter m_index
Definition: qhp.h:57
Qhp::m_prevSectionAnchor
QCString m_prevSectionAnchor
Definition: qhp.h:62
Qhp::setPrevSection
void setPrevSection(const QCString &title, const QCString &basename, const QCString &anchor, int level)
Definition: qhp.cpp:349
Qhp::m_prevSectionTitle
QCString m_prevSectionTitle
Definition: qhp.h:60
Qhp::Qhp
Qhp()
Definition: qhp.cpp:56
Qhp::m_prevSectionLevel
int m_prevSectionLevel
Definition: qhp.h:64
Qhp::initialize
void initialize()
Definition: qhp.cpp:69
MemberDef
A model of a class/file/namespace member symbol.
Definition: memberdef.h:45
Qhp::decContentsDepth
void decContentsDepth()
Definition: qhp.cpp:186
Qhp::clearPrevSection
void clearPrevSection()
Definition: qhp.cpp:357
Qhp::m_openCount
int m_openCount
Definition: qhp.h:66
Qhp::~Qhp
~Qhp()
Definition: qhp.cpp:64
Qhp::getFullProjectName
static QCString getFullProjectName()
Definition: qhp.cpp:291
Qhp::addIndexFile
void addIndexFile(const QCString &name)
Definition: qhp.cpp:281
Qhp::addStyleSheetFile
void addStyleSheetFile(const QCString &name)
Definition: qhp.cpp:374
Qhp::handlePrevSection
void handlePrevSection()
Definition: qhp.cpp:301
Qhp::m_doc
QhpXmlWriter m_doc
Definition: qhp.h:55
Qhp
Definition: qhp.h:23
Qhp::m_sectionLevel
int m_sectionLevel
Definition: qhp.h:65
Qhp::addContentsItem
void addContentsItem(bool isDir, const QCString &name, const QCString &ref, const QCString &file, const QCString &anchor, bool separateIndex, bool addToNavIndex, const Definition *def)
Definition: qhp.cpp:196
Qhp::addFile
void addFile(const QCString &fileName)
Definition: qhp.cpp:364
Qhp::getQhpFileName
static QCString getQhpFileName()
Definition: qhp.cpp:286
QhpXmlWriter
Definition: qhpxmlwriter.h:23
Qhp::m_skipMainPageSection
bool m_skipMainPageSection
Definition: qhp.h:67
Qhp::m_files
QhpXmlWriter m_files
Definition: qhp.h:58
Qhp::m_prevSectionBaseName
QCString m_prevSectionBaseName
Definition: qhp.h:61
Qhp::addImageFile
void addImageFile(const QCString &name)
Definition: qhp.cpp:369
IndexIntf
Abstract interface for index generators.
Definition: index.h:32
QCString
This is an alternative implementation of QCString.
Definition: qcstring.h:108