#include <WP5ContentListener.h>
Public Member Functions | |
WP5ContentListener (std::list< WPXPageSpan > &pageList, std::vector< WP5SubDocument * > &subDocuments, WPXHLListenerImpl *listenerImpl) | |
~WP5ContentListener () | |
void | startDocument () |
void | setFont (const WPXString &fontName, const float fontSize) |
void | setTabs (const std::vector< WPXTabStop > &tabStops, const uint16_t tabOffset) |
void | insertCharacter (const uint16_t character) |
void | insertTab (const uint8_t tabType, const float tabPosition) |
void | insertIndent (const uint8_t indentType, const float indentPosition) |
void | insertEOL () |
void | insertBreak (const uint8_t breakType) |
void | lineSpacingChange (const float lineSpacing) |
void | justificationChange (const uint8_t justification) |
void | characterColorChange (const uint8_t red, const uint8_t green, const uint8_t blue) |
void | attributeChange (const bool isOn, const uint8_t attribute) |
void | pageMarginChange (const uint8_t, const uint16_t) |
void | pageFormChange (const uint16_t, const uint16_t, const WPXFormOrientation) |
void | marginChange (const uint8_t side, const uint16_t margin) |
void | paragraphMarginChange (const uint8_t, const int16_t) |
void | endDocument () |
void | defineTable (const uint8_t position, const uint16_t leftOffset) |
void | addTableColumnDefinition (const uint32_t width, const uint32_t leftGutter, const uint32_t rightGutter, const uint32_t attributes, const uint8_t alignment) |
void | startTable () |
void | insertRow (const uint16_t rowHeight, const bool isMinimumHeight, const bool isHeaderRow) |
void | insertCell (const uint8_t colSpan, const uint8_t rowSpan, const uint8_t borderBits, const RGBSColor *cellFgColor, const RGBSColor *cellBgColor, const RGBSColor *cellBorderColor, const WPXVerticalAlignment cellVerticalAlignment, const bool useCellAttributes, const uint32_t cellAttributes) |
void | endTable () |
void | insertNoteReference (const WPXString ¬eReference) |
void | insertNote (const WPXNoteType noteType, const WP5SubDocument *subDocument) |
void | headerFooterGroup (const uint8_t headerFooterType, const uint8_t occurenceBits, WP5SubDocument *subDocument) |
void | suppressPageCharacteristics (const uint8_t) |
void | setDefaultFont (const WPXString &fontName, const float fontSize) |
Protected Member Functions | |
void | _handleSubDocument (const WPXSubDocument *subDocument, const bool isHeaderFooter, WPXTableList tableList, int nextTableIndice=0) |
void | _flushText () |
void | _changeList () |
Private Member Functions | |
WP5ContentListener (const WP5ContentListener &) | |
WP5ContentListener & | operator= (const WP5ContentListener &) |
Private Attributes | |
WP5ContentParsingState * | m_parseState |
std::vector< WP5SubDocument * > & | m_subDocuments |
float | m_defaultFontSize |
WPXString | m_defaultFontName |
WP5ContentListener::WP5ContentListener | ( | std::list< WPXPageSpan > & | pageList, |
std::vector< WP5SubDocument * > & | subDocuments, | ||
WPXHLListenerImpl * | listenerImpl | ||
) |
WP5ContentListener::WP5ContentListener | ( | const WP5ContentListener & | ) | [private] |
void WP5ContentListener::_changeList | ( | ) | [inline, protected, virtual] |
Implements WPXContentListener.
Referenced by _handleSubDocument().
void WP5ContentListener::_flushText | ( | ) | [protected, virtual] |
Implements WPXContentListener.
Referenced by endTable(), insertCell(), insertIndent(), insertNote(), insertRow(), and insertTab().
void WP5ContentListener::_handleSubDocument | ( | const WPXSubDocument * | subDocument, |
const bool | isHeaderFooter, | ||
WPXTableList | tableList, | ||
int | nextTableIndice = 0 |
||
) | [protected, virtual] |
Implements WPXContentListener.
void WP5ContentListener::addTableColumnDefinition | ( | const uint32_t | width, |
const uint32_t | leftGutter, | ||
const uint32_t | rightGutter, | ||
const uint32_t | attributes, | ||
const uint8_t | alignment | ||
) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::attributeChange | ( | const bool | isOn, |
const uint8_t | attribute | ||
) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::characterColorChange | ( | const uint8_t | red, |
const uint8_t | green, | ||
const uint8_t | blue | ||
) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::defineTable | ( | const uint8_t | position, |
const uint16_t | leftOffset | ||
) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::endDocument | ( | ) | [inline, virtual] |
Implements WP5Listener.
void WP5ContentListener::endTable | ( | ) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::headerFooterGroup | ( | const uint8_t | headerFooterType, |
const uint8_t | occurenceBits, | ||
WP5SubDocument * | subDocument | ||
) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::insertBreak | ( | const uint8_t | breakType | ) | [inline, virtual] |
Implements WP5Listener.
void WP5ContentListener::insertCell | ( | const uint8_t | colSpan, |
const uint8_t | rowSpan, | ||
const uint8_t | borderBits, | ||
const RGBSColor * | cellFgColor, | ||
const RGBSColor * | cellBgColor, | ||
const RGBSColor * | cellBorderColor, | ||
const WPXVerticalAlignment | cellVerticalAlignment, | ||
const bool | useCellAttributes, | ||
const uint32_t | cellAttributes | ||
) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::insertCharacter | ( | const uint16_t | character | ) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::insertEOL | ( | ) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::insertIndent | ( | const uint8_t | indentType, |
const float | indentPosition | ||
) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::insertNote | ( | const WPXNoteType | noteType, |
const WP5SubDocument * | subDocument | ||
) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::insertNoteReference | ( | const WPXString & | noteReference | ) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::insertRow | ( | const uint16_t | rowHeight, |
const bool | isMinimumHeight, | ||
const bool | isHeaderRow | ||
) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::insertTab | ( | const uint8_t | tabType, |
const float | tabPosition | ||
) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::justificationChange | ( | const uint8_t | justification | ) | [inline, virtual] |
Implements WP5Listener.
Referenced by insertCell().
void WP5ContentListener::lineSpacingChange | ( | const float | lineSpacing | ) | [inline, virtual] |
Implements WP5Listener.
void WP5ContentListener::marginChange | ( | const uint8_t | side, |
const uint16_t | margin | ||
) | [virtual] |
Implements WP5Listener.
Referenced by _handleSubDocument().
WP5ContentListener& WP5ContentListener::operator= | ( | const WP5ContentListener & | ) | [private] |
void WP5ContentListener::pageFormChange | ( | const uint16_t | , |
const uint16_t | , | ||
const WPXFormOrientation | |||
) | [inline, virtual] |
Implements WP5Listener.
void WP5ContentListener::pageMarginChange | ( | const uint8_t | , |
const uint16_t | |||
) | [inline, virtual] |
Implements WP5Listener.
void WP5ContentListener::paragraphMarginChange | ( | const uint8_t | , |
const int16_t | |||
) | [inline] |
void WP5ContentListener::setDefaultFont | ( | const WPXString & | fontName, |
const float | fontSize | ||
) |
Referenced by WP5Parser::parse().
void WP5ContentListener::setFont | ( | const WPXString & | fontName, |
const float | fontSize | ||
) | [virtual] |
Implements WP5Listener.
Referenced by _handleSubDocument(), and WP5Parser::parse().
void WP5ContentListener::setTabs | ( | const std::vector< WPXTabStop > & | tabStops, |
const uint16_t | tabOffset | ||
) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::startDocument | ( | ) | [inline, virtual] |
Implements WP5Listener.
void WP5ContentListener::startTable | ( | ) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::suppressPageCharacteristics | ( | const uint8_t | ) | [inline, virtual] |
Implements WP5Listener.
Referenced by _handleSubDocument(), and setDefaultFont().
float WP5ContentListener::m_defaultFontSize [private] |
Referenced by _handleSubDocument(), and setDefaultFont().
Referenced by _flushText(), _handleSubDocument(), insertCharacter(), insertNote(), insertNoteReference(), and ~WP5ContentListener().
std::vector<WP5SubDocument *>& WP5ContentListener::m_subDocuments [private] |
Referenced by headerFooterGroup().