#include <WP5StylesListener.h>
Public Member Functions | |
WP5StylesListener (std::list< WPXPageSpan > &pageList, WPXTableList tableList, std::vector< WP5SubDocument * > &subDocuments) | |
void | startDocument () |
void | startSubDocument () |
void | setFont (const WPXString &, double) |
void | setTabs (const std::vector< WPXTabStop > &, uint16_t) |
void | insertCharacter (uint32_t) |
void | insertTab (uint8_t, double) |
virtual void | insertIndent (uint8_t, double) |
void | characterColorChange (uint8_t, uint8_t, uint8_t) |
void | insertEOL () |
void | insertBreak (uint8_t breakType) |
void | attributeChange (bool, uint8_t) |
void | lineSpacingChange (double) |
void | justificationChange (uint8_t) |
void | pageMarginChange (uint8_t side, uint16_t margin) |
void | pageFormChange (uint16_t length, uint16_t width, WPXFormOrientation orientation) |
void | marginChange (uint8_t side, uint16_t margin) |
void | endDocument () |
void | endSubDocument () |
void | defineTable (uint8_t, uint16_t) |
void | addTableColumnDefinition (uint32_t, uint32_t, uint32_t, uint32_t, uint8_t) |
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 &) |
void | insertNote (WPXNoteType, const WP5SubDocument *) |
void | headerFooterGroup (uint8_t headerFooterType, uint8_t occurenceBits, WP5SubDocument *subDocument) |
void | suppressPageCharacteristics (uint8_t suppressCode) |
void | boxOn (uint8_t, uint8_t, uint16_t, uint16_t, uint16_t, uint16_t) |
virtual void | boxOff () |
virtual void | insertGraphicsData (const WPXBinaryData *) |
Protected Member Functions | |
void | _handleSubDocument (const WPXSubDocument *subDocument, WPXSubDocumentType subDocumentType, 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 |
double | m_tempMarginLeft |
double | 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, |
WPXSubDocumentType | subDocumentType, | ||
WPXTableList | tableList, | ||
int | nextTableIndice = 0 |
||
) | [protected] |
Referenced by headerFooterGroup(), and insertBreak().
void WP5StylesListener::addTableColumnDefinition | ( | uint32_t | , |
uint32_t | , | ||
uint32_t | , | ||
uint32_t | , | ||
uint8_t | |||
) | [inline, virtual] |
Implements WP5Listener.
void WP5StylesListener::attributeChange | ( | bool | , |
uint8_t | |||
) | [inline, virtual] |
Implements WP5Listener.
virtual void WP5StylesListener::boxOff | ( | ) | [inline, virtual] |
Implements WP5Listener.
void WP5StylesListener::boxOn | ( | uint8_t | , |
uint8_t | , | ||
uint16_t | , | ||
uint16_t | , | ||
uint16_t | , | ||
uint16_t | |||
) | [inline, virtual] |
Implements WP5Listener.
void WP5StylesListener::characterColorChange | ( | uint8_t | , |
uint8_t | , | ||
uint8_t | |||
) | [inline, virtual] |
Implements WP5Listener.
void WP5StylesListener::defineTable | ( | uint8_t | , |
uint16_t | |||
) | [inline, virtual] |
Implements WP5Listener.
void WP5StylesListener::endDocument | ( | ) | [virtual] |
Implements WP5Listener.
void WP5StylesListener::endSubDocument | ( | ) | [virtual] |
Implements WP5Listener.
Referenced by WP5Parser::parseSubDocument().
void WP5StylesListener::endTable | ( | ) | [inline, virtual] |
Implements WP5Listener.
void WP5StylesListener::headerFooterGroup | ( | uint8_t | headerFooterType, |
uint8_t | occurenceBits, | ||
WP5SubDocument * | subDocument | ||
) | [virtual] |
Implements WP5Listener.
void WP5StylesListener::insertBreak | ( | uint8_t | breakType | ) | [virtual] |
Implements WP5Listener.
Referenced by endDocument(), and endSubDocument().
void WP5StylesListener::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 WP5StylesListener::insertCharacter | ( | uint32_t | ) | [inline, virtual] |
Implements WP5Listener.
void WP5StylesListener::insertEOL | ( | ) | [inline, virtual] |
Implements WP5Listener.
virtual void WP5StylesListener::insertGraphicsData | ( | const WPXBinaryData * | ) | [inline, virtual] |
Implements WP5Listener.
virtual void WP5StylesListener::insertIndent | ( | uint8_t | , |
double | |||
) | [inline, virtual] |
Implements WP5Listener.
void WP5StylesListener::insertNote | ( | WPXNoteType | , |
const WP5SubDocument * | |||
) | [inline, virtual] |
Implements WP5Listener.
void WP5StylesListener::insertNoteReference | ( | const WPXString & | ) | [inline, virtual] |
Implements WP5Listener.
void WP5StylesListener::insertRow | ( | uint16_t | rowHeight, |
bool | isMinimumHeight, | ||
bool | isHeaderRow | ||
) | [virtual] |
Implements WP5Listener.
void WP5StylesListener::insertTab | ( | uint8_t | , |
double | |||
) | [inline, virtual] |
Implements WP5Listener.
void WP5StylesListener::justificationChange | ( | uint8_t | ) | [inline, virtual] |
Implements WP5Listener.
void WP5StylesListener::lineSpacingChange | ( | double | ) | [inline, virtual] |
Implements WP5Listener.
void WP5StylesListener::marginChange | ( | uint8_t | side, |
uint16_t | margin | ||
) | [virtual] |
Implements WP5Listener.
WP5StylesListener& WP5StylesListener::operator= | ( | const WP5StylesListener & | ) | [private] |
void WP5StylesListener::pageFormChange | ( | uint16_t | length, |
uint16_t | width, | ||
WPXFormOrientation | orientation | ||
) | [virtual] |
Implements WP5Listener.
void WP5StylesListener::pageMarginChange | ( | uint8_t | side, |
uint16_t | margin | ||
) | [virtual] |
Implements WP5Listener.
void WP5StylesListener::setFont | ( | const WPXString & | , |
double | |||
) | [inline, virtual] |
Implements WP5Listener.
void WP5StylesListener::setTabs | ( | const std::vector< WPXTabStop > & | , |
uint16_t | |||
) | [inline, virtual] |
Implements WP5Listener.
void WP5StylesListener::startDocument | ( | ) | [inline, virtual] |
Implements WP5Listener.
void WP5StylesListener::startSubDocument | ( | ) | [inline, virtual] |
Implements WP5Listener.
Referenced by WP5Parser::parseSubDocument().
void WP5StylesListener::startTable | ( | ) | [virtual] |
Implements WP5Listener.
void WP5StylesListener::suppressPageCharacteristics | ( | uint8_t | suppressCode | ) | [virtual] |
Implements WP5Listener.
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().
double WP5StylesListener::m_tempMarginLeft [private] |
Referenced by insertBreak(), and marginChange().
double WP5StylesListener::m_tempMarginRight [private] |
Referenced by insertBreak(), and marginChange().