#include <WP3StylesListener.h>
Public Member Functions | |
WP3StylesListener (std::list< WPXPageSpan > &pageList, WPXTableList tableList, std::vector< WP3SubDocument * > &subDocuments) | |
void | startDocument () |
void | startSubDocument () |
void | insertCharacter (unsigned) |
void | insertTab () |
void | insertTab (unsigned char, double) |
void | insertEOL () |
void | insertBreak (unsigned char breakType) |
void | attributeChange (bool, unsigned char) |
void | lineSpacingChange (double) |
void | justificationChange (unsigned char) |
void | pageMarginChange (unsigned char side, unsigned short margin) |
void | pageFormChange (unsigned short length, unsigned short width, WPXFormOrientation orientation) |
void | marginChange (unsigned char side, unsigned short margin) |
void | indentFirstLineChange (double) |
void | setTabs (bool, const std::vector< WPXTabStop >) |
void | columnChange (WPXTextColumnType, unsigned char, const std::vector< double > &, const std::vector< bool > &) |
void | endDocument () |
void | endSubDocument () |
void | defineTable (unsigned char, unsigned short) |
void | addTableColumnDefinition (unsigned, unsigned, unsigned, unsigned, unsigned char) |
void | startTable () |
void | closeCell () |
void | closeRow () |
void | setTableCellSpan (unsigned short, unsigned short) |
void | setTableCellFillColor (const RGBSColor *) |
void | endTable () |
void | undoChange (unsigned char undoType, unsigned short undoLevel) |
void | setTextColor (const RGBSColor *) |
void | setTextFont (const librevenge::RVNGString &) |
void | setFontSize (unsigned short) |
void | insertPageNumber (const librevenge::RVNGString &) |
void | insertNoteReference (const librevenge::RVNGString &) |
void | insertNote (WPXNoteType, const WP3SubDocument *) |
void | headerFooterGroup (unsigned char headerFooterType, unsigned char occurrenceBits, WP3SubDocument *subDocument) |
void | suppressPage (unsigned short suppressCode) |
void | backTab () |
void | leftIndent () |
void | leftIndent (double) |
void | leftRightIndent () |
void | leftRightIndent (double) |
void | insertPicture (double, double, double, double, unsigned char, unsigned char, unsigned short, const librevenge::RVNGBinaryData &) |
void | insertTextBox (double, double, double, double, unsigned char, unsigned char, unsigned short, const WP3SubDocument *, const WP3SubDocument *) |
void | insertWP51Table (double, double, double, double, unsigned char, unsigned char, unsigned short, const WP3SubDocument *, const WP3SubDocument *) |
Protected Member Functions | |
void | _handleSubDocument (const WPXSubDocument *subDocument, WPXSubDocumentType subDocumentType, WPXTableList tableList, int nextTableIndice=0) |
Private Member Functions | |
WP3StylesListener (const WP3StylesListener &) | |
WP3StylesListener & | operator= (const WP3StylesListener &) |
Private Attributes | |
WPXPageSpan | m_currentPage |
WPXTableList | m_tableList |
WPXTable * | m_currentTable |
double | m_tempMarginLeft |
double | 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 | ||
) |
WP3StylesListener::WP3StylesListener | ( | const WP3StylesListener & | ) | [private] |
void WP3StylesListener::_handleSubDocument | ( | const WPXSubDocument * | subDocument, |
WPXSubDocumentType | subDocumentType, | ||
WPXTableList | tableList, | ||
int | nextTableIndice = 0 |
||
) | [protected] |
Referenced by headerFooterGroup().
void WP3StylesListener::addTableColumnDefinition | ( | unsigned | , |
unsigned | , | ||
unsigned | , | ||
unsigned | , | ||
unsigned char | |||
) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::attributeChange | ( | bool | , |
unsigned char | |||
) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::backTab | ( | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::closeCell | ( | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::closeRow | ( | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::columnChange | ( | WPXTextColumnType | , |
unsigned char | , | ||
const std::vector< double > & | , | ||
const std::vector< bool > & | |||
) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::defineTable | ( | unsigned char | , |
unsigned short | |||
) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::endDocument | ( | ) | [virtual] |
Implements WP3Listener.
void WP3StylesListener::endSubDocument | ( | ) | [virtual] |
Implements WP3Listener.
Referenced by WP3Parser::parseSubDocument().
void WP3StylesListener::endTable | ( | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::headerFooterGroup | ( | unsigned char | headerFooterType, |
unsigned char | occurrenceBits, | ||
WP3SubDocument * | subDocument | ||
) | [virtual] |
Implements WP3Listener.
void WP3StylesListener::indentFirstLineChange | ( | double | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::insertBreak | ( | unsigned char | breakType | ) | [virtual] |
Implements WP3Listener.
Referenced by endDocument(), and endSubDocument().
void WP3StylesListener::insertCharacter | ( | unsigned | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::insertEOL | ( | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::insertNote | ( | WPXNoteType | , |
const WP3SubDocument * | |||
) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::insertNoteReference | ( | const librevenge::RVNGString & | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::insertPageNumber | ( | const librevenge::RVNGString & | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::insertPicture | ( | double | , |
double | , | ||
double | , | ||
double | , | ||
unsigned char | , | ||
unsigned char | , | ||
unsigned short | , | ||
const librevenge::RVNGBinaryData & | |||
) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::insertTab | ( | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::insertTab | ( | unsigned char | , |
double | |||
) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::insertTextBox | ( | double | , |
double | , | ||
double | , | ||
double | , | ||
unsigned char | , | ||
unsigned char | , | ||
unsigned short | , | ||
const WP3SubDocument * | , | ||
const WP3SubDocument * | |||
) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::insertWP51Table | ( | double | , |
double | , | ||
double | , | ||
double | , | ||
unsigned char | , | ||
unsigned char | , | ||
unsigned short | , | ||
const WP3SubDocument * | , | ||
const WP3SubDocument * | |||
) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::justificationChange | ( | unsigned char | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::leftIndent | ( | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::leftIndent | ( | double | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::leftRightIndent | ( | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::leftRightIndent | ( | double | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::lineSpacingChange | ( | double | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::marginChange | ( | unsigned char | side, |
unsigned short | margin | ||
) | [virtual] |
Implements WP3Listener.
WP3StylesListener& WP3StylesListener::operator= | ( | const WP3StylesListener & | ) | [private] |
void WP3StylesListener::pageFormChange | ( | unsigned short | length, |
unsigned short | width, | ||
WPXFormOrientation | orientation | ||
) | [virtual] |
Implements WP3Listener.
void WP3StylesListener::pageMarginChange | ( | unsigned char | side, |
unsigned short | margin | ||
) | [virtual] |
Implements WP3Listener.
void WP3StylesListener::setFontSize | ( | unsigned short | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::setTableCellFillColor | ( | const RGBSColor * | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::setTableCellSpan | ( | unsigned short | , |
unsigned short | |||
) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::setTabs | ( | bool | , |
const std::vector< WPXTabStop > | |||
) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::setTextColor | ( | const RGBSColor * | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::setTextFont | ( | const librevenge::RVNGString & | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::startDocument | ( | ) | [inline, virtual] |
Implements WP3Listener.
void WP3StylesListener::startSubDocument | ( | ) | [inline, virtual] |
Implements WP3Listener.
Referenced by WP3Parser::parseSubDocument().
void WP3StylesListener::startTable | ( | ) | [virtual] |
Implements WP3Listener.
void WP3StylesListener::suppressPage | ( | unsigned short | suppressCode | ) | [virtual] |
Implements WP3Listener.
void WP3StylesListener::undoChange | ( | unsigned char | undoType, |
unsigned short | undoLevel | ||
) | [virtual] |
Implements WP3Listener.
WPXPageSpan WP3StylesListener::m_currentPage [private] |
Referenced by headerFooterGroup(), insertBreak(), marginChange(), pageFormChange(), pageMarginChange(), and suppressPage().
bool WP3StylesListener::m_currentPageHasContent [private] |
Referenced by _handleSubDocument(), backTab(), headerFooterGroup(), insertBreak(), insertCharacter(), insertEOL(), insertNote(), insertTab(), marginChange(), pageFormChange(), and startTable().
WPXTable* WP3StylesListener::m_currentTable [private] |
Referenced by _handleSubDocument(), and startTable().
bool WP3StylesListener::m_isSubDocument [private] |
Referenced by _handleSubDocument(), insertBreak(), and marginChange().
std::list<WPXPageSpan>::iterator WP3StylesListener::m_pageListHardPageMark [private] |
Referenced by insertBreak(), marginChange(), and WP3StylesListener().
std::vector<WP3SubDocument *>& WP3StylesListener::m_subDocuments [private] |
Referenced by headerFooterGroup().
WPXTableList WP3StylesListener::m_tableList [private] |
Referenced by _handleSubDocument(), and startTable().
double WP3StylesListener::m_tempMarginLeft [private] |
Referenced by insertBreak(), and marginChange().
double WP3StylesListener::m_tempMarginRight [private] |
Referenced by insertBreak(), and marginChange().