#include <WP3ContentListener.h>
Public Member Functions | |
WP3ContentListener (std::list< WPXPageSpan > &pageList, std::vector< WP3SubDocument * > &subDocuments, librevenge::RVNGTextInterface *documentInterface) | |
~WP3ContentListener () | |
void | startDocument () |
void | startSubDocument () |
void | insertCharacter (unsigned character) |
void | insertTab () |
void | insertTab (unsigned char tabType, double tabPosition) |
void | insertBreak (unsigned char breakType) |
void | insertEOL () |
void | attributeChange (bool isOn, unsigned char attribute) |
void | lineSpacingChange (double lineSpacing) |
void | pageMarginChange (unsigned char, unsigned short) |
void | pageFormChange (unsigned short, unsigned short, WPXFormOrientation) |
void | marginChange (unsigned char side, unsigned short margin) |
void | indentFirstLineChange (double offset) |
void | setTabs (bool isRelative, const std::vector< WPXTabStop > tabStops) |
void | columnChange (WPXTextColumnType columnType, unsigned char numColumns, const std::vector< double > &columnWidth, const std::vector< bool > &isFixedWidth) |
void | endDocument () |
void | endSubDocument () |
void | defineTable (unsigned char position, unsigned short leftOffset) |
void | addTableColumnDefinition (unsigned width, unsigned leftGutter, unsigned rightGutter, unsigned attributes, unsigned char alignment) |
void | startTable () |
void | insertRow () |
void | insertCell () |
void | closeCell () |
void | closeRow () |
void | setTableCellSpan (unsigned short colSpan, unsigned short rowSpan) |
void | setTableCellFillColor (const RGBSColor *cellFillColor) |
void | endTable () |
void | undoChange (unsigned char undoType, unsigned short undoLevel) |
void | justificationChange (unsigned char justification) |
void | setTextColor (const RGBSColor *fontColor) |
void | setTextFont (const librevenge::RVNGString &fontName) |
void | setFontSize (unsigned short fontSize) |
void | insertPageNumber (const librevenge::RVNGString &pageNumber) |
void | insertNoteReference (const librevenge::RVNGString ¬eReference) |
void | insertNote (WPXNoteType noteType, const WP3SubDocument *subDocument) |
void | headerFooterGroup (unsigned char headerFooterType, unsigned char occurrenceBits, WP3SubDocument *subDocument) |
void | suppressPage (unsigned short) |
void | backTab () |
void | leftIndent () |
void | leftIndent (double offset) |
void | leftRightIndent () |
void | leftRightIndent (double offset) |
void | insertPicture (double height, double width, double verticalOffset, double horizontalOffset, unsigned char leftColumn, unsigned char rightColumn, unsigned short figureFlags, const librevenge::RVNGBinaryData &binaryData) |
void | insertTextBox (double height, double width, double verticalOffset, double horizontalOffset, unsigned char leftColumn, unsigned char rightColumn, unsigned short figureFlags, const WP3SubDocument *subDocument, const WP3SubDocument *caption) |
void | insertWP51Table (double height, double width, double verticalOffset, double horizontalOffset, unsigned char leftColumn, unsigned char rightColumn, unsigned short figureFlags, const WP3SubDocument *subDocument, const WP3SubDocument *caption) |
Protected Member Functions | |
void | _handleSubDocument (const WPXSubDocument *subDocument, WPXSubDocumentType subDocumentType, WPXTableList tableList, unsigned nextTableIndice=0) |
void | _openParagraph () |
void | _flushText () |
void | _changeList () |
void | _handleFrameParameters (librevenge::RVNGPropertyList &propList, double height, double width, double verticalOffset, double horizontalOffset, unsigned char leftColumn, unsigned char rightColumn, unsigned short figureFlags) |
Private Member Functions | |
WP3ContentListener (const WP3ContentListener &) | |
WP3ContentListener & | operator= (const WP3ContentListener &) |
Private Attributes | |
WP3ContentParsingState * | m_parseState |
std::vector< WP3SubDocument * > & | m_subDocuments |
WP3ContentListener::WP3ContentListener | ( | std::list< WPXPageSpan > & | pageList, |
std::vector< WP3SubDocument * > & | subDocuments, | ||
librevenge::RVNGTextInterface * | documentInterface | ||
) |
WP3ContentListener::WP3ContentListener | ( | const WP3ContentListener & | ) | [private] |
void WP3ContentListener::_changeList | ( | ) | [inline, protected, virtual] |
Implements WPXContentListener.
Referenced by _handleSubDocument().
void WP3ContentListener::_flushText | ( | ) | [protected, virtual] |
Implements WPXContentListener.
Referenced by endTable(), insertNote(), and insertTab().
void WP3ContentListener::_handleFrameParameters | ( | librevenge::RVNGPropertyList & | propList, |
double | height, | ||
double | width, | ||
double | verticalOffset, | ||
double | horizontalOffset, | ||
unsigned char | leftColumn, | ||
unsigned char | rightColumn, | ||
unsigned short | figureFlags | ||
) | [protected] |
Referenced by insertPicture(), insertTextBox(), and insertWP51Table().
void WP3ContentListener::_handleSubDocument | ( | const WPXSubDocument * | subDocument, |
WPXSubDocumentType | subDocumentType, | ||
WPXTableList | tableList, | ||
unsigned | nextTableIndice = 0 |
||
) | [protected, virtual] |
Implements WPXContentListener.
void WP3ContentListener::_openParagraph | ( | ) | [protected, virtual] |
Reimplemented from WPXContentListener.
Referenced by insertNote().
void WP3ContentListener::addTableColumnDefinition | ( | unsigned | width, |
unsigned | leftGutter, | ||
unsigned | rightGutter, | ||
unsigned | attributes, | ||
unsigned char | alignment | ||
) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::attributeChange | ( | bool | isOn, |
unsigned char | attribute | ||
) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::backTab | ( | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::closeCell | ( | ) | [virtual] |
Implements WP3Listener.
Referenced by closeRow().
void WP3ContentListener::closeRow | ( | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::columnChange | ( | WPXTextColumnType | columnType, |
unsigned char | numColumns, | ||
const std::vector< double > & | columnWidth, | ||
const std::vector< bool > & | isFixedWidth | ||
) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::defineTable | ( | unsigned char | position, |
unsigned short | leftOffset | ||
) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::endDocument | ( | ) | [inline, virtual] |
Implements WP3Listener.
void WP3ContentListener::endSubDocument | ( | ) | [inline, virtual] |
Implements WP3Listener.
Referenced by WP3Parser::parseSubDocument().
void WP3ContentListener::endTable | ( | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::headerFooterGroup | ( | unsigned char | headerFooterType, |
unsigned char | occurrenceBits, | ||
WP3SubDocument * | subDocument | ||
) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::indentFirstLineChange | ( | double | offset | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::insertBreak | ( | unsigned char | breakType | ) | [inline, virtual] |
Implements WP3Listener.
void WP3ContentListener::insertCell | ( | ) |
Referenced by _openParagraph(), and insertEOL().
void WP3ContentListener::insertCharacter | ( | unsigned | character | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::insertEOL | ( | ) | [virtual] |
Implements WP3Listener.
Referenced by closeCell().
void WP3ContentListener::insertNote | ( | WPXNoteType | noteType, |
const WP3SubDocument * | subDocument | ||
) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::insertNoteReference | ( | const librevenge::RVNGString & | noteReference | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::insertPageNumber | ( | const librevenge::RVNGString & | pageNumber | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::insertPicture | ( | double | height, |
double | width, | ||
double | verticalOffset, | ||
double | horizontalOffset, | ||
unsigned char | leftColumn, | ||
unsigned char | rightColumn, | ||
unsigned short | figureFlags, | ||
const librevenge::RVNGBinaryData & | binaryData | ||
) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::insertRow | ( | ) |
Referenced by _openParagraph(), and insertEOL().
void WP3ContentListener::insertTab | ( | ) | [virtual] |
Implements WP3Listener.
Referenced by insertTab(), leftIndent(), and leftRightIndent().
void WP3ContentListener::insertTab | ( | unsigned char | tabType, |
double | tabPosition | ||
) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::insertTextBox | ( | double | height, |
double | width, | ||
double | verticalOffset, | ||
double | horizontalOffset, | ||
unsigned char | leftColumn, | ||
unsigned char | rightColumn, | ||
unsigned short | figureFlags, | ||
const WP3SubDocument * | subDocument, | ||
const WP3SubDocument * | caption | ||
) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::insertWP51Table | ( | double | height, |
double | width, | ||
double | verticalOffset, | ||
double | horizontalOffset, | ||
unsigned char | leftColumn, | ||
unsigned char | rightColumn, | ||
unsigned short | figureFlags, | ||
const WP3SubDocument * | subDocument, | ||
const WP3SubDocument * | caption | ||
) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::justificationChange | ( | unsigned char | justification | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::leftIndent | ( | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::leftIndent | ( | double | offset | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::leftRightIndent | ( | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::leftRightIndent | ( | double | offset | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::lineSpacingChange | ( | double | lineSpacing | ) | [inline, virtual] |
Implements WP3Listener.
void WP3ContentListener::marginChange | ( | unsigned char | side, |
unsigned short | margin | ||
) | [virtual] |
Implements WP3Listener.
Referenced by _handleSubDocument().
WP3ContentListener& WP3ContentListener::operator= | ( | const WP3ContentListener & | ) | [private] |
void WP3ContentListener::pageFormChange | ( | unsigned short | , |
unsigned short | , | ||
WPXFormOrientation | |||
) | [inline, virtual] |
Implements WP3Listener.
void WP3ContentListener::pageMarginChange | ( | unsigned char | , |
unsigned short | |||
) | [inline, virtual] |
Implements WP3Listener.
void WP3ContentListener::setFontSize | ( | unsigned short | fontSize | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::setTableCellFillColor | ( | const RGBSColor * | cellFillColor | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::setTableCellSpan | ( | unsigned short | colSpan, |
unsigned short | rowSpan | ||
) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::setTabs | ( | bool | isRelative, |
const std::vector< WPXTabStop > | tabStops | ||
) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::setTextColor | ( | const RGBSColor * | fontColor | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::setTextFont | ( | const librevenge::RVNGString & | fontName | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::startDocument | ( | ) | [inline, virtual] |
Implements WP3Listener.
void WP3ContentListener::startSubDocument | ( | ) | [inline, virtual] |
Implements WP3Listener.
Referenced by WP3Parser::parseSubDocument().
void WP3ContentListener::startTable | ( | ) | [virtual] |
Implements WP3Listener.
void WP3ContentListener::suppressPage | ( | unsigned short | ) | [inline, virtual] |
Implements WP3Listener.
void WP3ContentListener::undoChange | ( | unsigned char | undoType, |
unsigned short | undoLevel | ||
) | [virtual] |
Implements WP3Listener.
std::vector<WP3SubDocument *>& WP3ContentListener::m_subDocuments [private] |
Referenced by headerFooterGroup().