35 if (result.
at(0)==
'!')
50 if (!withoutExtension)
return QCString();
52 if (!anchor)
return result;
53 return result+
"#"+anchor;
56 Qhp::Qhp() : m_prevSectionLevel(0), m_sectionLevel(0), m_skipMainPageSection(
FALSE)
89 const char * rootAttributes[] =
90 {
"version",
"1.0", 0 };
92 m_doc.
open(
"QtHelpProject", rootAttributes);
100 const char * tagAttributes[] =
101 {
"name", filterName, 0 };
102 m_doc.
open(
"customFilter", tagAttributes);
105 for (
int i = 0; i < (
int)customFilterAttributes.
count(); i++)
119 sectionFilterAttributes <<
"doxygen";
121 for (
int i = 0; i < (
int)sectionFilterAttributes.
count(); i++)
131 const char *
const attributes[] =
132 {
"title", fullProjectname,
171 err(
"Could not open file %s for writing\n", fileName.
data());
193 const char * ,
const char *
file,
194 const char *anchor,
bool ,
202 if (!f.
isEmpty() && f.
at(0)==
'^')
return;
211 for (; diff > 0; diff--)
218 const char *sectionAnchor,
const char *
word)
228 static bool separateMemberPages =
Config_getBool(
"SEPARATE_MEMBER_PAGES");
236 if (context==0)
return;
241 QCString contRef = separateMemberPages ? cfname : cfiname;
242 QCString anchor = sectionAnchor ? QCString(sectionAnchor) : md->
anchor();
247 ref =
makeRef(contRef, anchor);
248 QCString
id = level1+
"::"+level2;
249 const char * attributes[] =
263 QCString ref =
makeRef(contRef,sectionAnchor);
264 const char * attributes[] =
289 if (projectName.
isEmpty()) projectName=
"Root";
290 return projectName + (versionText.
isEmpty()
317 const char *
const attributes[] =
void setIndentLevel(int level)
QCString m_prevSectionTitle
void setPrevSection(const char *title, const char *basename, const char *anchor, int level)
void close(char const *elementName)
static QCString htmlFileExtension
void addStyleSheetFile(const char *name)
void declaration(char const *version, char const *encoding)
void addFile(const char *fileName)
The QString class provides an abstraction of Unicode text and the classic C null-terminated char arra...
static QCString makeFileName(const char *withoutExtension)
void addContentsItem(bool isDir, const char *name, const char *ref, const char *file, const char *anchor, bool separateIndex, bool addToNavIndex, Definition *def)
void open(char const *elementName, char const *const *attributes=0)
virtual QCString getOutputFileBase() const =0
The QChar class provides a light-weight Unicode character.
FileDef * getFileDef() const
void addImageFile(const char *name)
const QCString & name() const
static QCString getQhpFileName()
void openCloseContent(char const *elementName, char const *content)
void addIndexFile(const char *name)
void addIndexItem(Definition *context, MemberDef *md, const char *sectionAnchor, const char *title)
QCString m_prevSectionAnchor
const char * data() const
#define Config_getString(val)
#define Config_getBool(val)
void err(const char *fmt,...)
bool m_skipMainPageSection
uint contains(const T &x) const
QCString mid(uint index, uint len=0xffffffff) const
The QFile class is an I/O device that operates on files.
static QCString makeRef(const char *withoutExtension, const char *anchor)
GroupDef * getGroupDef() const
static QCString getFullProjectName()
QCString getOutputFileBase() const
void openClose(char const *elementName, char const *const *attributes=0)
void insert(QhpXmlWriter const &source)
static QStringList split(const QString &sep, const QString &str, bool allowEmptyEntries=FALSE)
union ptb::content::word::word word
QCString m_prevSectionBaseName