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