#include <WP5StylesListener.h>
Public Member Functions | |
| WP5StylesListener (std::list< WPXPageSpan > &pageList, WPXTableList tableList, std::vector< WP5SubDocument * > &subDocuments) | |
| void | startDocument () |
| void | setFont (const WPXString &, const float) |
| void | setTabs (const std::vector< WPXTabStop > &, const uint16_t) |
| void | insertCharacter (const uint16_t) |
| void | insertTab (const uint8_t, const float) |
| virtual void | insertIndent (const uint8_t, const float) |
| void | characterColorChange (const uint8_t, const uint8_t, const uint8_t) |
| void | insertEOL () |
| void | insertBreak (const uint8_t breakType) |
| void | attributeChange (const bool, const uint8_t) |
| void | lineSpacingChange (const float) |
| void | justificationChange (const uint8_t) |
| void | pageMarginChange (const uint8_t side, const uint16_t margin) |
| void | pageFormChange (const uint16_t length, const uint16_t width, const WPXFormOrientation orientation) |
| void | marginChange (const uint8_t side, const uint16_t margin) |
| void | endDocument () |
| void | defineTable (const uint8_t, const uint16_t) |
| void | addTableColumnDefinition (const uint32_t, const uint32_t, const uint32_t, const uint32_t, const uint8_t) |
| 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 &) |
| void | insertNote (const WPXNoteType, const WP5SubDocument *) |
| void | headerFooterGroup (const uint8_t headerFooterType, const uint8_t occurenceBits, WP5SubDocument *subDocument) |
| void | suppressPageCharacteristics (const uint8_t suppressCode) |
Protected Member Functions | |
| void | _handleSubDocument (const WPXSubDocument *subDocument, const bool isHeaderFooter, WPXTableList tableList, int nextTableIndice=0) |
Private Member Functions | |
| WP5StylesListener (const WP5StylesListener &) | |
| WP5StylesListener & | operator= (const WP5StylesListener &) |
Private Attributes | |
| WPXPageSpan | m_currentPage |
| WPXPageSpan | m_nextPage |
| WPXTableList | m_tableList |
| WPXTable * | m_currentTable |
| float | m_tempMarginLeft |
| float | m_tempMarginRight |
| bool | m_currentPageHasContent |
| bool | m_isSubDocument |
| std::vector< WP5SubDocument * > & | m_subDocuments |
| std::list< WPXPageSpan >::iterator | m_pageListHardPageMark |
| WP5StylesListener::WP5StylesListener | ( | std::list< WPXPageSpan > & | pageList, | |
| WPXTableList | tableList, | |||
| std::vector< WP5SubDocument * > & | subDocuments | |||
| ) |
| WP5StylesListener::WP5StylesListener | ( | const WP5StylesListener & | ) | [private] |
| void WP5StylesListener::_handleSubDocument | ( | const WPXSubDocument * | subDocument, | |
| const bool | isHeaderFooter, | |||
| WPXTableList | tableList, | |||
| int | nextTableIndice = 0 | |||
| ) | [protected] |
Referenced by headerFooterGroup(), and insertBreak().
| void WP5StylesListener::addTableColumnDefinition | ( | const | uint32_t, | |
| const | uint32_t, | |||
| const | uint32_t, | |||
| const | uint32_t, | |||
| const | uint8_t | |||
| ) | [inline] |
| void WP5StylesListener::attributeChange | ( | const | bool, | |
| const | uint8_t | |||
| ) | [inline] |
| void WP5StylesListener::characterColorChange | ( | const | uint8_t, | |
| const | uint8_t, | |||
| const | uint8_t | |||
| ) | [inline] |
| void WP5StylesListener::defineTable | ( | const | uint8_t, | |
| const | uint16_t | |||
| ) | [inline] |
| void WP5StylesListener::endDocument | ( | ) |
| void WP5StylesListener::endTable | ( | ) | [inline] |
| void WP5StylesListener::headerFooterGroup | ( | const uint8_t | headerFooterType, | |
| const uint8_t | occurenceBits, | |||
| WP5SubDocument * | subDocument | |||
| ) |
| void WP5StylesListener::insertBreak | ( | const uint8_t | breakType | ) |
Referenced by endDocument().
| void WP5StylesListener::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 WP5StylesListener::insertCharacter | ( | const | uint16_t | ) | [inline] |
| void WP5StylesListener::insertEOL | ( | ) | [inline] |
| virtual void WP5StylesListener::insertIndent | ( | const | uint8_t, | |
| const | float | |||
| ) | [inline, virtual] |
| void WP5StylesListener::insertNote | ( | const | WPXNoteType, | |
| const WP5SubDocument * | ||||
| ) | [inline] |
| void WP5StylesListener::insertNoteReference | ( | const WPXString & | ) | [inline] |
| void WP5StylesListener::insertRow | ( | const uint16_t | rowHeight, | |
| const bool | isMinimumHeight, | |||
| const bool | isHeaderRow | |||
| ) |
| void WP5StylesListener::insertTab | ( | const | uint8_t, | |
| const | float | |||
| ) | [inline] |
| void WP5StylesListener::justificationChange | ( | const | uint8_t | ) | [inline] |
| void WP5StylesListener::lineSpacingChange | ( | const | float | ) | [inline] |
| void WP5StylesListener::marginChange | ( | const uint8_t | side, | |
| const uint16_t | margin | |||
| ) |
| WP5StylesListener& WP5StylesListener::operator= | ( | const WP5StylesListener & | ) | [private] |
| void WP5StylesListener::pageFormChange | ( | const uint16_t | length, | |
| const uint16_t | width, | |||
| const WPXFormOrientation | orientation | |||
| ) |
| void WP5StylesListener::pageMarginChange | ( | const uint8_t | side, | |
| const uint16_t | margin | |||
| ) |
| void WP5StylesListener::setFont | ( | const WPXString & | , | |
| const | float | |||
| ) | [inline] |
| void WP5StylesListener::setTabs | ( | const std::vector< WPXTabStop > & | , | |
| const | uint16_t | |||
| ) | [inline] |
| void WP5StylesListener::startDocument | ( | ) | [inline] |
| void WP5StylesListener::startTable | ( | ) |
| void WP5StylesListener::suppressPageCharacteristics | ( | const uint8_t | suppressCode | ) |
WPXPageSpan WP5StylesListener::m_currentPage [private] |
Referenced by headerFooterGroup(), insertBreak(), marginChange(), pageFormChange(), pageMarginChange(), and suppressPageCharacteristics().
bool WP5StylesListener::m_currentPageHasContent [private] |
WPXTable* WP5StylesListener::m_currentTable [private] |
Referenced by _handleSubDocument(), insertCell(), insertRow(), and startTable().
bool WP5StylesListener::m_isSubDocument [private] |
Referenced by _handleSubDocument(), insertBreak(), and marginChange().
WPXPageSpan WP5StylesListener::m_nextPage [private] |
Referenced by headerFooterGroup(), and insertBreak().
std::list<WPXPageSpan>::iterator WP5StylesListener::m_pageListHardPageMark [private] |
Referenced by insertBreak(), and marginChange().
std::vector<WP5SubDocument *>& WP5StylesListener::m_subDocuments [private] |
Referenced by headerFooterGroup().
WPXTableList WP5StylesListener::m_tableList [private] |
Referenced by _handleSubDocument(), and startTable().
float WP5StylesListener::m_tempMarginLeft [private] |
Referenced by insertBreak(), and marginChange().
float WP5StylesListener::m_tempMarginRight [private] |
Referenced by insertBreak(), and marginChange().