Doxygen
Loading...
Searching...
No Matches
HtmlGenerator::TocState Struct Reference

Public Member Functions

void writeIndent (TextStream &t)
void incIndent (TextStream &t, const DString &text)
void decIndent (TextStream &t, const DString &text)

Public Attributes

int level = 0
int indent = 0
int maxLevel = 0
BoolVector inLi

Detailed Description

Definition at line 352 of file htmlgen.h.

Member Function Documentation

◆ decIndent()

void HtmlGenerator::TocState::decIndent ( TextStream & t,
const DString & text )
inline

Definition at line 360 of file htmlgen.h.

360{ indent--; writeIndent(t); t << text << "\n"; }
void writeIndent(TextStream &t)
Definition htmlgen.h:358

References indent, and writeIndent().

Referenced by HtmlGenerator::endLocalToc(), and HtmlGenerator::startTocEntry().

◆ incIndent()

void HtmlGenerator::TocState::incIndent ( TextStream & t,
const DString & text )
inline

Definition at line 359 of file htmlgen.h.

359{ writeIndent(t); t << text << "\n"; indent++; }

References indent, and writeIndent().

Referenced by HtmlGenerator::startTocEntry().

◆ writeIndent()

void HtmlGenerator::TocState::writeIndent ( TextStream & t)
inline

Definition at line 358 of file htmlgen.h.

358{ for (int i=0;i<indent*2;i++) t << " "; }

References indent.

Referenced by decIndent(), incIndent(), and HtmlGenerator::startTocEntry().

Member Data Documentation

◆ indent

int HtmlGenerator::TocState::indent = 0

Definition at line 355 of file htmlgen.h.

Referenced by decIndent(), incIndent(), HtmlGenerator::startLocalToc(), and writeIndent().

◆ inLi

BoolVector HtmlGenerator::TocState::inLi

◆ level

int HtmlGenerator::TocState::level = 0

◆ maxLevel


The documentation for this struct was generated from the following file: