#include <WP42StylesListener.h>
Public Member Functions | |
WP42StylesListener (std::list< WPXPageSpan > &pageList, std::vector< WP42SubDocument * > &subDocuments) | |
void | startDocument () |
void | insertCharacter (const uint16_t) |
void | insertTab (const uint8_t, float) |
void | insertEOL () |
void | insertBreak (const uint8_t breakType) |
void | attributeChange (const bool, const uint8_t) |
void | marginReset (const uint8_t, const uint8_t) |
void | headerFooterGroup (const uint8_t headerFooterDefinition, WP42SubDocument *subDocument) |
void | suppressPageCharacteristics (const uint8_t suppressCode) |
void | endDocument () |
Protected Member Functions | |
void | _handleSubDocument (const WPXSubDocument *subDocument, const bool isHeaderFooter, WPXTableList tableList, int nextTableIndice=0) |
Private Attributes | |
WPXPageSpan | m_currentPage |
WPXPageSpan | m_nextPage |
std::vector< WP42SubDocument * > & | m_subDocuments |
float | m_tempMarginLeft |
float | m_tempMarginRight |
bool | m_currentPageHasContent |
bool | m_isSubDocument |
std::list< WPXPageSpan >::iterator | m_pageListHardPageMark |
WP42StylesListener::WP42StylesListener | ( | std::list< WPXPageSpan > & | pageList, | |
std::vector< WP42SubDocument * > & | subDocuments | |||
) |
void WP42StylesListener::startDocument | ( | ) | [inline, virtual] |
Implements WP42Listener.
void WP42StylesListener::insertCharacter | ( | const | uint16_t | ) | [inline, virtual] |
Implements WP42Listener.
void WP42StylesListener::insertTab | ( | const | uint8_t, | |
float | ||||
) | [inline, virtual] |
Implements WP42Listener.
void WP42StylesListener::insertEOL | ( | ) | [inline, virtual] |
Implements WP42Listener.
void WP42StylesListener::insertBreak | ( | const uint8_t | breakType | ) | [virtual] |
void WP42StylesListener::attributeChange | ( | const | bool, | |
const | uint8_t | |||
) | [inline, virtual] |
Implements WP42Listener.
void WP42StylesListener::marginReset | ( | const | uint8_t, | |
const | uint8_t | |||
) | [inline, virtual] |
Implements WP42Listener.
void WP42StylesListener::headerFooterGroup | ( | const uint8_t | headerFooterDefinition, | |
WP42SubDocument * | subDocument | |||
) | [virtual] |
Implements WP42Listener.
void WP42StylesListener::suppressPageCharacteristics | ( | const uint8_t | suppressCode | ) | [virtual] |
Implements WP42Listener.
void WP42StylesListener::endDocument | ( | ) | [virtual] |
Implements WP42Listener.
void WP42StylesListener::_handleSubDocument | ( | const WPXSubDocument * | subDocument, | |
const bool | isHeaderFooter, | |||
WPXTableList | tableList, | |||
int | nextTableIndice = 0 | |||
) | [protected] |
Referenced by headerFooterGroup(), and insertBreak().
WPXPageSpan WP42StylesListener::m_currentPage [private] |
Referenced by headerFooterGroup(), insertBreak(), and suppressPageCharacteristics().
WPXPageSpan WP42StylesListener::m_nextPage [private] |
Referenced by headerFooterGroup(), and insertBreak().
std::vector<WP42SubDocument *>& WP42StylesListener::m_subDocuments [private] |
Referenced by headerFooterGroup().
float WP42StylesListener::m_tempMarginLeft [private] |
Referenced by insertBreak().
float WP42StylesListener::m_tempMarginRight [private] |
Referenced by insertBreak().
bool WP42StylesListener::m_currentPageHasContent [private] |
Referenced by _handleSubDocument(), headerFooterGroup(), insertBreak(), insertCharacter(), insertEOL(), and insertTab().
bool WP42StylesListener::m_isSubDocument [private] |
Referenced by _handleSubDocument(), and insertBreak().
std::list<WPXPageSpan>::iterator WP42StylesListener::m_pageListHardPageMark [private] |
Referenced by insertBreak().