|
void | setDocumentLocator (const XMLLocator *locator) |
|
void | error (const std::string &fileName, int lineNr, const std::string &msg) |
|
void | startElement (const std::string &name, const XMLHandlers::Attributes &attrib) |
|
void | endElement (const std::string &name) |
|
void | startSimpleEntry (LayoutDocEntry::Kind k, const XMLHandlers::Attributes &attrib) |
|
void | startSectionEntry (LayoutDocEntry::Kind k, const XMLHandlers::Attributes &attrib, const QCString &title) |
|
void | startMemberDeclEntry (const XMLHandlers::Attributes &attrib, MemberListType type, const QCString &title, const QCString &subscript) |
|
void | startMemberDefEntry (const XMLHandlers::Attributes &attrib, MemberListType type, const QCString &title, const QCString &) |
|
void | startLayout (const XMLHandlers::Attributes &) |
|
void | startNavIndex (const XMLHandlers::Attributes &) |
|
void | endNavIndex () |
|
void | startNavEntry (const XMLHandlers::Attributes &attrib) |
|
void | endNavEntry () |
|
void | startClass (const XMLHandlers::Attributes &) |
|
void | endClass () |
|
void | startNamespace (const XMLHandlers::Attributes &) |
|
void | endNamespace () |
|
void | startConcept (const XMLHandlers::Attributes &) |
|
void | endConcept () |
|
void | startFile (const XMLHandlers::Attributes &) |
|
void | endFile () |
|
void | startGroup (const XMLHandlers::Attributes &) |
|
void | endGroup () |
|
void | startDirectory (const XMLHandlers::Attributes &) |
|
void | endDirectory () |
|
void | startMemberDef (const XMLHandlers::Attributes &) |
|
void | endMemberDef () |
|
void | startMemberDecl (const XMLHandlers::Attributes &) |
|
void | endMemberDecl () |
|
◆ LayoutParser()
LayoutParser::LayoutParser |
( |
| ) |
|
|
inlineprivate |
◆ ~LayoutParser()
LayoutParser::~LayoutParser |
( |
| ) |
|
|
inlineprivate |
◆ endClass()
void LayoutParser::endClass |
( |
| ) |
|
|
inline |
◆ endConcept()
void LayoutParser::endConcept |
( |
| ) |
|
|
inline |
◆ endDirectory()
void LayoutParser::endDirectory |
( |
| ) |
|
|
inline |
◆ endElement()
void LayoutParser::endElement |
( |
const std::string & |
name | ) |
|
◆ endFile()
void LayoutParser::endFile |
( |
| ) |
|
|
inline |
◆ endGroup()
void LayoutParser::endGroup |
( |
| ) |
|
|
inline |
◆ endMemberDecl()
void LayoutParser::endMemberDecl |
( |
| ) |
|
|
inline |
◆ endMemberDef()
void LayoutParser::endMemberDef |
( |
| ) |
|
|
inline |
◆ endNamespace()
void LayoutParser::endNamespace |
( |
| ) |
|
|
inline |
◆ endNavEntry()
void LayoutParser::endNavEntry |
( |
| ) |
|
|
inline |
◆ endNavIndex()
void LayoutParser::endNavIndex |
( |
| ) |
|
|
inline |
◆ error()
void LayoutParser::error |
( |
const std::string & |
fileName, |
|
|
int |
lineNr, |
|
|
const std::string & |
msg |
|
) |
| |
|
inline |
◆ instance()
◆ setDocumentLocator()
void LayoutParser::setDocumentLocator |
( |
const XMLLocator * |
locator | ) |
|
|
inline |
◆ startClass()
◆ startConcept()
◆ startDirectory()
◆ startElement()
◆ startFile()
◆ startGroup()
◆ startLayout()
◆ startMemberDecl()
◆ startMemberDeclEntry()
◆ startMemberDef()
◆ startMemberDefEntry()
◆ startNamespace()
◆ startNavEntry()
在文件 layout.cpp 第 265 行定义.
274 static struct NavEntryMap
319 {
"namespacemembers",
359 hasGraphicalHierarchy ?
"inherits" :
"hierarchy"
380 "annotatedinterfaces"
387 "annotatedinterfaces"
389 {
"interfacehierarchy",
394 hasGraphicalHierarchy ?
"interfaceinherits" :
"interfacehierarchy"
429 "annotatedexceptions"
436 "annotatedexceptions"
438 {
"exceptionhierarchy",
443 hasGraphicalHierarchy ?
"exceptioninherits" :
"exceptionhierarchy"
506 while (mapping[i].typeStr)
508 if (mapping[i].typeStr==type)
510 kind = mapping[i].kind;
515 if (mapping[i].typeStr==0)
520 ::warn(fileName.c_str(),
m_locator->
lineNr(),
"an entry tag within a navindex has no type attribute! Check your layout file!\n");
524 ::warn(fileName.c_str(),
m_locator->
lineNr(),
"the type '%s' is not supported for the entry tag within a navindex! Check your layout file!\n",
qPrint(type));
529 QCString baseFile = mapping[i].baseFile;
534 title = mapping[i].mainName;
537 title = mapping[i].subName;
544 intro = mapping[i].intro;
引用了 LayoutNavEntry::Classes, LayoutNavEntry::ClassHierarchy, LayoutNavEntry::ClassIndex, LayoutNavEntry::ClassList, LayoutNavEntry::ClassMembers, LayoutNavEntry::Concepts, Config_getBool, elemIsVisible(), LayoutNavEntry::Examples, LayoutNavEntry::ExceptionHierarchy, LayoutNavEntry::ExceptionIndex, LayoutNavEntry::ExceptionList, LayoutNavEntry::Exceptions, FALSE, LayoutNavEntry::FileGlobals, LayoutNavEntry::FileList, XMLLocator::fileName(), LayoutNavEntry::Files, LayoutDocManager::instance(), LayoutNavEntry::InterfaceHierarchy, LayoutNavEntry::InterfaceIndex, LayoutNavEntry::InterfaceList, LayoutNavEntry::Interfaces, QCString::isEmpty(), XMLLocator::lineNr(), m_invalidEntry, m_locator, m_rootNav, m_userGroupCount, LayoutNavEntry::MainPage, LayoutNavEntry::Modules, LayoutNavEntry::NamespaceList, LayoutNavEntry::NamespaceMembers, LayoutNavEntry::Namespaces, LayoutNavEntry::Pages, qPrint(), QCString::sprintf(), LayoutNavEntry::StructIndex, LayoutNavEntry::StructList, LayoutNavEntry::Structs, theTranslator, Translator::trClasses(), Translator::trClassHierarchy(), Translator::trClassHierarchyDescription(), Translator::trCompoundIndex(), Translator::trCompoundList(), Translator::trCompoundListDescription(), Translator::trCompoundListDescriptionFortran(), Translator::trCompoundListFortran(), Translator::trCompoundMembers(), Translator::trCompoundMembersDescription(), Translator::trCompoundMembersDescriptionFortran(), Translator::trCompoundMembersFortran(), Translator::trConcept(), Translator::trConceptList(), Translator::trConceptListDescription(), Translator::trDataTypes(), Translator::trDesignUnitHierarchy(), Translator::trDesignUnitList(), Translator::trDesignUnitListDescription(), Translator::trDesignUnitMembers(), Translator::trDesignUnits(), Translator::trExamples(), Translator::trExamplesDescription(), Translator::trExceptionHierarchy(), Translator::trExceptionHierarchyDescription(), Translator::trExceptionIndex(), Translator::trExceptionList(), Translator::trExceptionListDescription(), Translator::trExceptions(), Translator::trFile(), Translator::trFileList(), Translator::trFileListDescription(), Translator::trFileMembers(), Translator::trFileMembersDescription(), Translator::trInterfaceHierarchy(), Translator::trInterfaceHierarchyDescription(), Translator::trInterfaceIndex(), Translator::trInterfaceList(), Translator::trInterfaceListDescription(), Translator::trMainPage(), Translator::trModules(), Translator::trModulesDescription(), Translator::trModulesList(), Translator::trModulesListDescription(), Translator::trModulesMemberDescription(), Translator::trModulesMembers(), Translator::trNamespaceList(), Translator::trNamespaceListDescription(), Translator::trNamespaceMemberDescription(), Translator::trNamespaceMembers(), Translator::trNamespaces(), Translator::trPackageListDescription(), Translator::trPackageMembers(), Translator::trPackages(), Translator::trRelatedPages(), Translator::trRelatedPagesDescription(), Translator::trSliceInterfaces(), Translator::trStructIndex(), Translator::trStructList(), Translator::trStructListDescription(), Translator::trStructs(), TRUE, LayoutNavEntry::User, LayoutNavEntry::UserGroup, XMLHandlers::value() , 以及 warn().
◆ startNavIndex()
◆ startSectionEntry()
◆ startSimpleEntry()
◆ m_invalidEntry
bool LayoutParser::m_invalidEntry = false |
|
private |
◆ m_locator
const XMLLocator* LayoutParser::m_locator = nullptr |
|
private |
◆ m_part
int LayoutParser::m_part = -1 |
|
private |
在文件 layout.cpp 第 705 行定义.
被这些函数引用 endClass(), endConcept(), endDirectory(), endFile(), endGroup(), endMemberDecl(), endMemberDef(), endNamespace(), startClass(), startConcept(), startDirectory(), startFile(), startGroup(), startMemberDecl(), startMemberDeclEntry(), startMemberDef(), startMemberDefEntry(), startNamespace(), startSectionEntry() , 以及 startSimpleEntry().
◆ m_rootNav
◆ m_scope
在文件 layout.cpp 第 704 行定义.
被这些函数引用 endClass(), endConcept(), endDirectory(), endElement(), endFile(), endGroup(), endMemberDecl(), endMemberDef(), endNamespace(), endNavIndex(), startClass(), startConcept(), startDirectory(), startElement(), startFile(), startGroup(), startMemberDecl(), startMemberDef(), startNamespace() , 以及 startNavIndex().
◆ m_userGroupCount
int LayoutParser::m_userGroupCount =0 |
|
staticprivate |
该类的文档由以下文件生成:
const XMLLocator * m_locator
Base class for the layout of a navigation item at the top of the HTML pages.
Represents of a member declaration list with configurable title and subtitle.
virtual QCString trClassHierarchyDescription()=0
virtual QCString trCompoundMembers()=0
virtual QCString trModulesDescription()=0
LayoutNavEntry * rootNavEntry() const
returns the (invisible) root of the navigation tree.
virtual QCString trFileMembersDescription(bool extractAll)=0
virtual QCString trFileList()=0
uint length() const
Returns the length of the string, not counting the 0-terminator.
virtual std::string fileName() const =0
int findRev(char c, int index=-1, bool cs=TRUE) const
virtual QCString trExceptions()=0
bool isEmpty() const
Returns TRUE iff the string is empty
LayoutNavEntry * find(LayoutNavEntry::Kind k, const QCString &file=QCString()) const
virtual QCString trCompoundListDescriptionFortran()=0
virtual QCString trModules()=0
LayoutNavEntry * m_rootNav
virtual QCString trPackageListDescription()=0
virtual QCString trExceptionHierarchyDescription()=0
virtual QCString trNamespaceMemberDescription(bool extractAll)=0
virtual QCString trRelatedPages()=0
static bool elemIsVisible(const XMLHandlers::Attributes &attrib, bool defVal=TRUE)
virtual QCString trInterfaceHierarchy()=0
virtual QCString trRelatedPagesDescription()=0
virtual QCString trConcept(bool first_capital, bool singular)=0
void warn(const QCString &file, int line, const char *fmt,...)
virtual QCString trDesignUnitMembers()=0
virtual int lineNr() const =0
virtual QCString trExceptionList()=0
virtual QCString trCompoundMembersFortran()=0
virtual QCString trNamespaces()=0
static int m_userGroupCount
Represents of a member definition list with configurable title.
Represents of a piece of a documentation page without configurable parts
static const std::map< std::string, ElementCallbacks > g_elementHandlers
virtual QCString trExceptionHierarchy()=0
virtual QCString trPackageMembers()=0
QCString left(size_t len) const
virtual QCString trStructListDescription()=0
virtual QCString trExamplesDescription()=0
virtual QCString trClassHierarchy()=0
Translator * theTranslator
virtual QCString trInterfaceList()=0
virtual QCString trFileListDescription(bool extractAll)=0
virtual QCString trInterfaceHierarchyDescription()=0
virtual QCString trMainPage()=0
virtual QCString trConceptList()=0
virtual QCString trModulesMembers()=0
virtual QCString trModulesListDescription(bool extractAll)=0
virtual QCString trDesignUnitList()=0
virtual QCString trDataTypes()=0
virtual QCString trConceptListDescription(bool extractAll)=0
virtual QCString trDesignUnitListDescription()=0
void addEntry(LayoutPart p, LayoutDocEntry *e)
virtual QCString trExceptionListDescription()=0
virtual QCString trSliceInterfaces()=0
virtual QCString trCompoundListDescription()=0
virtual QCString trExceptionIndex()=0
virtual QCString trCompoundMembersDescriptionFortran(bool extractAll)=0
virtual QCString trModulesMemberDescription(bool extractAll)=0
virtual QCString trModulesList()=0
virtual QCString trDesignUnitHierarchy()=0
#define Config_getBool(name)
virtual QCString trFile(bool first_capital, bool singular)=0
void msg(const char *fmt,...)
static LayoutDocManager & instance()
Returns a reference to this singleton.
virtual QCString trNamespaceList()=0
virtual QCString trCompoundList()=0
virtual QCString trDesignUnits()=0
const char * qPrint(const char *s)
virtual QCString trNamespaceListDescription(bool extractAll)=0
virtual QCString trCompoundMembersDescription(bool extractAll)=0
virtual QCString trStructIndex()=0
virtual QCString trClasses()=0
virtual QCString trNamespaceMembers()=0
virtual QCString trPackages()=0
virtual QCString trCompoundListFortran()=0
virtual QCString trStructList()=0
virtual QCString trStructs()=0
virtual QCString trInterfaceListDescription()=0
virtual QCString trInterfaceIndex()=0
virtual QCString trExamples()=0
virtual QCString trFileMembers()=0
QCString right(size_t len) const
virtual QCString trCompoundIndex()=0
QCString & sprintf(const char *format,...)
static std::string value(const Attributes &attrib, const std::string &key)
LayoutNavEntry * parent() const
This is an alternative implementation of QCString.