#include <WP6ContentListener.h>

Public Member Functions | |
| WP6ContentListener (std::list< WPXPageSpan > &pageList, WPXTableList tableList, WPXDocumentInterface *documentInterface) | |
| ~WP6ContentListener () | |
| void | startDocument () |
| void | startSubDocument () |
| void | setDate (const uint16_t type, const uint16_t year, const uint8_t month, const uint8_t day, const uint8_t hour, const uint8_t minute, const uint8_t second, const uint8_t dayOfWeek, const uint8_t timeZone, const uint8_t unused) |
| void | setExtendedInformation (const uint16_t type, const WPXString &data) |
| void | setAlignmentCharacter (const uint16_t character) |
| void | setLeaderCharacter (const uint16_t character, const uint8_t numSpaces) |
| void | defineTabStops (const bool isRelative, const std::vector< WPXTabStop > &tabStops, const std::vector< bool > &usePreWP9LeaderMethods) |
| void | insertCharacter (const uint16_t character) |
| void | insertTab (const uint8_t tabType, float tabPosition) |
| void | handleLineBreak () |
| 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 | characterShadingChange (const uint8_t shading) |
| void | highlightChange (const bool isOn, const RGBSColor color) |
| void | fontChange (const uint16_t matchedFontPointSize, const uint16_t fontPID) |
| void | attributeChange (const bool isOn, const uint8_t attribute) |
| void | spacingAfterParagraphChange (const float spacingRelative, const float spacingAbsolute) |
| 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 side, const int16_t margin) |
| void | indentFirstLineChange (const int16_t offset) |
| void | columnChange (const WPXTextColumnType columnType, const uint8_t numColumns, const std::vector< float > &columnWidth, const std::vector< bool > &isFixedWidth) |
| void | updateOutlineDefinition (const WP6OutlineLocation outlineLocation, const uint16_t outlineHash, const uint8_t *numberingMethods, const uint8_t tabBehaviourFlag) |
| void | paragraphNumberOn (const uint16_t outlineHash, const uint8_t level, const uint8_t flag) |
| void | paragraphNumberOff () |
| void | displayNumberReferenceGroupOn (const uint8_t subGroup, const uint8_t level) |
| void | displayNumberReferenceGroupOff (const uint8_t subGroup) |
| void | styleGroupOn (const uint8_t subGroup) |
| void | styleGroupOff (const uint8_t subGroup) |
| void | globalOn (const uint8_t systemStyle) |
| void | globalOff () |
| void | noteOn (const uint16_t textPID) |
| void | noteOff (const WPXNoteType noteType) |
| void | headerFooterGroup (const uint8_t, const uint8_t, const uint16_t) |
| void | suppressPageCharacteristics (const uint8_t) |
| void | endDocument () |
| void | endSubDocument () |
| 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 | boxOn (const uint8_t anchoringType, const uint8_t generalPositioningFlags, const uint8_t horizontalPositioningFlags, const int16_t horizontalOffset, const uint8_t leftColumn, const uint8_t rightColumn, const uint8_t verticalPositioningFlags, const int16_t verticalOffset, const uint8_t widthFlags, const uint16_t width, const uint8_t heightFlags, const uint16_t height, const uint8_t boxContentType, const uint16_t nativeWidth, const uint16_t nativeHeight) |
| void | boxOff () |
| void | insertGraphicsData (const uint16_t packetId) |
| void | insertTextBox (const WP6SubDocument *subDocument) |
| void | commentAnnotation (const uint16_t textPID) |
| void | undoChange (const uint8_t undoType, const uint16_t undoLevel) |
Protected Member Functions | |
| void | _handleSubDocument (const WPXSubDocument *subDocument, WPXSubDocumentType subDocumentType, WPXTableList tableList, int nextTableIndice=0) |
| void | _paragraphNumberOn (const uint16_t outlineHash, const uint8_t level) |
| void | _flushText () |
| void | _handleListChange (const uint16_t outlineHash) |
| void | _changeList () |
Private Member Functions | |
| WP6ContentListener (const WP6ContentListener &) | |
| WP6ContentListener & | operator= (const WP6ContentListener &) |
Private Attributes | |
| WP6ContentParsingState * | m_parseState |
| std::map< uint16_t, WP6OutlineDefinition * > | m_outlineDefineHash |
| WP6ContentListener::WP6ContentListener | ( | std::list< WPXPageSpan > & | pageList, | |
| WPXTableList | tableList, | |||
| WPXDocumentInterface * | documentInterface | |||
| ) |
| WP6ContentListener::~WP6ContentListener | ( | ) |
| WP6ContentListener::WP6ContentListener | ( | const WP6ContentListener & | ) | [private] |
| void WP6ContentListener::startDocument | ( | ) | [inline, virtual] |
Implements WP6Listener.
| void WP6ContentListener::startSubDocument | ( | ) | [inline, virtual] |
Implements WP6Listener.
| void WP6ContentListener::setDate | ( | const uint16_t | type, | |
| const uint16_t | year, | |||
| const uint8_t | month, | |||
| const uint8_t | day, | |||
| const uint8_t | hour, | |||
| const uint8_t | minute, | |||
| const uint8_t | second, | |||
| const uint8_t | dayOfWeek, | |||
| const uint8_t | timeZone, | |||
| const uint8_t | unused | |||
| ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::setExtendedInformation | ( | const uint16_t | type, | |
| const WPXString & | data | |||
| ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::setAlignmentCharacter | ( | const uint16_t | character | ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::setLeaderCharacter | ( | const uint16_t | character, | |
| const uint8_t | numSpaces | |||
| ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::defineTabStops | ( | const bool | isRelative, | |
| const std::vector< WPXTabStop > & | tabStops, | |||
| const std::vector< bool > & | usePreWP9LeaderMethods | |||
| ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::insertCharacter | ( | const uint16_t | character | ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::insertTab | ( | const uint8_t | tabType, | |
| float | tabPosition | |||
| ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::handleLineBreak | ( | ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::insertEOL | ( | ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::insertBreak | ( | const uint8_t | breakType | ) | [inline, virtual] |
Implements WP6Listener.
| void WP6ContentListener::lineSpacingChange | ( | const float | lineSpacing | ) | [inline, virtual] |
Implements WP6Listener.
| void WP6ContentListener::justificationChange | ( | const uint8_t | justification | ) | [inline, virtual] |
Implements WP6Listener.
| void WP6ContentListener::characterColorChange | ( | const uint8_t | red, | |
| const uint8_t | green, | |||
| const uint8_t | blue | |||
| ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::characterShadingChange | ( | const uint8_t | shading | ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::highlightChange | ( | const bool | isOn, | |
| const RGBSColor | color | |||
| ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::fontChange | ( | const uint16_t | matchedFontPointSize, | |
| const uint16_t | fontPID | |||
| ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::attributeChange | ( | const bool | isOn, | |
| const uint8_t | attribute | |||
| ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::spacingAfterParagraphChange | ( | const float | spacingRelative, | |
| const float | spacingAbsolute | |||
| ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::pageMarginChange | ( | const | uint8_t, | |
| const | uint16_t | |||
| ) | [inline, virtual] |
Implements WP6Listener.
| void WP6ContentListener::pageFormChange | ( | const | uint16_t, | |
| const | uint16_t, | |||
| const | WPXFormOrientation | |||
| ) | [inline, virtual] |
Implements WP6Listener.
| void WP6ContentListener::marginChange | ( | const uint8_t | side, | |
| const uint16_t | margin | |||
| ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::paragraphMarginChange | ( | const uint8_t | side, | |
| const int16_t | margin | |||
| ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::indentFirstLineChange | ( | const int16_t | offset | ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::columnChange | ( | const WPXTextColumnType | columnType, | |
| const uint8_t | numColumns, | |||
| const std::vector< float > & | columnWidth, | |||
| const std::vector< bool > & | isFixedWidth | |||
| ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::updateOutlineDefinition | ( | const WP6OutlineLocation | outlineLocation, | |
| const uint16_t | outlineHash, | |||
| const uint8_t * | numberingMethods, | |||
| const uint8_t | tabBehaviourFlag | |||
| ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::paragraphNumberOn | ( | const uint16_t | outlineHash, | |
| const uint8_t | level, | |||
| const uint8_t | flag | |||
| ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::paragraphNumberOff | ( | ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::displayNumberReferenceGroupOn | ( | const uint8_t | subGroup, | |
| const uint8_t | level | |||
| ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::displayNumberReferenceGroupOff | ( | const uint8_t | subGroup | ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::styleGroupOn | ( | const uint8_t | subGroup | ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::styleGroupOff | ( | const uint8_t | subGroup | ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::globalOn | ( | const uint8_t | systemStyle | ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::globalOff | ( | ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::noteOn | ( | const uint16_t | textPID | ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::noteOff | ( | const WPXNoteType | noteType | ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::headerFooterGroup | ( | const | uint8_t, | |
| const | uint8_t, | |||
| const | uint16_t | |||
| ) | [inline, virtual] |
Implements WP6Listener.
| void WP6ContentListener::suppressPageCharacteristics | ( | const | uint8_t | ) | [inline, virtual] |
Implements WP6Listener.
| void WP6ContentListener::endDocument | ( | ) | [inline, virtual] |
Implements WP6Listener.
| void WP6ContentListener::endSubDocument | ( | ) | [inline, virtual] |
Implements WP6Listener.
| void WP6ContentListener::defineTable | ( | const uint8_t | position, | |
| const uint16_t | leftOffset | |||
| ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::addTableColumnDefinition | ( | const uint32_t | width, | |
| const uint32_t | leftGutter, | |||
| const uint32_t | rightGutter, | |||
| const uint32_t | attributes, | |||
| const uint8_t | alignment | |||
| ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::startTable | ( | ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::insertRow | ( | const uint16_t | rowHeight, | |
| const bool | isMinimumHeight, | |||
| const bool | isHeaderRow | |||
| ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::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 WP6Listener.
| void WP6ContentListener::endTable | ( | ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::boxOn | ( | const uint8_t | anchoringType, | |
| const uint8_t | generalPositioningFlags, | |||
| const uint8_t | horizontalPositioningFlags, | |||
| const int16_t | horizontalOffset, | |||
| const uint8_t | leftColumn, | |||
| const uint8_t | rightColumn, | |||
| const uint8_t | verticalPositioningFlags, | |||
| const int16_t | verticalOffset, | |||
| const uint8_t | widthFlags, | |||
| const uint16_t | width, | |||
| const uint8_t | heightFlags, | |||
| const uint16_t | height, | |||
| const uint8_t | boxContentType, | |||
| const uint16_t | nativeWidth, | |||
| const uint16_t | nativeHeight | |||
| ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::boxOff | ( | ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::insertGraphicsData | ( | const uint16_t | packetId | ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::insertTextBox | ( | const WP6SubDocument * | subDocument | ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::commentAnnotation | ( | const uint16_t | textPID | ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::undoChange | ( | const uint8_t | undoType, | |
| const uint16_t | undoLevel | |||
| ) | [virtual] |
Implements WP6Listener.
| void WP6ContentListener::_handleSubDocument | ( | const WPXSubDocument * | subDocument, | |
| WPXSubDocumentType | subDocumentType, | |||
| WPXTableList | tableList, | |||
| int | nextTableIndice = 0 | |||
| ) | [protected, virtual] |
Implements WPXContentListener.
| void WP6ContentListener::_paragraphNumberOn | ( | const uint16_t | outlineHash, | |
| const uint8_t | level | |||
| ) | [protected] |
| void WP6ContentListener::_flushText | ( | ) | [protected, virtual] |
Implements WPXContentListener.
| void WP6ContentListener::_handleListChange | ( | const uint16_t | outlineHash | ) | [protected] |
| void WP6ContentListener::_changeList | ( | ) | [protected, virtual] |
Implements WPXContentListener.
| WP6ContentListener& WP6ContentListener::operator= | ( | const WP6ContentListener & | ) | [private] |
std::map<uint16_t,WP6OutlineDefinition *> WP6ContentListener::m_outlineDefineHash [private] |