Public Member Functions | Private Attributes

ODe_TOC_Listener Class Reference

Builds up the TOC body, as OpenOffice.org requires the <text:index-body> tag to be present and filled when initially opening the document. More...

#include <ODe_TOC_Listener.h>

Inheritance diagram for ODe_TOC_Listener:
ODe_AbiDocListenerImpl

List of all members.

Public Member Functions

 ODe_TOC_Listener (ODe_AuxiliaryData &rAuxiliaryData)
 Constructor.
virtual void insertText (const UT_UTF8String &rText)
virtual void insertTabChar ()
virtual void openBlock (const PP_AttrProp *pAP, ODe_ListenerAction &rAction)
virtual void closeBlock ()

Private Attributes

bool m_bInTOCBlock
ODe_AuxiliaryDatam_rAuxiliaryData

Detailed Description

Builds up the TOC body, as OpenOffice.org requires the <text:index-body> tag to be present and filled when initially opening the document.

Without it, it will show an empty TOC until the user regenerates it, which is not that pretty.

Unfortunately, we can't generate an 100% accurate preview. We can't for example output page numbers, as they only exist in AbiWord's layout classes and not in its PieceTable. Exporting the header outline is the best we can do as long as we don't store all generated TOC data in the PieceTable.


Constructor & Destructor Documentation

ODe_TOC_Listener::ODe_TOC_Listener ( ODe_AuxiliaryData rAuxiliaryData  ) 

Constructor.


Member Function Documentation

void ODe_TOC_Listener::closeBlock (  )  [virtual]
void ODe_TOC_Listener::insertTabChar (  )  [virtual]
void ODe_TOC_Listener::insertText ( const UT_UTF8String rText  )  [virtual]

Member Data Documentation


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