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 579 of file types.h.

Member Enumeration Documentation

◆ Type

Enumerator
None 
Html 
Latex 
Xml 
Docbook 
numTocTypes 

Definition at line 582 of file types.h.

582 {
583 None = 0, // initial value
584 Html = 0, // index / also to be used as bit position in mask (1 << Html)
585 Latex = 1, // ...
586 Xml = 2, // ...
587 Docbook = 3, // ...
588 numTocTypes = 4 // number of enum values
589 };
@ Xml
Definition types.h:586
@ None
Definition types.h:583
@ Html
Definition types.h:584
@ Docbook
Definition types.h:587
@ Latex
Definition types.h:585
@ numTocTypes
Definition types.h:588

Constructor & Destructor Documentation

◆ LocalToc()

LocalToc::LocalToc ( )
inline

Definition at line 590 of file types.h.

590: m_mask(None) { memset(m_level,0,sizeof(m_level)); }
int m_level[numTocTypes]
Definition types.h:628
int m_mask
Definition types.h:627

References m_level, m_mask, and None.

Member Function Documentation

◆ docbookLevel()

int LocalToc::docbookLevel ( ) const
inline

Definition at line 623 of file types.h.

623{ return m_level[Docbook]; }

References Docbook, and m_level.

Referenced by DocbookGenerator::writeLocalToc().

◆ enableDocbook()

void LocalToc::enableDocbook ( int level)
inline

Definition at line 608 of file types.h.

609 {
610 m_mask|=(1<<Docbook);
611 m_level[Docbook]=level;
612 }

References Docbook, m_level, and m_mask.

◆ enableHtml()

void LocalToc::enableHtml ( int level)
inline

Definition at line 593 of file types.h.

594 {
595 m_mask|=(1<<Html);
596 m_level[Html]=level;
597 }

References Html, m_level, and m_mask.

◆ enableLatex()

void LocalToc::enableLatex ( int level)
inline

Definition at line 598 of file types.h.

599 {
600 m_mask|=(1<<Latex);
601 m_level[Latex]=level;
602 }

References Latex, m_level, and m_mask.

◆ enableXml()

void LocalToc::enableXml ( int level)
inline

Definition at line 603 of file types.h.

604 {
605 m_mask|=(1<<Xml);
606 m_level[Xml]=level;
607 }

References m_level, m_mask, and Xml.

◆ htmlLevel()

int LocalToc::htmlLevel ( ) const
inline

Definition at line 620 of file types.h.

620{ return m_level[Html]; }

References Html, and m_level.

Referenced by HtmlGenerator::writeLocalToc().

◆ isDocbookEnabled()

bool LocalToc::isDocbookEnabled ( ) const
inline

Definition at line 618 of file types.h.

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

References Docbook, and m_mask.

Referenced by DocbookGenerator::writeLocalToc().

◆ isHtmlEnabled()

bool LocalToc::isHtmlEnabled ( ) const
inline

Definition at line 615 of file types.h.

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

References Html, and m_mask.

Referenced by HtmlGenerator::writeLocalToc().

◆ isLatexEnabled()

bool LocalToc::isLatexEnabled ( ) const
inline

Definition at line 616 of file types.h.

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

References Latex, and m_mask.

Referenced by LatexGenerator::writeLocalToc().

◆ isXmlEnabled()

bool LocalToc::isXmlEnabled ( ) const
inline

Definition at line 617 of file types.h.

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

References m_mask, and Xml.

Referenced by generateXMLForPage().

◆ latexLevel()

int LocalToc::latexLevel ( ) const
inline

Definition at line 621 of file types.h.

621{ return m_level[Latex]; }

References Latex, and m_level.

Referenced by LatexGenerator::writeLocalToc().

◆ mask()

int LocalToc::mask ( ) const
inline

Definition at line 624 of file types.h.

624{ return m_mask; }

References m_mask.

◆ nothingEnabled()

bool LocalToc::nothingEnabled ( ) const
inline

Definition at line 619 of file types.h.

619{ return m_mask == None; }

References m_mask, and None.

◆ xmlLevel()

int LocalToc::xmlLevel ( ) const
inline

Definition at line 622 of file types.h.

622{ 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: