WPXContentListener Class Reference

#include <WPXContentListener.h>

Inheritance diagram for WPXContentListener:

WPXListener WP1ContentListener WP3ContentListener WP42ContentListener WP5ContentListener WP6ContentListener

List of all members.

Protected Member Functions

 WPXContentListener (std::list< WPXPageSpan > &pageList, WPXDocumentInterface *documentInterface)
virtual ~WPXContentListener ()
void startDocument ()
void startSubDocument ()
void endDocument ()
void endSubDocument ()
void handleSubDocument (const WPXSubDocument *subDocument, WPXSubDocumentType subDocumentType, WPXTableList tableList, int nextTableIndice)
 Creates an new document state.
void insertBreak (const uint8_t breakType)
void lineSpacingChange (const double lineSpacing)
void justificationChange (const uint8_t justification)
virtual void _handleSubDocument (const WPXSubDocument *subDocument, WPXSubDocumentType subDocumentType, WPXTableList tableList, int nextTableIndice)=0
virtual void _flushText ()=0
virtual void _changeList ()=0
void _openSection ()
void _closeSection ()
void _openPageSpan ()
void _closePageSpan ()
void _appendParagraphProperties (WPXPropertyList &propList, const bool isListElement=false)
void _getTabStops (WPXPropertyListVector &tabStops)
void _appendJustification (WPXPropertyList &propList, int justification)
void _resetParagraphState (const bool isListElement=false)
virtual void _openParagraph ()
void _closeParagraph ()
void _openListElement ()
void _closeListElement ()
void _openSpan ()
void _closeSpan ()
void _openTable ()
void _closeTable ()
void _openTableRow (const double height, const bool isMinimumHeight, const bool isHeaderRow)
void _closeTableRow ()
void _openTableCell (const uint8_t colSpan, const uint8_t rowSpan, const uint8_t borderBits, const RGBSColor *cellFgColor, const RGBSColor *cellBgColor, const RGBSColor *cellBorderColor, const WPXVerticalAlignment cellVerticalAlignment)
void _closeTableCell ()
double _movePositionToFirstColumn (double position)
double _getNextTabStop () const
double _getPreviousTabStop () const
void _insertText (const WPXString &textBuffer)
void _insertBreakIfNecessary (WPXPropertyList &propList)
void _insertPageNumberParagraph (WPXPageNumberPosition position, WPXNumberingType type, WPXString fontName, double fontSize)
uint16_t _mapNonUnicodeCharacter (uint16_t character)

Protected Attributes

WPXContentParsingStatem_ps
WPXDocumentInterfacem_documentInterface
WPXPropertyList m_metaData

Private Member Functions

 WPXContentListener (const WPXContentListener &)
WPXContentListeneroperator= (const WPXContentListener &)
WPXString _colorToString (const RGBSColor *color)
WPXString _mergeColorsToString (const RGBSColor *fgColor, const RGBSColor *bgColor)
uint16_t _mapSymbolFontCharacter (uint16_t character)
uint16_t _mapDingbatsFontCharacter (uint16_t character)


Constructor & Destructor Documentation

WPXContentListener::WPXContentListener ( std::list< WPXPageSpan > &  pageList,
WPXDocumentInterface documentInterface 
) [protected]

WPXContentListener::~WPXContentListener (  )  [protected, virtual]

WPXContentListener::WPXContentListener ( const WPXContentListener  )  [private]


Member Function Documentation

void WPXContentListener::startDocument (  )  [protected]

Reimplemented in WP1ContentListener, WP3ContentListener, WP42ContentListener, WP5ContentListener, and WP6ContentListener.

void WPXContentListener::startSubDocument (  )  [protected]

Reimplemented in WP1ContentListener, WP3ContentListener, WP42ContentListener, WP5ContentListener, and WP6ContentListener.

void WPXContentListener::endDocument (  )  [protected]

Reimplemented in WP1ContentListener, WP3ContentListener, WP42ContentListener, WP5ContentListener, and WP6ContentListener.

void WPXContentListener::endSubDocument (  )  [protected]

Reimplemented in WP1ContentListener, WP3ContentListener, WP42ContentListener, WP5ContentListener, and WP6ContentListener.

void WPXContentListener::handleSubDocument ( const WPXSubDocument subDocument,
WPXSubDocumentType  subDocumentType,
WPXTableList  tableList,
int  nextTableIndice 
) [protected]

Creates an new document state.

Saves the old state on a "stack".

void WPXContentListener::insertBreak ( const uint8_t  breakType  )  [protected]

Reimplemented in WP1ContentListener, WP3ContentListener, WP42ContentListener, WP5ContentListener, and WP6ContentListener.

void WPXContentListener::lineSpacingChange ( const double  lineSpacing  )  [protected]

Reimplemented in WP3ContentListener, WP5ContentListener, and WP6ContentListener.

void WPXContentListener::justificationChange ( const uint8_t  justification  )  [protected]

Reimplemented in WP1ContentListener, WP3ContentListener, WP5ContentListener, and WP6ContentListener.

virtual void WPXContentListener::_handleSubDocument ( const WPXSubDocument subDocument,
WPXSubDocumentType  subDocumentType,
WPXTableList  tableList,
int  nextTableIndice 
) [protected, pure virtual]

Implemented in WP1ContentListener, WP3ContentListener, WP42ContentListener, WP5ContentListener, and WP6ContentListener.

virtual void WPXContentListener::_flushText (  )  [protected, pure virtual]

Implemented in WP1ContentListener, WP3ContentListener, WP42ContentListener, WP5ContentListener, and WP6ContentListener.

virtual void WPXContentListener::_changeList (  )  [protected, pure virtual]

Implemented in WP1ContentListener, WP3ContentListener, WP42ContentListener, WP5ContentListener, and WP6ContentListener.

void WPXContentListener::_openSection (  )  [protected]

void WPXContentListener::_closeSection (  )  [protected]

void WPXContentListener::_openPageSpan (  )  [protected]

void WPXContentListener::_closePageSpan (  )  [protected]

void WPXContentListener::_appendParagraphProperties ( WPXPropertyList propList,
const bool  isListElement = false 
) [protected]

void WPXContentListener::_getTabStops ( WPXPropertyListVector tabStops  )  [protected]

void WPXContentListener::_appendJustification ( WPXPropertyList propList,
int  justification 
) [protected]

void WPXContentListener::_resetParagraphState ( const bool  isListElement = false  )  [protected]

void WPXContentListener::_openParagraph (  )  [protected, virtual]

Reimplemented in WP3ContentListener.

void WPXContentListener::_closeParagraph (  )  [protected]

void WPXContentListener::_openListElement (  )  [protected]

void WPXContentListener::_closeListElement (  )  [protected]

void WPXContentListener::_openSpan (  )  [protected]

void WPXContentListener::_closeSpan (  )  [protected]

void WPXContentListener::_openTable (  )  [protected]

void WPXContentListener::_closeTable (  )  [protected]

void WPXContentListener::_openTableRow ( const double  height,
const bool  isMinimumHeight,
const bool  isHeaderRow 
) [protected]

void WPXContentListener::_closeTableRow (  )  [protected]

void WPXContentListener::_openTableCell ( const uint8_t  colSpan,
const uint8_t  rowSpan,
const uint8_t  borderBits,
const RGBSColor cellFgColor,
const RGBSColor cellBgColor,
const RGBSColor cellBorderColor,
const WPXVerticalAlignment  cellVerticalAlignment 
) [protected]

void WPXContentListener::_closeTableCell (  )  [protected]

double WPXContentListener::_movePositionToFirstColumn ( double  position  )  [protected]

double WPXContentListener::_getNextTabStop (  )  const [protected]

double WPXContentListener::_getPreviousTabStop (  )  const [protected]

void WPXContentListener::_insertText ( const WPXString textBuffer  )  [protected]

void WPXContentListener::_insertBreakIfNecessary ( WPXPropertyList propList  )  [protected]

void WPXContentListener::_insertPageNumberParagraph ( WPXPageNumberPosition  position,
WPXNumberingType  type,
WPXString  fontName,
double  fontSize 
) [protected]

uint16_t WPXContentListener::_mapNonUnicodeCharacter ( uint16_t  character  )  [protected]

WPXContentListener& WPXContentListener::operator= ( const WPXContentListener  )  [private]

WPXString WPXContentListener::_colorToString ( const RGBSColor color  )  [private]

WPXString WPXContentListener::_mergeColorsToString ( const RGBSColor fgColor,
const RGBSColor bgColor 
) [private]

uint16_t WPXContentListener::_mapSymbolFontCharacter ( uint16_t  character  )  [private]

uint16_t WPXContentListener::_mapDingbatsFontCharacter ( uint16_t  character  )  [private]


Member Data Documentation

WPXContentParsingState* WPXContentListener::m_ps [protected]

WPXDocumentInterface* WPXContentListener::m_documentInterface [protected]

WPXPropertyList WPXContentListener::m_metaData [protected]


The documentation for this class was generated from the following files:
Generated on Sun Nov 21 10:48:13 2010 for libwpd by doxygen 1.5.4