#include <WP3ContentListener.h>
Inheritance diagram for WP3ContentListener:
Public Member Functions | |
WP3ContentListener (std::list< WPXPageSpan > &pageList, std::vector< WP3SubDocument * > &subDocuments, WPXHLListenerImpl *listenerImpl) | |
~WP3ContentListener () | |
void | startDocument () |
void | insertCharacter (const uint16_t character) |
void | insertTab (const uint8_t tabType, float tabPosition) |
void | insertBreak (const uint8_t breakType) |
void | insertEOL () |
void | attributeChange (const bool isOn, const uint8_t attribute) |
void | lineSpacingChange (const float lineSpacing) |
void | pageMarginChange (const uint8_t side, const uint16_t margin) |
void | pageFormChange (const uint16_t length, const uint16_t width, const WPXFormOrientation orientation, const bool isPersistent) |
void | marginChange (const uint8_t side, const uint16_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 | 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 () |
void | insertCell () |
void | closeCell () |
void | closeRow () |
void | setTableCellSpan (const uint16_t colSpan, const uint16_t rowSpan) |
void | setTableCellFillColor (const RGBSColor *cellFillColor) |
void | endTable () |
void | undoChange (const uint8_t undoType, const uint16_t undoLevel) |
void | justificationChange (const uint8_t justification) |
void | setTextColor (const RGBSColor *fontColor) |
void | setTextFont (const WPXString fontName) |
void | setFontSize (const uint16_t fontSize) |
void | insertPageNumber (const WPXString &pageNumber) |
void | insertNoteReference (const WPXString ¬eReference) |
void | insertNote (const WPXNoteType noteType, WP3SubDocument *subDocument) |
void | headerFooterGroup (const uint8_t headerFooterType, const uint8_t occurenceBits, WP3SubDocument *subDocument) |
void | suppressPage (const uint16_t suppressCode) |
Protected Member Functions | |
void | _handleSubDocument (const WPXSubDocument *subDocument, const bool isHeaderFooter, WPXTableList tableList, int nextTableIndice=0) |
void | _openParagraph () |
void | _flushText () |
void | _changeList () |
Private Attributes | |
WP3ContentParsingState * | m_parseState |
std::vector< WP3SubDocument * > & | m_subDocuments |
WP3ContentListener::WP3ContentListener | ( | std::list< WPXPageSpan > & | pageList, | |
std::vector< WP3SubDocument * > & | subDocuments, | |||
WPXHLListenerImpl * | listenerImpl | |||
) |
WP3ContentListener::~WP3ContentListener | ( | ) |
void WP3ContentListener::_changeList | ( | ) | [inline, protected, virtual] |
Implements WPXContentListener.
void WP3ContentListener::_flushText | ( | ) | [protected, virtual] |
Implements WPXContentListener.
void WP3ContentListener::_handleSubDocument | ( | const WPXSubDocument * | subDocument, | |
const bool | isHeaderFooter, | |||
WPXTableList | tableList, | |||
int | nextTableIndice = 0 | |||
) | [protected, virtual] |
Implements WPXContentListener.
void WP3ContentListener::_openParagraph | ( | ) | [protected, virtual] |
Reimplemented from WPXContentListener.
void WP3ContentListener::addTableColumnDefinition | ( | const uint32_t | width, | |
const uint32_t | leftGutter, | |||
const uint32_t | rightGutter, | |||
const uint32_t | attributes, | |||
const uint8_t | alignment | |||
) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::attributeChange | ( | const bool | isOn, | |
const uint8_t | attribute | |||
) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::closeCell | ( | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::closeRow | ( | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::columnChange | ( | const WPXTextColumnType | columnType, | |
const uint8_t | numColumns, | |||
const std::vector< float > & | columnWidth, | |||
const std::vector< bool > & | isFixedWidth | |||
) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::defineTable | ( | const uint8_t | position, | |
const uint16_t | leftOffset | |||
) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::endDocument | ( | ) | [inline, virtual] |
Implements WP3Listener.
void WP3ContentListener::endTable | ( | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::headerFooterGroup | ( | const uint8_t | headerFooterType, | |
const uint8_t | occurenceBits, | |||
WP3SubDocument * | subDocument | |||
) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::indentFirstLineChange | ( | const int16_t | offset | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::insertBreak | ( | const uint8_t | breakType | ) | [inline, virtual] |
Implements WP3Listener.
void WP3ContentListener::insertCell | ( | ) |
void WP3ContentListener::insertCharacter | ( | const uint16_t | character | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::insertEOL | ( | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::insertNote | ( | const WPXNoteType | noteType, | |
WP3SubDocument * | subDocument | |||
) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::insertNoteReference | ( | const WPXString & | noteReference | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::insertPageNumber | ( | const WPXString & | pageNumber | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::insertRow | ( | ) |
void WP3ContentListener::insertTab | ( | const uint8_t | tabType, | |
float | tabPosition | |||
) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::justificationChange | ( | const uint8_t | justification | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::lineSpacingChange | ( | const float | lineSpacing | ) | [inline, virtual] |
Implements WP3Listener.
void WP3ContentListener::marginChange | ( | const uint8_t | side, | |
const uint16_t | margin | |||
) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::pageFormChange | ( | const uint16_t | length, | |
const uint16_t | width, | |||
const WPXFormOrientation | orientation, | |||
const bool | isPersistent | |||
) | [inline, virtual] |
Implements WP3Listener.
void WP3ContentListener::pageMarginChange | ( | const uint8_t | side, | |
const uint16_t | margin | |||
) | [inline, virtual] |
Implements WP3Listener.
void WP3ContentListener::setFontSize | ( | const uint16_t | fontSize | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::setTableCellFillColor | ( | const RGBSColor * | cellFillColor | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::setTableCellSpan | ( | const uint16_t | colSpan, | |
const uint16_t | rowSpan | |||
) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::setTextColor | ( | const RGBSColor * | fontColor | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::setTextFont | ( | const WPXString | fontName | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::startDocument | ( | ) | [inline, virtual] |
Implements WP3Listener.
void WP3ContentListener::startTable | ( | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::suppressPage | ( | const uint16_t | suppressCode | ) | [inline, virtual] |
Implements WP3Listener.
void WP3ContentListener::undoChange | ( | const uint8_t | undoType, | |
const uint16_t | undoLevel | |||
) | [virtual] |
Implements WP3Listener.
std::vector<WP3SubDocument *>& WP3ContentListener::m_subDocuments [private] |