浏览该文件的文档.
35 if (result.
at(0)==
'!')
52 if (anchor.
isEmpty())
return result;
53 return result+
"#"+anchor;
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(),
172 std::ofstream file(fileName.
str(),std::ofstream::out | std::ofstream::binary);
175 term(
"Could not open file %s for writing\n", fileName.
data());
206 if (!f.
isEmpty() && f.
at(0)==
'^')
return;
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(),
295 if (projectName.
isEmpty()) projectName=
"Root";
296 return projectName + (versionText.
isEmpty()
323 const char *
const attributes[] =
325 "ref", finalRef.
data(),
std::vector< std::string > StringVector
void addIndexItem(const Definition *context, const MemberDef *md, const QCString §ionAnchor, const QCString &title)
The common base class of all entity definitions found in the sources.
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
QCString addHtmlExtensionIfMissing(const QCString &fName)
A model of a class/file/namespace member symbol.
void close(const QCString &elementName)
void open(const QCString &elementName, const char *const attributes[]=0)
static QCString getFullProjectName()
void addIndexFile(const QCString &name)
virtual QCString name() const =0
void insert(QhpXmlWriter const &source)
virtual QCString getOutputFileBase() const =0
void addStyleSheetFile(const QCString &name)
QCString mid(size_t index, size_t len=static_cast< size_t >(-1)) const
virtual QCString getOutputFileBase() const =0
#define Config_getBool(name)
static QCString htmlFileExtension
void openClose(const QCString &elementName, const char *const attributes[]=0)
void addContentsItem(bool isDir, const QCString &name, const QCString &ref, const QCString &file, const QCString &anchor, bool separateIndex, bool addToNavIndex, const Definition *def)
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)
static QCString makeFileName(const QCString &withoutExtension)
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
A bunch of utility functions.
QCString m_prevSectionBaseName
void addImageFile(const QCString &name)
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.