#include <WPXContentListener.h>

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 float 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 float 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 () |
| float | _movePositionToFirstColumn (float position) |
| float | _getNextTabStop () const |
| float | _getPreviousTabStop () const |
| void | _insertBreakIfNecessary (WPXPropertyList &propList) |
Protected Attributes | |
| WPXContentParsingState * | m_ps |
| WPXDocumentInterface * | m_documentInterface |
| WPXPropertyList | m_metaData |
Private Member Functions | |
| WPXContentListener (const WPXContentListener &) | |
| WPXContentListener & | operator= (const WPXContentListener &) |
| WPXString | _colorToString (const RGBSColor *color) |
| WPXString | _mergeColorsToString (const RGBSColor *fgColor, const RGBSColor *bgColor) |
| WPXContentListener::WPXContentListener | ( | std::list< WPXPageSpan > & | pageList, | |
| WPXDocumentInterface * | documentInterface | |||
| ) | [protected] |
| WPXContentListener::~WPXContentListener | ( | ) | [protected, virtual] |
| WPXContentListener::WPXContentListener | ( | const WPXContentListener & | ) | [private] |
| 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 float | 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 float | 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] |
| float WPXContentListener::_movePositionToFirstColumn | ( | float | position | ) | [protected] |
| float WPXContentListener::_getNextTabStop | ( | ) | const [protected] |
| float WPXContentListener::_getPreviousTabStop | ( | ) | const [protected] |
| void WPXContentListener::_insertBreakIfNecessary | ( | WPXPropertyList & | propList | ) | [protected] |
| WPXContentListener& WPXContentListener::operator= | ( | const WPXContentListener & | ) | [private] |
| WPXString WPXContentListener::_mergeColorsToString | ( | const RGBSColor * | fgColor, | |
| const RGBSColor * | bgColor | |||
| ) | [private] |
WPXContentParsingState* WPXContentListener::m_ps [protected] |
WPXPropertyList WPXContentListener::m_metaData [protected] |