Doxygen
Loading...
Searching...
No Matches
LocalToc Class Reference

#include <src/types.h>

Public Types

enum  Type {
  None = 0 , Html = 0 , Latex = 1 , Xml = 2 ,
  Docbook = 3 , numTocTypes = 4
}
 

Public Member Functions

 LocalToc ()
 
void enableHtml (int level)
 
void enableLatex (int level)
 
void enableXml (int level)
 
void enableDocbook (int level)
 
bool isHtmlEnabled () const
 
bool isLatexEnabled () const
 
bool isXmlEnabled () const
 
bool isDocbookEnabled () const
 
bool nothingEnabled () const
 
int htmlLevel () const
 
int latexLevel () const
 
int xmlLevel () const
 
int docbookLevel () const
 
int mask () const
 

Private Attributes

int m_mask
 
int m_level [numTocTypes]
 

Detailed Description

Definition at line 417 of file types.h.

Member Enumeration Documentation

◆ Type

Enumerator
None 
Html 
Latex 
Xml 
Docbook 
numTocTypes 

Definition at line 420 of file types.h.

420 {
421 None = 0, // initial value
422 Html = 0, // index / also to be used as bit position in mask (1 << Html)
423 Latex = 1, // ...
424 Xml = 2, // ...
425 Docbook = 3, // ...
426 numTocTypes = 4 // number of enum values
427 };
@ Xml
Definition types.h:424
@ None
Definition types.h:421
@ Html
Definition types.h:422
@ Docbook
Definition types.h:425
@ Latex
Definition types.h:423
@ numTocTypes
Definition types.h:426

Constructor & Destructor Documentation

◆ LocalToc()

LocalToc::LocalToc ( )
inline

Definition at line 428 of file types.h.

428: m_mask(None) { memset(m_level,0,sizeof(m_level)); }
int m_level[numTocTypes]
Definition types.h:466
int m_mask
Definition types.h:465

References m_level, m_mask, and None.

Member Function Documentation

◆ docbookLevel()

int LocalToc::docbookLevel ( ) const
inline

Definition at line 461 of file types.h.

461{ return m_level[Docbook]; }

References Docbook, and m_level.

Referenced by DocbookGenerator::writeLocalToc().

◆ enableDocbook()

void LocalToc::enableDocbook ( int level)
inline

Definition at line 446 of file types.h.

447 {
448 m_mask|=(1<<Docbook);
449 m_level[Docbook]=level;
450 }

References Docbook, m_level, and m_mask.

◆ enableHtml()

void LocalToc::enableHtml ( int level)
inline

Definition at line 431 of file types.h.

432 {
433 m_mask|=(1<<Html);
434 m_level[Html]=level;
435 }

References Html, m_level, and m_mask.

◆ enableLatex()

void LocalToc::enableLatex ( int level)
inline

Definition at line 436 of file types.h.

437 {
438 m_mask|=(1<<Latex);
439 m_level[Latex]=level;
440 }

References Latex, m_level, and m_mask.

◆ enableXml()

void LocalToc::enableXml ( int level)
inline

Definition at line 441 of file types.h.

442 {
443 m_mask|=(1<<Xml);
444 m_level[Xml]=level;
445 }

References m_level, m_mask, and Xml.

◆ htmlLevel()

int LocalToc::htmlLevel ( ) const
inline

Definition at line 458 of file types.h.

458{ return m_level[Html]; }

References Html, and m_level.

Referenced by HtmlGenerator::writeLocalToc().

◆ isDocbookEnabled()

bool LocalToc::isDocbookEnabled ( ) const
inline

Definition at line 456 of file types.h.

456{ return (m_mask & (1<<Docbook))!=0; }

References Docbook, and m_mask.

Referenced by DocbookGenerator::writeLocalToc().

◆ isHtmlEnabled()

bool LocalToc::isHtmlEnabled ( ) const
inline

Definition at line 453 of file types.h.

453{ return (m_mask & (1<<Html))!=0; }

References Html, and m_mask.

Referenced by HtmlGenerator::writeLocalToc().

◆ isLatexEnabled()

bool LocalToc::isLatexEnabled ( ) const
inline

Definition at line 454 of file types.h.

454{ return (m_mask & (1<<Latex))!=0; }

References Latex, and m_mask.

Referenced by LatexGenerator::writeLocalToc().

◆ isXmlEnabled()

bool LocalToc::isXmlEnabled ( ) const
inline

Definition at line 455 of file types.h.

455{ return (m_mask & (1<<Xml))!=0; }

References m_mask, and Xml.

Referenced by generateXMLForPage().

◆ latexLevel()

int LocalToc::latexLevel ( ) const
inline

Definition at line 459 of file types.h.

459{ return m_level[Latex]; }

References Latex, and m_level.

Referenced by LatexGenerator::writeLocalToc().

◆ mask()

int LocalToc::mask ( ) const
inline

Definition at line 462 of file types.h.

462{ return m_mask; }

References m_mask.

◆ nothingEnabled()

bool LocalToc::nothingEnabled ( ) const
inline

Definition at line 457 of file types.h.

457{ return m_mask == None; }

References m_mask, and None.

◆ xmlLevel()

int LocalToc::xmlLevel ( ) const
inline

Definition at line 460 of file types.h.

460{ return m_level[Xml]; }

References m_level, and Xml.

Referenced by generateXMLForPage().

Member Data Documentation

◆ m_level

int LocalToc::m_level[numTocTypes]
private

◆ m_mask


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