#include <WP3StylesListener.h>
Public Member Functions | |
WP3StylesListener (std::list< WPXPageSpan > &pageList, WPXTableList tableList, std::vector< WP3SubDocument * > &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 | 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 | indentFirstLineChange (const int16_t) |
void | setTabs (const bool, const std::vector< WPXTabStop >) |
void | columnChange (const WPXTextColumnType, const uint8_t, const std::vector< float > &, const std::vector< bool > &) |
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 () |
void | insertCell () |
void | closeCell () |
void | closeRow () |
void | setTableCellSpan (const uint16_t, const uint16_t) |
void | setTableCellFillColor (const RGBSColor *) |
void | endTable () |
void | undoChange (const uint8_t undoType, const uint16_t undoLevel) |
void | setTextColor (const RGBSColor *) |
void | setTextFont (const WPXString &) |
void | setFontSize (const uint16_t) |
void | insertPageNumber (const WPXString &) |
void | insertNoteReference (const WPXString &) |
void | insertNote (const WPXNoteType, WP3SubDocument *) |
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::startDocument | ( | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::insertCharacter | ( | const | uint16_t | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::insertTab | ( | const | uint8_t, | |
float | ||||
) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::insertEOL | ( | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::insertBreak | ( | const uint8_t | breakType | ) | [virtual] |
void WP3StylesListener::attributeChange | ( | const | bool, | |
const | uint8_t | |||
) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::lineSpacingChange | ( | const | float | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::justificationChange | ( | const | uint8_t | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::pageMarginChange | ( | 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 | |||
) | [virtual] |
Implements WP3Listener.
void WP3StylesListener::marginChange | ( | const uint8_t | side, | |
const uint16_t | margin | |||
) | [virtual] |
Implements WP3Listener.
void WP3StylesListener::indentFirstLineChange | ( | const | int16_t | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::setTabs | ( | const | bool, | |
const std::vector< WPXTabStop > | ||||
) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::columnChange | ( | const | WPXTextColumnType, | |
const | uint8_t, | |||
const std::vector< float > & | , | |||
const std::vector< bool > & | ||||
) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::endDocument | ( | ) | [virtual] |
Implements WP3Listener.
void WP3StylesListener::defineTable | ( | const | uint8_t, | |
const | uint16_t | |||
) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::addTableColumnDefinition | ( | const | uint32_t, | |
const | uint32_t, | |||
const | uint32_t, | |||
const | uint32_t, | |||
const | uint8_t | |||
) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::startTable | ( | ) | [virtual] |
Implements WP3Listener.
void WP3StylesListener::insertRow | ( | ) |
void WP3StylesListener::insertCell | ( | ) |
void WP3StylesListener::closeCell | ( | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::closeRow | ( | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::setTableCellSpan | ( | const | uint16_t, | |
const | uint16_t | |||
) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::setTableCellFillColor | ( | const RGBSColor * | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::endTable | ( | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::undoChange | ( | const uint8_t | undoType, | |
const uint16_t | undoLevel | |||
) | [virtual] |
Implements WP3Listener.
void WP3StylesListener::setTextColor | ( | const RGBSColor * | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::setTextFont | ( | const WPXString & | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::setFontSize | ( | const | uint16_t | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::insertPageNumber | ( | const WPXString & | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::insertNoteReference | ( | const WPXString & | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::insertNote | ( | const | WPXNoteType, | |
WP3SubDocument * | ||||
) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::headerFooterGroup | ( | const uint8_t | headerFooterType, | |
const uint8_t | occurenceBits, | |||
WP3SubDocument * | subDocument | |||
) | [virtual] |
Implements WP3Listener.
void WP3StylesListener::suppressPage | ( | const uint16_t | suppressCode | ) | [virtual] |
Implements WP3Listener.
void WP3StylesListener::_handleSubDocument | ( | const WPXSubDocument * | subDocument, | |
const bool | isHeaderFooter, | |||
WPXTableList | tableList, | |||
int | nextTableIndice = 0 | |||
) | [protected] |
Referenced by headerFooterGroup().
WPXPageSpan WP3StylesListener::m_currentPage [private] |
Referenced by headerFooterGroup(), insertBreak(), marginChange(), pageFormChange(), pageMarginChange(), and suppressPage().
WPXTableList WP3StylesListener::m_tableList [private] |
Referenced by _handleSubDocument(), and startTable().
WPXTable* WP3StylesListener::m_currentTable [private] |
Referenced by _handleSubDocument(), insertCell(), insertRow(), and startTable().
float WP3StylesListener::m_tempMarginLeft [private] |
Referenced by insertBreak(), and marginChange().
float WP3StylesListener::m_tempMarginRight [private] |
Referenced by insertBreak(), and marginChange().
bool WP3StylesListener::m_currentPageHasContent [private] |
bool WP3StylesListener::m_isSubDocument [private] |
Referenced by _handleSubDocument(), insertBreak(), and marginChange().
std::vector<WP3SubDocument *>& WP3StylesListener::m_subDocuments [private] |
Referenced by headerFooterGroup().
std::list<WPXPageSpan>::iterator WP3StylesListener::m_pageListHardPageMark [private] |
Referenced by insertBreak(), marginChange(), and WP3StylesListener().