Public Member Functions | Private Member Functions | Private Attributes | Friends

IE_TOCHelper Class Reference

#include <ie_TOC.h>

Inheritance diagram for IE_TOCHelper:

List of all members.

Public Member Functions

 IE_TOCHelper (PD_Document *doc)
 ~IE_TOCHelper ()
bool hasTOC () const
bool docHasTOC () const
bool isTOCStyle (const UT_UTF8String &styleName, int *out_level=NULL) const
bool isTOCStyle (const char *styleName, int *out_level=NULL) const
int getNumTOCEntries () const
UT_UTF8String getNthTOCEntry (int nth, int *out_level=NULL) const
bool getNthTOCEntryPos (int nth, PT_DocPosition &pos) const

Private Member Functions

bool _tocNameLevelHelper (const UT_UTF8String &styleName, const char *sLStyle) const
void _defineTOC (const UT_UTF8String &toc_text, int level, PT_DocPosition pos)
 IE_TOCHelper ()
 IE_TOCHelper (const IE_TOCHelper &rhs)
IE_TOCHelperoperator= (const IE_TOCHelper &rhs)

Private Attributes

UT_GenericVector< UT_UTF8String * > mTOCStrings
UT_GenericVector< int > mTOCLevels
UT_GenericVector< PT_DocPositionmTOCPositions
bool mHasTOC
bool mDocHasTOC


class TOC_Listener

Constructor & Destructor Documentation

IE_TOCHelper::IE_TOCHelper ( PD_Document doc  ) 
IE_TOCHelper::~IE_TOCHelper (  ) 

References mTOCStrings, and UT_VECTOR_PURGEALL.

IE_TOCHelper::IE_TOCHelper (  )  [private]
IE_TOCHelper::IE_TOCHelper ( const IE_TOCHelper rhs  )  [private]

Member Function Documentation

void IE_TOCHelper::_defineTOC ( const UT_UTF8String toc_text,
int  level,
PT_DocPosition  pos 
) [private]
bool IE_TOCHelper::_tocNameLevelHelper ( const UT_UTF8String styleName,
const char *  sLStyle 
) const [private]
bool IE_TOCHelper::docHasTOC (  )  const

References mDocHasTOC.

bool IE_TOCHelper::isTOCStyle ( const char *  styleName,
int *  out_level = NULL 
) const
bool IE_TOCHelper::isTOCStyle ( const UT_UTF8String styleName,
int *  out_level = NULL 
) const
IE_TOCHelper& IE_TOCHelper::operator= ( const IE_TOCHelper rhs  )  [private]

Friends And Related Function Documentation

friend class TOC_Listener [friend]

Member Data Documentation

bool IE_TOCHelper::mHasTOC [private]

Referenced by _defineTOC(), and hasTOC().

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