#include <WPXContentListener.h>
Inheritance diagram for WPXContentListener:
Protected Member Functions | |
WPXContentListener (std::list< WPXPageSpan > &pageList, WPXHLListenerImpl *listenerImpl) | |
virtual | ~WPXContentListener () |
void | startDocument () |
void | endDocument () |
void | handleSubDocument (const WPXSubDocument *subDocument, const bool isHeaderFooter, 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, const bool isHeaderFooter, 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) |
Protected Attributes | |
WPXContentParsingState * | m_ps |
WPXHLListenerImpl * | m_listenerImpl |
WPXPropertyList | m_metaData |
Private Member Functions | |
WPXString | _colorToString (const RGBSColor *color) |
WPXString | _mergeColorsToString (const RGBSColor *fgColor, const RGBSColor *bgColor) |
WPXContentListener::WPXContentListener | ( | std::list< WPXPageSpan > & | pageList, | |
WPXHLListenerImpl * | listenerImpl | |||
) | [protected] |
WPXContentListener::~WPXContentListener | ( | ) | [protected, virtual] |
void WPXContentListener::_appendJustification | ( | WPXPropertyList & | propList, | |
int | justification | |||
) | [protected] |
void WPXContentListener::_appendParagraphProperties | ( | WPXPropertyList & | propList, | |
const bool | isListElement = false | |||
) | [protected] |
virtual void WPXContentListener::_changeList | ( | ) | [protected, pure virtual] |
Implemented in WP3ContentListener, WP42ContentListener, WP5ContentListener, and WP6ContentListener.
void WPXContentListener::_closeListElement | ( | ) | [protected] |
void WPXContentListener::_closePageSpan | ( | ) | [protected] |
void WPXContentListener::_closeParagraph | ( | ) | [protected] |
void WPXContentListener::_closeSection | ( | ) | [protected] |
void WPXContentListener::_closeSpan | ( | ) | [protected] |
void WPXContentListener::_closeTable | ( | ) | [protected] |
void WPXContentListener::_closeTableCell | ( | ) | [protected] |
void WPXContentListener::_closeTableRow | ( | ) | [protected] |
virtual void WPXContentListener::_flushText | ( | ) | [protected, pure virtual] |
Implemented in WP3ContentListener, WP42ContentListener, WP5ContentListener, and WP6ContentListener.
void WPXContentListener::_getTabStops | ( | WPXPropertyListVector & | tabStops | ) | [protected] |
virtual void WPXContentListener::_handleSubDocument | ( | const WPXSubDocument * | subDocument, | |
const bool | isHeaderFooter, | |||
WPXTableList | tableList, | |||
int | nextTableIndice | |||
) | [protected, pure virtual] |
Implemented in WP3ContentListener, WP42ContentListener, WP5ContentListener, and WP6ContentListener.
WPXString WPXContentListener::_mergeColorsToString | ( | const RGBSColor * | fgColor, | |
const RGBSColor * | bgColor | |||
) | [private] |
float WPXContentListener::_movePositionToFirstColumn | ( | float | position | ) | [protected] |
void WPXContentListener::_openListElement | ( | ) | [protected] |
void WPXContentListener::_openPageSpan | ( | ) | [protected] |
void WPXContentListener::_openParagraph | ( | ) | [protected, virtual] |
Reimplemented in WP3ContentListener.
void WPXContentListener::_openSection | ( | ) | [protected] |
void WPXContentListener::_openSpan | ( | ) | [protected] |
void WPXContentListener::_openTable | ( | ) | [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::_openTableRow | ( | const float | height, | |
const bool | isMinimumHeight, | |||
const bool | isHeaderRow | |||
) | [protected] |
void WPXContentListener::_resetParagraphState | ( | const bool | isListElement = false |
) | [protected] |
void WPXContentListener::endDocument | ( | ) | [protected] |
Reimplemented in WP3ContentListener, WP42ContentListener, WP5ContentListener, and WP6ContentListener.
void WPXContentListener::handleSubDocument | ( | const WPXSubDocument * | subDocument, | |
const bool | isHeaderFooter, | |||
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 WP3ContentListener, WP42ContentListener, WP5ContentListener, and WP6ContentListener.
void WPXContentListener::justificationChange | ( | const uint8_t | justification | ) | [protected] |
Reimplemented in WP3ContentListener, WP5ContentListener, and WP6ContentListener.
void WPXContentListener::lineSpacingChange | ( | const float | lineSpacing | ) | [protected] |
Reimplemented in WP3ContentListener, WP5ContentListener, and WP6ContentListener.
void WPXContentListener::startDocument | ( | ) | [protected] |
Reimplemented in WP3ContentListener, WP42ContentListener, WP5ContentListener, and WP6ContentListener.
WPXHLListenerImpl* WPXContentListener::m_listenerImpl [protected] |
WPXPropertyList WPXContentListener::m_metaData [protected] |
WPXContentParsingState* WPXContentListener::m_ps [protected] |