#include <qhp.h>
|
| Qhp () |
|
| ~Qhp () |
|
void | initialize () |
|
void | finalize () |
|
void | incContentsDepth () |
|
void | decContentsDepth () |
|
void | addContentsItem (bool isDir, const QCString &name, const QCString &ref, const QCString &file, const QCString &anchor, bool separateIndex, bool addToNavIndex, const Definition *def) |
|
void | addIndexItem (const Definition *context, const MemberDef *md, const QCString §ionAnchor, const QCString &title) |
|
void | addIndexFile (const QCString &name) |
|
void | addImageFile (const QCString &name) |
|
void | addStyleSheetFile (const QCString &name) |
|
virtual | ~IndexIntf () |
|
◆ Qhp()
◆ ~Qhp()
◆ addContentsItem()
◆ addFile()
void Qhp::addFile |
( |
const QCString & |
fileName | ) |
|
|
private |
◆ addImageFile()
void Qhp::addImageFile |
( |
const QCString & |
name | ) |
|
|
virtual |
◆ addIndexFile()
void Qhp::addIndexFile |
( |
const QCString & |
name | ) |
|
|
virtual |
◆ addIndexItem()
实现了 IndexIntf.
在文件 qhp.cpp 第 223 行定义.
234 static bool separateMemberPages =
Config_getBool(SEPARATE_MEMBER_PAGES);
242 if (context==0)
return;
247 QCString contRef = separateMemberPages ? cfname : cfiname;
253 ref =
makeRef(contRef, anchor);
255 const char * attributes[] =
257 "name", level2.
data(),
270 const char * attributes[] =
272 "name", level1.
data(),
引用了 MemberDef::anchor(), Config_getBool, QCString::data(), MemberDef::getFileDef(), MemberDef::getGroupDef(), MemberDef::getOutputFileBase(), Definition::getOutputFileBase(), QCString::isEmpty(), m_index, makeRef(), Definition::name() , 以及 QhpXmlWriter::openClose().
◆ addStyleSheetFile()
void Qhp::addStyleSheetFile |
( |
const QCString & |
name | ) |
|
|
virtual |
◆ clearPrevSection()
void Qhp::clearPrevSection |
( |
| ) |
|
|
private |
◆ decContentsDepth()
void Qhp::decContentsDepth |
( |
| ) |
|
|
virtual |
◆ finalize()
实现了 IndexIntf.
在文件 qhp.cpp 第 148 行定义.
172 std::ofstream file(fileName.
str(),std::ofstream::out | std::ofstream::binary);
175 term(
"Could not open file %s for writing\n", fileName.
data());
引用了 QhpXmlWriter::close(), Config_getString, QCString::data(), QhpXmlWriter::dumpTo(), getQhpFileName(), handlePrevSection(), QhpXmlWriter::insert(), m_doc, m_files, m_index, m_openCount, m_toc, QCString::str() , 以及 term().
◆ getFullProjectName()
◆ getQhpFileName()
◆ handlePrevSection()
void Qhp::handlePrevSection |
( |
| ) |
|
|
private |
在文件 qhp.cpp 第 301 行定义.
323 const char *
const attributes[] =
325 "ref", finalRef.
data(),
引用了 clearPrevSection(), QCString::data(), getFullProjectName(), QCString::isNull(), m_openCount, m_prevSectionAnchor, m_prevSectionBaseName, m_prevSectionLevel, m_prevSectionTitle, m_sectionLevel, m_skipMainPageSection, m_toc, makeRef(), QhpXmlWriter::open(), QhpXmlWriter::openClose() , 以及 TRUE.
被这些函数引用 addContentsItem() , 以及 finalize().
◆ incContentsDepth()
void Qhp::incContentsDepth |
( |
| ) |
|
|
virtual |
◆ initialize()
实现了 IndexIntf.
在文件 qhp.cpp 第 69 行定义.
89 const char * rootAttributes[] =
90 {
"version",
"1.0", 0 };
92 m_doc.
open(
"QtHelpProject", rootAttributes);
100 const char * tagAttributes[] =
101 {
"name", filterName.
data(), 0 };
102 m_doc.
open(
"customFilter", tagAttributes);
106 for (
const auto &attr : customFilterAttributes)
118 if (std::find(sectionFilterAttributes.begin(), sectionFilterAttributes.end(),
"doxygen") ==
119 sectionFilterAttributes.end())
121 sectionFilterAttributes.push_back(
"doxygen");
123 for (
const auto &attr : sectionFilterAttributes)
133 const char *
const attributes[] =
134 {
"title", fullProjectname.
data(),
135 "ref", indexFile.
data(),
引用了 QhpXmlWriter::close(), Config_getString, QCString::data(), QhpXmlWriter::declaration(), getFullProjectName(), Doxygen::htmlFileExtension, QCString::isEmpty(), m_doc, m_files, m_index, m_openCount, m_prevSectionLevel, m_prevSectionTitle, m_sectionLevel, m_toc, QhpXmlWriter::open(), QhpXmlWriter::openCloseContent() , 以及 split().
◆ setPrevSection()
◆ m_doc
◆ m_files
◆ m_index
◆ m_openCount
◆ m_prevSectionAnchor
◆ m_prevSectionBaseName
◆ m_prevSectionLevel
int Qhp::m_prevSectionLevel = 0 |
|
private |
◆ m_prevSectionTitle
◆ m_sectionLevel
int Qhp::m_sectionLevel = 0 |
|
private |
◆ m_skipMainPageSection
bool Qhp::m_skipMainPageSection = false |
|
private |
◆ m_toc
该类的文档由以下文件生成:
std::vector< std::string > StringVector
bool isEmpty() const
Returns TRUE iff the string is empty
void declaration(const QCString &version, const QCString &encoding)
static std::vector< QCString > split(const QCString &str, const QCString &sep, bool allowEmptyEntries=FALSE, bool cleanup=TRUE)
QCString m_prevSectionAnchor
void setIndentLevel(int level)
void setPrevSection(const QCString &title, const QCString &basename, const QCString &anchor, int level)
void dumpTo(TextStream &file)
static QCString makeRef(const QCString &withoutExtension, const QCString &anchor)
char & at(size_t i)
Returns a reference to the character at index i.
Text streaming class that buffers data.
QCString m_prevSectionTitle
virtual QCString anchor() const =0
void close(const QCString &elementName)
void open(const QCString &elementName, const char *const attributes[]=0)
static QCString getFullProjectName()
virtual QCString name() const =0
void insert(QhpXmlWriter const &source)
virtual QCString getOutputFileBase() const =0
virtual QCString getOutputFileBase() const =0
#define Config_getBool(name)
static QCString htmlFileExtension
void openClose(const QCString &elementName, const char *const attributes[]=0)
void term(const char *fmt,...)
void addFile(const QCString &fileName)
bool isNull() const
Returns TRUE iff the string is empty.
virtual const FileDef * getFileDef() const =0
#define Config_getString(name)
static QCString getQhpFileName()
void openCloseContent(const QCString &elementName, const QCString &content)
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string
bool m_skipMainPageSection
QCString m_prevSectionBaseName
bool resize(size_t newlen)
Resizes the string to hold newlen characters (this value should also count the 0-terminator).
virtual const GroupDef * getGroupDef() const =0
This is an alternative implementation of QCString.