#include <WP5ContentListener.h>
Public Member Functions | |
WP5ContentListener (std::list< WPXPageSpan > &pageList, std::vector< WP5SubDocument * > &subDocuments, librevenge::RVNGTextInterface *documentInterface) | |
~WP5ContentListener () | |
void | startDocument () |
void | startSubDocument () |
void | setFont (const librevenge::RVNGString &fontName, double fontSize) |
void | setTabs (const std::vector< WPXTabStop > &tabStops, unsigned short tabOffset) |
void | insertCharacter (unsigned character) |
void | insertTab (unsigned char tabType, double tabPosition) |
void | insertIndent (unsigned char indentType, double indentPosition) |
void | insertEOL () |
void | insertBreak (unsigned char breakType) |
void | lineSpacingChange (double lineSpacing) |
void | justificationChange (unsigned char justification) |
void | characterColorChange (unsigned char red, unsigned char green, unsigned char blue) |
void | attributeChange (bool isOn, unsigned char attribute) |
void | pageMarginChange (unsigned char, unsigned short) |
void | pageFormChange (unsigned short, unsigned short, WPXFormOrientation) |
void | marginChange (unsigned char side, unsigned short margin) |
void | paragraphMarginChange (unsigned char, signed short) |
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 (unsigned short rowHeight, bool isMinimumHeight, bool isHeaderRow) |
void | insertCell (unsigned char colSpan, unsigned char rowSpan, unsigned char borderBits, const RGBSColor *cellFgColor, const RGBSColor *cellBgColor, const RGBSColor *cellBorderColor, WPXVerticalAlignment cellVerticalAlignment, bool useCellAttributes, unsigned cellAttributes) |
void | endTable () |
void | insertNoteReference (const librevenge::RVNGString ¬eReference) |
void | insertNote (WPXNoteType noteType, const WP5SubDocument *subDocument) |
void | headerFooterGroup (unsigned char headerFooterType, unsigned char occurrenceBits, WP5SubDocument *subDocument) |
void | suppressPageCharacteristics (unsigned char) |
void | setDefaultFont (const librevenge::RVNGString &fontName, double fontSize) |
void | boxOn (unsigned char positionAndType, unsigned char alignment, unsigned short width, unsigned short height, unsigned short x, unsigned short y) |
virtual void | boxOff () |
virtual void | insertGraphicsData (const librevenge::RVNGBinaryData *data) |
Protected Member Functions | |
void | _handleSubDocument (const WPXSubDocument *subDocument, WPXSubDocumentType subDocumentType, WPXTableList tableList, unsigned nextTableIndice=0) |
void | _flushText () |
void | _changeList () |
Private Member Functions | |
WP5ContentListener (const WP5ContentListener &) | |
WP5ContentListener & | operator= (const WP5ContentListener &) |
Private Attributes | |
WP5ContentParsingState * | m_parseState |
std::vector< WP5SubDocument * > & | m_subDocuments |
double | m_defaultFontSize |
librevenge::RVNGString | m_defaultFontName |
WP5ContentListener::WP5ContentListener | ( | std::list< WPXPageSpan > & | pageList, |
std::vector< WP5SubDocument * > & | subDocuments, | ||
librevenge::RVNGTextInterface * | documentInterface | ||
) |
WP5ContentListener::WP5ContentListener | ( | const WP5ContentListener & | ) | [private] |
void WP5ContentListener::_changeList | ( | ) | [inline, protected, virtual] |
Implements WPXContentListener.
Referenced by _handleSubDocument().
void WP5ContentListener::_flushText | ( | ) | [protected, virtual] |
Implements WPXContentListener.
Referenced by boxOn(), endTable(), insertCell(), insertIndent(), insertNote(), insertRow(), and insertTab().
void WP5ContentListener::_handleSubDocument | ( | const WPXSubDocument * | subDocument, |
WPXSubDocumentType | subDocumentType, | ||
WPXTableList | tableList, | ||
unsigned | nextTableIndice = 0 |
||
) | [protected, virtual] |
Implements WPXContentListener.
void WP5ContentListener::addTableColumnDefinition | ( | unsigned | width, |
unsigned | leftGutter, | ||
unsigned | rightGutter, | ||
unsigned | attributes, | ||
unsigned char | alignment | ||
) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::attributeChange | ( | bool | isOn, |
unsigned char | attribute | ||
) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::boxOff | ( | ) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::boxOn | ( | unsigned char | positionAndType, |
unsigned char | alignment, | ||
unsigned short | width, | ||
unsigned short | height, | ||
unsigned short | x, | ||
unsigned short | y | ||
) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::characterColorChange | ( | unsigned char | red, |
unsigned char | green, | ||
unsigned char | blue | ||
) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::defineTable | ( | unsigned char | position, |
unsigned short | leftOffset | ||
) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::endDocument | ( | ) | [inline, virtual] |
Implements WP5Listener.
void WP5ContentListener::endSubDocument | ( | ) | [inline, virtual] |
Implements WP5Listener.
Referenced by WP5Parser::parseSubDocument().
void WP5ContentListener::endTable | ( | ) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::headerFooterGroup | ( | unsigned char | headerFooterType, |
unsigned char | occurrenceBits, | ||
WP5SubDocument * | subDocument | ||
) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::insertBreak | ( | unsigned char | breakType | ) | [inline, virtual] |
Implements WP5Listener.
void WP5ContentListener::insertCell | ( | unsigned char | colSpan, |
unsigned char | rowSpan, | ||
unsigned char | borderBits, | ||
const RGBSColor * | cellFgColor, | ||
const RGBSColor * | cellBgColor, | ||
const RGBSColor * | cellBorderColor, | ||
WPXVerticalAlignment | cellVerticalAlignment, | ||
bool | useCellAttributes, | ||
unsigned | cellAttributes | ||
) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::insertCharacter | ( | unsigned | character | ) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::insertEOL | ( | ) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::insertGraphicsData | ( | const librevenge::RVNGBinaryData * | data | ) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::insertIndent | ( | unsigned char | indentType, |
double | indentPosition | ||
) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::insertNote | ( | WPXNoteType | noteType, |
const WP5SubDocument * | subDocument | ||
) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::insertNoteReference | ( | const librevenge::RVNGString & | noteReference | ) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::insertRow | ( | unsigned short | rowHeight, |
bool | isMinimumHeight, | ||
bool | isHeaderRow | ||
) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::insertTab | ( | unsigned char | tabType, |
double | tabPosition | ||
) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::justificationChange | ( | unsigned char | justification | ) | [inline, virtual] |
Implements WP5Listener.
Referenced by insertCell().
void WP5ContentListener::lineSpacingChange | ( | double | lineSpacing | ) | [inline, virtual] |
Implements WP5Listener.
void WP5ContentListener::marginChange | ( | unsigned char | side, |
unsigned short | margin | ||
) | [virtual] |
Implements WP5Listener.
Referenced by _handleSubDocument().
WP5ContentListener& WP5ContentListener::operator= | ( | const WP5ContentListener & | ) | [private] |
void WP5ContentListener::pageFormChange | ( | unsigned short | , |
unsigned short | , | ||
WPXFormOrientation | |||
) | [inline, virtual] |
Implements WP5Listener.
void WP5ContentListener::pageMarginChange | ( | unsigned char | , |
unsigned short | |||
) | [inline, virtual] |
Implements WP5Listener.
void WP5ContentListener::paragraphMarginChange | ( | unsigned | char, |
signed | short | ||
) | [inline] |
void WP5ContentListener::setDefaultFont | ( | const librevenge::RVNGString & | fontName, |
double | fontSize | ||
) |
Referenced by WP5Parser::parse().
void WP5ContentListener::setFont | ( | const librevenge::RVNGString & | fontName, |
double | fontSize | ||
) | [virtual] |
Implements WP5Listener.
Referenced by _handleSubDocument(), and WP5Parser::parse().
void WP5ContentListener::setTabs | ( | const std::vector< WPXTabStop > & | tabStops, |
unsigned short | tabOffset | ||
) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::startDocument | ( | ) | [inline, virtual] |
Implements WP5Listener.
void WP5ContentListener::startSubDocument | ( | ) | [inline, virtual] |
Implements WP5Listener.
Referenced by WP5Parser::parseSubDocument().
void WP5ContentListener::startTable | ( | ) | [virtual] |
Implements WP5Listener.
void WP5ContentListener::suppressPageCharacteristics | ( | unsigned char | ) | [inline, virtual] |
Implements WP5Listener.
librevenge::RVNGString WP5ContentListener::m_defaultFontName [private] |
Referenced by _handleSubDocument(), and setDefaultFont().
double WP5ContentListener::m_defaultFontSize [private] |
Referenced by _handleSubDocument(), and setDefaultFont().
Referenced by _flushText(), _handleSubDocument(), boxOff(), boxOn(), insertCharacter(), insertGraphicsData(), insertNote(), insertNoteReference(), and ~WP5ContentListener().
std::vector<WP5SubDocument *>& WP5ContentListener::m_subDocuments [private] |
Referenced by headerFooterGroup().