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