Doxygen
PageDefImpl类 参考
+ 类 PageDefImpl 继承关系图:
+ PageDefImpl 的协作图:

Public 成员函数

 PageDefImpl (const QCString &f, int l, const QCString &n, const QCString &d, const QCString &t)
 
virtual ~PageDefImpl ()
 
virtual void setFileName (const QCString &name)
 
virtual void setLocalToc (const LocalToc &tl)
 
virtual void setShowLineNo (bool)
 
virtual DefType definitionType () const
 
virtual CodeSymbolType codeSymbolType () const
 
virtual bool isLinkableInProject () const
 
virtual bool isLinkable () const
 
virtual QCString getOutputFileBase () const
 
virtual QCString anchor () const
 
virtual void findSectionsInDocumentation ()
 
virtual QCString title () const
 
virtual const GroupDefgetGroupDef () const
 
virtual const PageLinkedRefMapgetSubPages () const
 
virtual void addInnerCompound (const Definition *d)
 
virtual bool visibleInIndex () const
 
virtual bool documentedPage () const
 
virtual bool hasSubPages () const
 
virtual bool hasParentPage () const
 
virtual bool hasTitle () const
 
virtual LocalToc localToc () const
 
virtual void setPageScope (Definition *d)
 
virtual DefinitiongetPageScope () const
 
virtual QCString displayName (bool=TRUE) const
 
virtual bool showLineNo () const
 
virtual void setTitle (const QCString &title)
 
virtual void writeDocumentation (OutputList &ol)
 
virtual void writeTagFile (TextStream &)
 
virtual void setNestingLevel (int l)
 
virtual void writePageDocumentation (OutputList &ol) const
 
- Public 成员函数 继承自 DefinitionMixin< PageDef >
 DefinitionMixin (const QCString &defFileName, int defLine, int defColumn, const QCString &name, const char *b=0, const char *d=0, bool isSymbol=TRUE)
 
virtual ~DefinitionMixin ()
 
virtual bool isAlias () const
 
virtual QCString name () const
 
virtual bool isAnonymous () const
 
virtual QCString localName () const
 
virtual QCString qualifiedName () const
 
virtual QCString symbolName () const
 
virtual QCString getSourceFileBase () const
 
virtual QCString getSourceAnchor () const
 
virtual QCString documentation () const
 
virtual int docLine () const
 
virtual QCString docFile () const
 
virtual QCString briefDescription (bool abbreviate=FALSE) const
 
virtual QCString briefDescriptionAsTooltip () const
 
virtual int briefLine () const
 
virtual QCString inbodyDocumentation () const
 
virtual QCString inbodyFile () const
 
virtual int inbodyLine () const
 
virtual QCString briefFile () const
 
virtual QCString getDefFileName () const
 
virtual QCString getDefFileExtension () const
 
virtual int getDefLine () const
 
virtual int getDefColumn () const
 
virtual bool hasDocumentation () const
 
virtual bool hasUserDocumentation () const
 
virtual bool isVisibleInProject () const
 
virtual bool isVisible () const
 
virtual bool isHidden () const
 
virtual bool isArtificial () const
 
virtual QCString getReference () const
 
virtual bool isReference () const
 
virtual QCString externalReference (const QCString &relPath) const
 
virtual int getStartDefLine () const
 
virtual int getStartBodyLine () const
 
virtual int getEndBodyLine () const
 
virtual const FileDefgetBodyDef () const
 
virtual SrcLangExt getLanguage () const
 
virtual const GroupListpartOfGroups () const
 
virtual bool isLinkableViaGroup () const
 
virtual const RefItemVectorxrefListItems () const
 
virtual const DefinitionfindInnerCompound (const QCString &name) const
 
virtual DefinitiongetOuterScope () const
 
virtual const MemberVectorgetReferencesMembers () const
 
virtual const MemberVectorgetReferencedByMembers () const
 
virtual bool hasSections () const
 
virtual bool hasSources () const
 
virtual bool hasBriefDescription () const
 
virtual QCString id () const
 
virtual const SectionRefsgetSectionRefs () const
 
virtual void setName (const QCString &name)
 
virtual void setId (const QCString &name)
 
virtual void setDefFile (const QCString &df, int defLine, int defColumn)
 
virtual void setDocumentation (const QCString &doc, const QCString &docFile, int docLine, bool stripWhiteSpace=TRUE)
 
virtual void setBriefDescription (const QCString &brief, const QCString &briefFile, int briefLine)
 
virtual void setInbodyDocumentation (const QCString &doc, const QCString &docFile, int docLine)
 
virtual void setReference (const QCString &r)
 
virtual void addSectionsToDefinition (const std::vector< const SectionInfo * > &anchorList)
 
virtual void setBodySegment (int defLine, int bls, int ble)
 
virtual void setBodyDef (const FileDef *fd)
 
virtual void addSourceReferencedBy (const MemberDef *md)
 
virtual void addSourceReferences (const MemberDef *md)
 
virtual void setRefItems (const RefItemVector &sli)
 
virtual void mergeRefItems (Definition *def)
 
virtual void mergeReferences (const Definition *other)
 
virtual void mergeReferencedBy (const Definition *other)
 
virtual void setOuterScope (Definition *def)
 
virtual void setHidden (bool b)
 
virtual void setArtificial (bool b)
 
virtual void setLanguage (SrcLangExt lang)
 
virtual void writeSourceDef (OutputList &ol, const QCString &scopeName) const
 
virtual void writeInlineCode (OutputList &ol, const QCString &scopeName) const
 
virtual bool hasSourceRefs () const
 
virtual bool hasSourceReffedBy () const
 
virtual void writeSourceRefs (OutputList &ol, const QCString &scopeName) const
 
virtual void writeSourceReffedBy (OutputList &ol, const QCString &scopeName) const
 
virtual void makePartOfGroup (const GroupDef *gd)
 
virtual void writeNavigationPath (OutputList &ol) const
 
virtual QCString navigationPathAsString () const
 
virtual void writeQuickMemberLinks (OutputList &ol, const MemberDef *md) const
 
virtual void writeSummaryLinks (OutputList &ol) const
 
virtual QCString pathFragment () const
 
virtual void writeDocAnchorsToTagFile (TextStream &fs) const
 
virtual void setLocalName (const QCString &name)
 
virtual void addSectionsToIndex ()
 
virtual void writeToc (OutputList &ol, const LocalToc &lt) const
 
virtual void computeTooltip ()
 
virtual void _setSymbolName (const QCString &name)
 
virtual QCString _symbolName () const
 
- Public 成员函数 继承自 PageDef
virtual ~PageDef ()
 
- Public 成员函数 继承自 DefinitionMutable
virtual bool hasSourceRefs () const =0
 
virtual bool hasSourceReffedBy () const =0
 
virtual ~DefinitionMutable ()=default
 
- Public 成员函数 继承自 Definition
virtual bool isAlias () const =0
 
virtual QCString name () const =0
 
virtual bool isAnonymous () const =0
 
virtual QCString localName () const =0
 
virtual QCString qualifiedName () const =0
 
virtual QCString symbolName () const =0
 
virtual QCString getSourceFileBase () const =0
 
virtual QCString getSourceAnchor () const =0
 
virtual QCString documentation () const =0
 
virtual int docLine () const =0
 
virtual QCString docFile () const =0
 
virtual QCString briefDescriptionAsTooltip () const =0
 
virtual int briefLine () const =0
 
virtual QCString inbodyDocumentation () const =0
 
virtual QCString inbodyFile () const =0
 
virtual int inbodyLine () const =0
 
virtual QCString briefFile () const =0
 
virtual QCString getDefFileName () const =0
 
virtual QCString getDefFileExtension () const =0
 
virtual int getDefLine () const =0
 
virtual int getDefColumn () const =0
 
virtual bool hasDocumentation () const =0
 
virtual bool hasUserDocumentation () const =0
 
virtual bool isVisibleInProject () const =0
 
virtual bool isVisible () const =0
 
virtual bool isHidden () const =0
 
virtual bool isArtificial () const =0
 
virtual QCString getReference () const =0
 
virtual bool isReference () const =0
 
virtual int getStartDefLine () const =0
 
virtual int getStartBodyLine () const =0
 
virtual int getEndBodyLine () const =0
 
virtual const FileDefgetBodyDef () const =0
 
virtual SrcLangExt getLanguage () const =0
 Returns the programming language this definition was written in. 更多...
 
virtual const GroupListpartOfGroups () const =0
 
virtual bool isLinkableViaGroup () const =0
 
virtual const RefItemVectorxrefListItems () const =0
 
virtual DefinitiongetOuterScope () const =0
 
virtual const MemberVectorgetReferencesMembers () const =0
 
virtual const MemberVectorgetReferencedByMembers () const =0
 
virtual bool hasSections () const =0
 
virtual bool hasSources () const =0
 
virtual bool hasBriefDescription () const =0
 returns TRUE if this class has a brief description 更多...
 
virtual QCString id () const =0
 
virtual const SectionRefsgetSectionRefs () const =0
 returns the section dictionary, only of importance for pagedef 更多...
 
virtual QCString navigationPathAsString () const =0
 
virtual QCString pathFragment () const =0
 
virtual QCString _symbolName () const =0
 
virtual ~Definition ()=default
 

Private 属性

QCString m_fileName
 
QCString m_title
 
PageLinkedRefMap m_subPages
 
Definitionm_pageScope
 
int m_nestingLevel
 
LocalToc m_localToc
 
bool m_showLineNo
 

额外继承的成员函数

- Public 类型 继承自 Definition
enum  DefType {
  TypeClass = 0, TypeFile = 1, TypeNamespace = 2, TypeMember = 3,
  TypeGroup = 4, TypePackage = 5, TypePage = 6, TypeDir = 7,
  TypeConcept = 8
}
 
- Protected 成员函数 继承自 DefinitionMixin< PageDef >
 DefinitionMixin (const DefinitionMixin &def)=default
 

详细描述

在文件 pagedef.cpp30 行定义.

构造及析构函数说明

◆ PageDefImpl()

PageDefImpl::PageDefImpl ( const QCString f,
int  l,
const QCString n,
const QCString d,
const QCString t 
)

在文件 pagedef.cpp83 行定义.

85  : DefinitionMixin(f,l,1,n), m_title(!t.isEmpty() ? t : n)
86 {
87  setDocumentation(d,f,l);
88  m_pageScope = 0;
89  m_nestingLevel = 0;
92 }

◆ ~PageDefImpl()

PageDefImpl::~PageDefImpl ( )
virtual

在文件 pagedef.cpp94 行定义.

95 {
96 }

成员函数说明

◆ addInnerCompound()

void PageDefImpl::addInnerCompound ( const Definition d)
virtual

重载 DefinitionMixin< PageDef > .

在文件 pagedef.cpp122 行定义.

123 {
124  if (def->definitionType()==Definition::TypePage)
125  {
126  PageDef *pd = const_cast<PageDef*>(toPageDef(def));
127  if (pd)
128  {
129  m_subPages.add(pd->name(),pd);
130  pd->setOuterScope(this);
131  if (this==Doxygen::mainPage.get())
132  {
134  }
135  else
136  {
138  }
139  }
140  }
141 }

引用了 LinkedRefMap< T, Hash, KeyEqual, Map >::add(), Definition::definitionType(), m_nestingLevel, m_subPages, Doxygen::mainPage, Definition::name(), PageDef::setNestingLevel(), DefinitionMutable::setOuterScope(), toPageDef() , 以及 Definition::TypePage.

◆ anchor()

virtual QCString PageDefImpl::anchor ( ) const
inlinevirtual

Returns the anchor within a page where this item can be found

实现了 PageDef.

在文件 pagedef.cpp57 行定义.

57 { return m_pageScope; }

引用了 m_pageScope.

◆ codeSymbolType()

virtual CodeSymbolType PageDefImpl::codeSymbolType ( ) const
inlinevirtual

Used for syntax highlighting symbol class

实现了 Definition.

在文件 pagedef.cpp53 行定义.

55 { return m_localToc; }

◆ definitionType()

virtual DefType PageDefImpl::definitionType ( ) const
inlinevirtual

Use this for dynamic inspection of the type of the derived class

实现了 PageDef.

在文件 pagedef.cpp52 行定义.

55 { return m_localToc; }

◆ displayName()

virtual QCString PageDefImpl::displayName ( bool  includeScope = TRUE) const
inlinevirtual

Returns the name of the definition as it appears in the output

实现了 PageDef.

在文件 pagedef.cpp71 行定义.

77 {

◆ documentedPage()

bool PageDefImpl::documentedPage ( ) const
virtual

实现了 PageDef.

在文件 pagedef.cpp363 行定义.

364 {
365  return // not part of a group
366  !getGroupDef() &&
367  // not an externally defined page
368  !isReference();
369 }

引用了 getGroupDef() , 以及 DefinitionMixin< PageDef >::isReference().

◆ findSectionsInDocumentation()

void PageDefImpl::findSectionsInDocumentation ( )
virtual

◆ getGroupDef()

const GroupDef * PageDefImpl::getGroupDef ( ) const
virtual

实现了 PageDef.

在文件 pagedef.cpp104 行定义.

105 {
106  return !partOfGroups().empty() ? partOfGroups().front() : 0;
107 }

引用了 DefinitionMixin< PageDef >::partOfGroups().

被这些函数引用 documentedPage(), getOutputFileBase() , 以及 visibleInIndex().

◆ getOutputFileBase()

QCString PageDefImpl::getOutputFileBase ( ) const
virtual

Returns the base file name (without extension) of this definition. as it is referenced to/written to disk.

实现了 PageDef.

在文件 pagedef.cpp109 行定义.

110 {
111  if (getGroupDef())
112  return getGroupDef()->getOutputFileBase();
113  else
114  return m_fileName;
115 }

引用了 getGroupDef(), GroupDef::getOutputFileBase() , 以及 m_fileName.

被这些函数引用 writeDocumentation() , 以及 writeTagFile().

◆ getPageScope()

virtual Definition* PageDefImpl::getPageScope ( ) const
inlinevirtual

实现了 PageDef.

在文件 pagedef.cpp70 行定义.

77 {

◆ getSubPages()

virtual const PageLinkedRefMap& PageDefImpl::getSubPages ( ) const
inlinevirtual

实现了 PageDef.

在文件 pagedef.cpp61 行定义.

66 :

◆ hasParentPage()

bool PageDefImpl::hasParentPage ( ) const
virtual

◆ hasSubPages()

bool PageDefImpl::hasSubPages ( ) const
virtual

实现了 PageDef.

在文件 pagedef.cpp371 行定义.

372 {
373  return !m_subPages.empty();
374 }

引用了 LinkedRefMap< T, Hash, KeyEqual, Map >::empty() , 以及 m_subPages.

被这些函数引用 writePageDocumentation().

◆ hasTitle()

bool PageDefImpl::hasTitle ( ) const
virtual

实现了 PageDef.

在文件 pagedef.cpp396 行定义.

397 {
398  return !m_title.isEmpty() && m_title.lower()!="notitle";
399 }

引用了 QCString::isEmpty(), QCString::lower() , 以及 m_title.

被这些函数引用 writeDocumentation().

◆ isLinkable()

virtual bool PageDefImpl::isLinkable ( ) const
inlinevirtual

Returns TRUE iff it is possible to link to this item. This can be a link to another project imported via a tag file.

实现了 PageDef.

在文件 pagedef.cpp55 行定义.

55 { return m_localToc; }

引用了 m_localToc.

◆ isLinkableInProject()

virtual bool PageDefImpl::isLinkableInProject ( ) const
inlinevirtual

Returns TRUE iff it is possible to link to this item within this project.

实现了 PageDef.

在文件 pagedef.cpp54 行定义.

55 { return m_localToc; }

◆ localToc()

virtual LocalToc PageDefImpl::localToc ( ) const
inlinevirtual

实现了 PageDef.

在文件 pagedef.cpp68 行定义.

77 {

◆ setFileName()

void PageDefImpl::setFileName ( const QCString name)
virtual

实现了 PageDef.

在文件 pagedef.cpp117 行定义.

118 {
119  m_fileName = name;
120 }

引用了 m_fileName , 以及 DefinitionMixin< PageDef >::name().

◆ setLocalToc()

void PageDefImpl::setLocalToc ( const LocalToc tl)
virtual

实现了 PageDef.

在文件 pagedef.cpp381 行定义.

382 {
383  m_localToc = lt;
384 }

引用了 m_localToc.

◆ setNestingLevel()

void PageDefImpl::setNestingLevel ( int  l)
virtual

实现了 PageDef.

在文件 pagedef.cpp376 行定义.

377 {
378  m_nestingLevel = l;
379 }

引用了 m_nestingLevel.

◆ setPageScope()

virtual void PageDefImpl::setPageScope ( Definition d)
inlinevirtual

实现了 PageDef.

在文件 pagedef.cpp69 行定义.

77 {

◆ setShowLineNo()

void PageDefImpl::setShowLineNo ( bool  b)
virtual

实现了 PageDef.

在文件 pagedef.cpp386 行定义.

387 {
388  m_showLineNo = b;
389 }

引用了 m_showLineNo.

◆ setTitle()

void PageDefImpl::setTitle ( const QCString title)
virtual

实现了 PageDef.

在文件 pagedef.cpp401 行定义.

402 {
403  m_title = title;
404 }

引用了 m_title , 以及 title().

◆ showLineNo()

bool PageDefImpl::showLineNo ( ) const
virtual

实现了 PageDef.

在文件 pagedef.cpp391 行定义.

392 {
393  return m_showLineNo;
394 }

引用了 m_showLineNo.

◆ title()

virtual QCString PageDefImpl::title ( ) const
inlinevirtual

实现了 PageDef.

在文件 pagedef.cpp59 行定义.

66 :

被这些函数引用 setTitle(), writeDocumentation(), writePageDocumentation() , 以及 writeTagFile().

◆ visibleInIndex()

bool PageDefImpl::visibleInIndex ( ) const
virtual

实现了 PageDef.

在文件 pagedef.cpp353 行定义.

354 {
355  static bool externalPages = Config_getBool(EXTERNAL_PAGES);
356  return // not part of a group
357  !getGroupDef() &&
358  // not an externally defined page
359  (!isReference() || externalPages)
360  ;
361 }

引用了 Config_getBool, getGroupDef() , 以及 DefinitionMixin< PageDef >::isReference().

◆ writeDocumentation()

void PageDefImpl::writeDocumentation ( OutputList ol)
virtual

实现了 PageDef.

在文件 pagedef.cpp171 行定义.

172 {
173  static bool generateTreeView = Config_getBool(GENERATE_TREEVIEW);
174 
175  //outputList->disable(OutputGenerator::Man);
176  QCString pageName,manPageName;
177  pageName = escapeCharsInString(name(),FALSE,TRUE);
178  manPageName = escapeCharsInString(name(),TRUE,TRUE);
179 
180  //printf("PageDefImpl::writeDocumentation: %s\n",getOutputFileBase().data());
181 
182  ol.pushGeneratorState();
183  //1.{
184 
185  if (m_nestingLevel>0
186  //&& // a sub page
187  //(Doxygen::mainPage==0 || getOuterScope()!=Doxygen::mainPage) // and not a subpage of the mainpage
188  )
189  {
190  // do not generate sub page output for RTF and LaTeX, as these are
191  // part of their parent page
192  ol.disableAll();
195  }
196 
197  ol.pushGeneratorState();
198  //2.{
200  startFile(ol,getOutputFileBase(),manPageName,title(),HLI_Pages,!generateTreeView);
201  ol.enableAll();
203  startFile(ol,getOutputFileBase(),pageName,title(),HLI_Pages,!generateTreeView);
204  ol.popGeneratorState();
205  //2.}
206 
207  if (!generateTreeView)
208  {
209  if (getOuterScope()!=Doxygen::globalScope && !Config_getBool(DISABLE_INDEX))
210  {
212  if (outerScope)
213  {
214  outerScope->writeNavigationPath(ol);
215  }
216  }
217  ol.endQuickIndices();
218  }
220 
221  // save old generator state and write title only to Man generator
222  ol.pushGeneratorState();
223  //2.{
225  ol.startTitleHead(manPageName);
226  ol.endTitleHead(manPageName, manPageName);
227  if (si)
228  {
229  ol.pushGeneratorState();
231  ol.writeString(" - ");
232  ol.popGeneratorState();
233 
234  if (si->title() != manPageName)
235  {
236  ol.generateDoc(docFile(),getStartBodyLine(),this,0,si->title(),TRUE,FALSE,
237  QCString(),TRUE,FALSE,Config_getBool(MARKDOWN_SUPPORT));
238  ol.endSection(si->label(),si->type());
239  }
240  }
241  ol.popGeneratorState();
242  //2.}
243 
244  // for Latex the section is already generated as a chapter in the index!
245  ol.pushGeneratorState();
246  //2.{
251  if (hasTitle() && !name().isEmpty() && si!=0)
252  {
253  ol.startPageDoc(si->title());
254  //ol.startSection(si->label,si->title,si->type);
255  startTitle(ol,getOutputFileBase(),this);
256  ol.generateDoc(docFile(),getStartBodyLine(),this,0,si->title(),TRUE,FALSE,
257  QCString(),TRUE,FALSE,Config_getBool(MARKDOWN_SUPPORT));
258  //stringToSearchIndex(getOutputFileBase(),
259  // theTranslator->trPage(TRUE,TRUE)+" "+si->title,
260  // si->title);
261  //ol.endSection(si->label,si->type);
263  }
264  else
265  ol.startPageDoc("");
266  ol.startContents();
267  ol.popGeneratorState();
268  //2.}
269 
271  {
272  writeToc(ol, m_localToc);
273  }
274 
276  ol.endContents();
277  ol.endPageDoc();
278 
279  if (generateTreeView && getOuterScope()!=Doxygen::globalScope && !Config_getBool(DISABLE_INDEX))
280  {
282  }
283  else
284  {
285  endFile(ol,FALSE,TRUE);
286  }
287 
288  ol.popGeneratorState();
289  //1.}
290 }

引用了 Config_getBool, OutputList::disable(), OutputList::disableAll(), OutputList::disableAllBut(), OutputGenerator::Docbook, DefinitionMixin< PageDef >::docFile(), OutputList::enable(), OutputList::enableAll(), OutputList::endContents(), endFile(), endFileWithNavPath(), OutputList::endPageDoc(), OutputList::endQuickIndices(), OutputList::endSection(), endTitle(), OutputList::endTitleHead(), escapeCharsInString(), FALSE, LinkedMap< T, Hash, KeyEqual, Map >::find(), OutputList::generateDoc(), DefinitionMixin< PageDef >::getOuterScope(), getOutputFileBase(), DefinitionMixin< PageDef >::getStartBodyLine(), Doxygen::globalScope, DefinitionMixin< PageDef >::hasSections(), hasTitle(), HLI_Pages, OutputGenerator::Html, SectionManager::instance(), LocalToc::isDocbookEnabled(), LocalToc::isHtmlEnabled(), LocalToc::isLatexEnabled(), SectionInfo::label(), OutputGenerator::Latex, m_localToc, m_nestingLevel, OutputGenerator::Man, DefinitionMixin< PageDef >::name(), OutputList::popGeneratorState(), OutputList::pushGeneratorState(), OutputGenerator::RTF, OutputList::startContents(), startFile(), OutputList::startPageDoc(), startTitle(), OutputList::startTitleHead(), title(), SectionInfo::title(), Definition::toDefinitionMutable, TRUE, SectionInfo::type(), DefinitionMutable::writeNavigationPath(), writePageDocumentation(), OutputList::writeString() , 以及 DefinitionMixin< PageDef >::writeToc().

◆ writePageDocumentation()

void PageDefImpl::writePageDocumentation ( OutputList ol) const
virtual

实现了 PageDef.

在文件 pagedef.cpp292 行定义.

293 {
294  ol.startTextBlock();
297  {
298  ol.pushGeneratorState();
300  ol.writeString(" - ");
301  ol.popGeneratorState();
302  }
303  ol.generateDoc(
304  docFile(), // fileName
305  docLine(), // startLine
306  this, // context
307  0, // memberdef
308  docStr, // docStr
309  TRUE, // index words
310  FALSE, // not an example
311  QCString(), // exampleName
312  FALSE, // singleLine
313  FALSE, // linkFromIndex
314  TRUE // markdown support
315  );
316  ol.endTextBlock();
317 
318  if (hasSubPages())
319  {
320  // for printed documentation we write subpages as section's of the
321  // parent page.
322  ol.pushGeneratorState();
323  ol.disableAll();
327 
328  for (const auto &subPage : m_subPages)
329  {
330  SectionType sectionType = SectionType::Paragraph;
331  switch (m_nestingLevel)
332  {
333  case 0: sectionType = SectionType::Page; break;
334  case 1: sectionType = SectionType::Section; break;
335  case 2: sectionType = SectionType::Subsection; break;
336  case 3: sectionType = SectionType::Subsubsection; break;
337  default: sectionType = SectionType::Paragraph; break;
338  }
339  QCString title = subPage->title();
340  if (title.isEmpty()) title = subPage->name();
341  ol.startSection(subPage->name(),title,sectionType);
342  ol.parseText(title);
343  ol.endSection(subPage->name(),sectionType);
345  subPage->writePageDocumentation(ol);
347  }
348 
349  ol.popGeneratorState();
350  }
351 }

引用了 OutputList::disableAll(), OutputList::disableAllBut(), OutputGenerator::Docbook, DefinitionMixin< PageDef >::docFile(), DefinitionMixin< PageDef >::docLine(), DefinitionMixin< PageDef >::documentation(), OutputList::enable(), OutputList::endSection(), OutputList::endTextBlock(), FALSE, OutputList::generateDoc(), DefinitionMixin< PageDef >::hasBriefDescription(), hasSubPages(), DefinitionMixin< PageDef >::inbodyDocumentation(), SectionManager::instance(), QCString::isEmpty(), OutputGenerator::Latex, m_nestingLevel, m_subPages, OutputGenerator::Man, DefinitionMixin< PageDef >::name(), Page, Paragraph, OutputList::parseText(), OutputList::popGeneratorState(), OutputList::pushGeneratorState(), OutputGenerator::RTF, Section, OutputList::startSection(), OutputList::startTextBlock(), Doxygen::subpageNestingLevel, Subsection, Subsubsection, title(), TRUE , 以及 OutputList::writeString().

被这些函数引用 writeDocumentation().

◆ writeTagFile()

void PageDefImpl::writeTagFile ( TextStream tagFile)
virtual

实现了 PageDef.

在文件 pagedef.cpp149 行定义.

150 {
151  bool found = name()=="citelist";
153  {
154  if (rl->listName()==name())
155  {
156  found=TRUE;
157  break;
158  }
159  }
160  if (!found) // not one of the generated related pages
161  {
162  tagFile << " <compound kind=\"page\">\n";
163  tagFile << " <name>" << name() << "</name>\n";
164  tagFile << " <title>" << convertToXML(title()) << "</title>\n";
165  tagFile << " <filename>" << addHtmlExtensionIfMissing(getOutputFileBase()) << "</filename>\n";
166  writeDocAnchorsToTagFile(tagFile);
167  tagFile << " </compound>\n";
168  }
169 }

引用了 addHtmlExtensionIfMissing(), convertToXML(), getOutputFileBase(), RefListManager::instance(), DefinitionMixin< PageDef >::name(), title(), TRUE , 以及 DefinitionMixin< PageDef >::writeDocAnchorsToTagFile().

类成员变量说明

◆ m_fileName

QCString PageDefImpl::m_fileName
private

在文件 pagedef.cpp80 行定义.

被这些函数引用 getOutputFileBase() , 以及 setFileName().

◆ m_localToc

LocalToc PageDefImpl::m_localToc
private

在文件 pagedef.cpp85 行定义.

被这些函数引用 isLinkable(), setLocalToc() , 以及 writeDocumentation().

◆ m_nestingLevel

int PageDefImpl::m_nestingLevel
private

在文件 pagedef.cpp84 行定义.

被这些函数引用 addInnerCompound(), setNestingLevel(), writeDocumentation() , 以及 writePageDocumentation().

◆ m_pageScope

Definition* PageDefImpl::m_pageScope
private

在文件 pagedef.cpp83 行定义.

被这些函数引用 anchor().

◆ m_showLineNo

bool PageDefImpl::m_showLineNo
private

在文件 pagedef.cpp86 行定义.

被这些函数引用 setShowLineNo() , 以及 showLineNo().

◆ m_subPages

PageLinkedRefMap PageDefImpl::m_subPages
private

在文件 pagedef.cpp82 行定义.

被这些函数引用 addInnerCompound(), hasSubPages() , 以及 writePageDocumentation().

◆ m_title

QCString PageDefImpl::m_title
private

在文件 pagedef.cpp81 行定义.

被这些函数引用 hasTitle() , 以及 setTitle().


该类的文档由以下文件生成:
LinkedRefMap::add
bool add(const char *k, T *obj)
Adds an object reference to the ordered vector if it was not added already.
Definition: linkedmap.h:284
OutputList::disableAllBut
void disableAllBut(OutputGenerator::OutputType o)
Definition: outputlist.cpp:76
DefinitionMixin< PageDef >::isReference
virtual bool isReference() const
Definition: definitionimpl.h:183
SectionType::Paragraph
@ Paragraph
PageDefImpl::hasSubPages
virtual bool hasSubPages() const
Definition: pagedef.cpp:371
startTitle
void startTitle(OutputList &ol, const QCString &fileName, const DefinitionMutable *def)
Definition: index.cpp:219
LinkedRefMap::empty
bool empty() const
Definition: linkedmap.h:374
RefListManager::instance
static RefListManager & instance()
Definition: reflist.h:120
endTitle
void endTitle(OutputList &ol, const QCString &fileName, const QCString &name)
Definition: index.cpp:228
Doxygen::mainPage
static std::unique_ptr< PageDef > mainPage
Definition: doxygen.h:83
PageDefImpl::m_localToc
LocalToc m_localToc
Definition: pagedef.cpp:85
Definition::toDefinitionMutable
friend DefinitionMutable * toDefinitionMutable(Definition *)
Definition: definition.cpp:1956
DefinitionMixin< PageDef >::writeDocAnchorsToTagFile
virtual void writeDocAnchorsToTagFile(TextStream &fs) const
Definition: definitionimpl.h:268
OutputList::endTitleHead
void endTitleHead(const QCString &fileName, const QCString &name)
Definition: outputlist.h:101
DefinitionMixin< PageDef >::docFile
virtual QCString docFile() const
Definition: definitionimpl.h:164
QCString::isEmpty
bool isEmpty() const
Returns TRUE iff the string is empty
Definition: qcstring.h:144
DefinitionMixin< PageDef >::writeToc
virtual void writeToc(OutputList &ol, const LocalToc &lt) const
Definition: definitionimpl.h:274
DefinitionMixin< PageDef >::partOfGroups
virtual const GroupList & partOfGroups() const
Definition: definitionimpl.h:190
Definition::TypePage
@ TypePage
Definition: definition.h:93
OutputList::writeString
void writeString(const QCString &text)
Definition: outputlist.h:111
Doxygen::globalScope
static NamespaceDefMutable * globalScope
Definition: doxygen.h:102
DefinitionMixin< PageDef >::getOuterScope
virtual Definition * getOuterScope() const
Definition: definitionimpl.h:194
LinkedMap< RefList >::Ptr
std::unique_ptr< RefList > Ptr
Definition: linkedmap.h:51
PageDefImpl::getOutputFileBase
virtual QCString getOutputFileBase() const
Definition: pagedef.cpp:109
LocalToc::isLatexEnabled
bool isLatexEnabled() const
Definition: types.h:338
PageDefImpl::m_fileName
QCString m_fileName
Definition: pagedef.cpp:80
DefinitionMixin< PageDef >::name
virtual QCString name() const
Definition: definitionimpl.h:155
endFileWithNavPath
void endFileWithNavPath(const Definition *d, OutputList &ol)
Definition: index.cpp:274
SectionType
SectionType
enum representing the various types of sections and entities that can be referred to.
Definition: section.h:28
DefinitionMixin< PageDef >::hasBriefDescription
virtual bool hasBriefDescription() const
Definition: definitionimpl.h:199
DefinitionMutable::writeNavigationPath
virtual void writeNavigationPath(OutputList &ol) const =0
SectionInfo::label
QCString label() const
Definition: section.h:65
LocalToc::isDocbookEnabled
bool isDocbookEnabled() const
Definition: types.h:340
OutputList::endTextBlock
void endTextBlock(bool paraBreak=FALSE)
Definition: outputlist.h:411
toPageDef
PageDef * toPageDef(Definition *d)
Definition: pagedef.cpp:408
OutputGenerator::RTF
@ RTF
Definition: outputgen.h:333
PageDef
A model of a page symbol.
Definition: pagedef.h:25
OutputList::disableAll
void disableAll()
Definition: outputlist.cpp:92
PageDefImpl::getGroupDef
virtual const GroupDef * getGroupDef() const
Definition: pagedef.cpp:104
OutputList::endQuickIndices
void endQuickIndices()
Definition: outputlist.h:349
addHtmlExtensionIfMissing
QCString addHtmlExtensionIfMissing(const QCString &fName)
Definition: util.cpp:5275
PageDefImpl::m_subPages
PageLinkedRefMap m_subPages
Definition: pagedef.cpp:82
OutputGenerator::Latex
@ Latex
Definition: outputgen.h:333
DefinitionMixin< PageDef >::briefDescription
virtual QCString briefDescription(bool abbreviate=FALSE) const
Definition: definitionimpl.h:165
Doxygen::subpageNestingLevel
static int subpageNestingLevel
Definition: doxygen.h:115
OutputList::startTextBlock
void startTextBlock(bool dense=FALSE)
Definition: outputlist.h:409
OutputList::disable
void disable(OutputGenerator::OutputType o)
Definition: outputlist.cpp:100
PageDefImpl::m_nestingLevel
int m_nestingLevel
Definition: pagedef.cpp:84
SectionType::Subsubsection
@ Subsubsection
DefinitionMixin< PageDef >::inbodyDocumentation
virtual QCString inbodyDocumentation() const
Definition: definitionimpl.h:168
PageDefImpl::writePageDocumentation
virtual void writePageDocumentation(OutputList &ol) const
Definition: pagedef.cpp:292
DefinitionMixin< PageDef >::getStartBodyLine
virtual int getStartBodyLine() const
Definition: definitionimpl.h:186
DefinitionMutable
Definition: definition.h:308
PageDefImpl::m_pageScope
Definition * m_pageScope
Definition: pagedef.cpp:83
OutputList::endContents
void endContents()
Definition: outputlist.h:363
Definition::name
virtual QCString name() const =0
DefinitionMixin< PageDef >::hasSections
virtual bool hasSections() const
Definition: definitionimpl.h:197
QCString::lower
QCString lower() const
Definition: qcstring.h:232
DefinitionMutable::setOuterScope
virtual void setOuterScope(Definition *d)=0
PageDef::setNestingLevel
virtual void setNestingLevel(int)=0
startFile
void startFile(OutputList &ol, const QCString &name, const QCString &manName, const QCString &title, HighlightedItem hli, bool additionalIndices, const QCString &altSidebarName)
Definition: index.cpp:235
PageDefImpl::hasTitle
virtual bool hasTitle() const
Definition: pagedef.cpp:396
TRUE
#define TRUE
Definition: qcstring.h:36
DefinitionMixin< PageDef >::setDocumentation
virtual void setDocumentation(const QCString &doc, const QCString &docFile, int docLine, bool stripWhiteSpace=TRUE)
Definition: definitionimpl.h:208
OutputGenerator::Html
@ Html
Definition: outputgen.h:333
LinkedMap::find
const T * find(const std::string &key) const
Find an object given the key.
Definition: linkedmap.h:60
SectionType::Page
@ Page
OutputList::enableAll
void enableAll()
Definition: outputlist.cpp:84
SectionInfo::title
QCString title() const
Definition: section.h:66
SectionType::Subsection
@ Subsection
DefinitionMixin< PageDef >::docLine
virtual int docLine() const
Definition: definitionimpl.h:163
PageDefImpl::title
virtual QCString title() const
Definition: pagedef.cpp:59
OutputList::startContents
void startContents()
Definition: outputlist.h:361
Definition::definitionType
virtual DefType definitionType() const =0
OutputList::popGeneratorState
void popGeneratorState()
Definition: outputlist.cpp:134
OutputGenerator::Docbook
@ Docbook
Definition: outputgen.h:333
docFindSections
void docFindSections(const QCString &input, const Definition *d, const QCString &fileName)
Definition: docparser.cpp:7681
DefinitionMixin< PageDef >::documentation
virtual QCString documentation() const
Definition: definitionimpl.h:162
OutputList::endSection
void endSection(const QCString &lab, SectionType t)
Definition: outputlist.h:333
DefinitionMixin< PageDef >::DefinitionMixin
DefinitionMixin(const QCString &defFileName, int defLine, int defColumn, const QCString &name, const char *b=0, const char *d=0, bool isSymbol=TRUE)
Definition: definitionimpl.h:146
OutputList::startTitleHead
void startTitleHead(const QCString &fileName)
Definition: outputlist.h:99
Config_getBool
#define Config_getBool(name)
Definition: config.h:33
GroupDef::getOutputFileBase
virtual QCString getOutputFileBase() const =0
LocalToc::isHtmlEnabled
bool isHtmlEnabled() const
Definition: types.h:337
SectionManager::instance
static SectionManager & instance()
returns a reference to the singleton
Definition: section.h:172
OutputList::startSection
void startSection(const QCString &lab, const QCString &title, SectionType t)
Definition: outputlist.h:331
escapeCharsInString
QCString escapeCharsInString(const QCString &name, bool allowDots, bool allowUnderscore)
Definition: util.cpp:3442
SectionType::Section
@ Section
OutputList::parseText
void parseText(const QCString &textStr)
Definition: outputlist.cpp:179
SectionInfo
class that provide information about a section.
Definition: section.h:49
OutputList::generateDoc
void generateDoc(const QCString &fileName, int startLine, const Definition *ctx, const MemberDef *md, const QCString &docStr, bool indexWords, bool isExample, const QCString &exampleName, bool singleLine, bool linkFromIndex, bool markdownSupport)
Definition: outputlist.cpp:142
OutputList::endPageDoc
void endPageDoc()
Definition: outputlist.h:367
convertNameToFile
QCString convertNameToFile(const QCString &name, bool allowDots, bool allowUnderscore)
Definition: util.cpp:3604
OutputList::pushGeneratorState
void pushGeneratorState()
Definition: outputlist.cpp:126
convertToXML
QCString convertToXML(const QCString &s, bool keepEntities)
Definition: util.cpp:3948
PageDefImpl::m_showLineNo
bool m_showLineNo
Definition: pagedef.cpp:86
OutputList::startPageDoc
void startPageDoc(const QCString &pageTitle)
Definition: outputlist.h:365
SectionInfo::type
SectionType type() const
Definition: section.h:67
OutputList::enable
void enable(OutputGenerator::OutputType o)
Definition: outputlist.cpp:108
PageDefImpl::m_title
QCString m_title
Definition: pagedef.cpp:81
HLI_Pages
@ HLI_Pages
Definition: index.h:163
endFile
void endFile(OutputList &ol, bool skipNavIndex, bool skipEndContents, const QCString &navPath)
Definition: index.cpp:254
FALSE
#define FALSE
Definition: qcstring.h:33
OutputGenerator::Man
@ Man
Definition: outputgen.h:333
QCString
This is an alternative implementation of QCString.
Definition: qcstring.h:108