#include <WPSContentListener.h>
Public Member Functions | |
WPSContentListener (std::vector< WPSPageSpan > const &pageList, WPXDocumentInterface *documentInterface) | |
virtual | ~WPSContentListener () |
void | startDocument () |
void | endDocument () |
void | insertBreak (const uint8_t breakType) |
void | insertCharacter (const uint16_t character) |
void | insertUnicodeCharacter (uint32_t character) |
void | insertField () |
void | openFootnote () |
void | closeFootnote () |
void | openEndnote () |
void | closeEndnote () |
void | setTextFont (const WPXString fontName) |
void | setFontSize (const uint16_t fontSize) |
void | setFontAttributes (const uint32_t fontAttributes) |
void | setLanguageID (const uint32_t lcid) |
void | setColor (const unsigned int rgb) |
void | setFieldType (uint16_t code) |
void | setFieldFormat (uint16_t code) |
void | setAlign (const uint8_t align) |
void | setMargins (const float first=0.0, const float left=0.0, const float right=0.0, const float before=0.0, const float after=0.0) |
void | setTabs (std::vector< WPSTabPos > &tabs) |
void | setNumberingType (const uint8_t style) |
void | setNumberingProp (const uint16_t type, const uint16_t sep) |
void | insertEOL () |
Protected Member Functions | |
void | _flushText () |
void | _openSection () |
void | _closeSection () |
void | _openPageSpan () |
void | _closePageSpan () |
void | _openParagraph () |
void | _closeParagraph () |
void | _openSpan () |
void | _closeSpan () |
void | _insertText (const WPXString &textBuffer) |
int | _getListId () |
Protected Attributes | |
shared_ptr < WPSContentParsingState > | m_ps |
WPXDocumentInterface * | m_documentInterface |
WPXPropertyList | m_metaData |
Private Member Functions | |
WPSContentListener (const WPSContentListener &) | |
WPSContentListener & | operator= (const WPSContentListener &) |
Private Attributes | |
std::vector< WPSTabPos > | m_tabs |
std::vector< WPSPageSpan > | m_pageList |
std::vector < WPSContentListenerInternal::ListSignature > | m_listFormats |
WPSContentListener::WPSContentListener | ( | std::vector< WPSPageSpan > const & | pageList, |
WPXDocumentInterface * | documentInterface | ||
) |
WPSContentListener::~WPSContentListener | ( | ) | [virtual] |
WPSContentListener::WPSContentListener | ( | const WPSContentListener & | ) | [private] |
void WPSContentListener::_closePageSpan | ( | ) | [protected] |
Referenced by _closeParagraph(), endDocument(), and insertBreak().
void WPSContentListener::_closeParagraph | ( | ) | [protected] |
Referenced by _closeSection(), closeEndnote(), endDocument(), insertBreak(), and insertEOL().
void WPSContentListener::_closeSection | ( | ) | [protected] |
Referenced by _closePageSpan(), _openParagraph(), and endDocument().
void WPSContentListener::_closeSpan | ( | ) | [protected] |
Referenced by _closeParagraph(), openEndnote(), openFootnote(), setColor(), setFontAttributes(), setFontSize(), setLanguageID(), and setTextFont().
void WPSContentListener::_flushText | ( | ) | [protected] |
Referenced by _closeSpan(), and insertField().
int WPSContentListener::_getListId | ( | ) | [protected] |
Referenced by _openParagraph().
void WPSContentListener::_insertText | ( | const WPXString & | textBuffer | ) | [protected] |
Referenced by _flushText().
void WPSContentListener::_openPageSpan | ( | ) | [protected] |
Referenced by _openSection().
void WPSContentListener::_openParagraph | ( | ) | [protected] |
Referenced by _closeSection(), and _openSpan().
void WPSContentListener::_openSection | ( | ) | [protected] |
Referenced by _openParagraph().
void WPSContentListener::_openSpan | ( | ) | [protected] |
Referenced by endDocument(), insertBreak(), insertCharacter(), insertEOL(), and insertUnicodeCharacter().
void WPSContentListener::closeEndnote | ( | ) |
void WPSContentListener::closeFootnote | ( | ) |
void WPSContentListener::endDocument | ( | ) |
void WPSContentListener::insertBreak | ( | const uint8_t | breakType | ) |
void WPSContentListener::insertCharacter | ( | const uint16_t | character | ) |
void WPSContentListener::insertEOL | ( | ) |
void WPSContentListener::insertField | ( | ) |
void WPSContentListener::insertUnicodeCharacter | ( | uint32_t | character | ) |
void WPSContentListener::openEndnote | ( | ) |
void WPSContentListener::openFootnote | ( | ) |
WPSContentListener& WPSContentListener::operator= | ( | const WPSContentListener & | ) | [private] |
void WPSContentListener::setAlign | ( | const uint8_t | align | ) |
void WPSContentListener::setColor | ( | const unsigned int | rgb | ) |
void WPSContentListener::setFieldFormat | ( | uint16_t | code | ) |
void WPSContentListener::setFieldType | ( | uint16_t | code | ) |
void WPSContentListener::setFontAttributes | ( | const uint32_t | fontAttributes | ) |
void WPSContentListener::setFontSize | ( | const uint16_t | fontSize | ) |
void WPSContentListener::setLanguageID | ( | const uint32_t | lcid | ) |
void WPSContentListener::setMargins | ( | const float | first = 0.0 , |
const float | left = 0.0 , |
||
const float | right = 0.0 , |
||
const float | before = 0.0 , |
||
const float | after = 0.0 |
||
) |
void WPSContentListener::setNumberingProp | ( | const uint16_t | type, |
const uint16_t | sep | ||
) |
void WPSContentListener::setNumberingType | ( | const uint8_t | style | ) |
void WPSContentListener::setTabs | ( | std::vector< WPSTabPos > & | tabs | ) |
void WPSContentListener::setTextFont | ( | const WPXString | fontName | ) |
void WPSContentListener::startDocument | ( | ) |
Referenced by _openPageSpan().
WPXDocumentInterface* WPSContentListener::m_documentInterface [protected] |
std::vector<WPSContentListenerInternal::ListSignature> WPSContentListener::m_listFormats [private] |
Referenced by _getListId().
WPXPropertyList WPSContentListener::m_metaData [protected] |
Referenced by startDocument().
std::vector<WPSPageSpan> WPSContentListener::m_pageList [private] |
Referenced by _openPageSpan(), and WPSContentListener().
shared_ptr<WPSContentParsingState> WPSContentListener::m_ps [protected] |
Referenced by _closePageSpan(), _closeParagraph(), _closeSection(), _closeSpan(), _flushText(), _getListId(), _openPageSpan(), _openParagraph(), _openSection(), _openSpan(), closeEndnote(), closeFootnote(), endDocument(), insertBreak(), insertCharacter(), insertEOL(), insertField(), insertUnicodeCharacter(), openEndnote(), openFootnote(), setAlign(), setColor(), setFieldType(), setFontAttributes(), setFontSize(), setLanguageID(), setMargins(), setNumberingProp(), setNumberingType(), setTextFont(), startDocument(), and WPSContentListener().
std::vector<WPSTabPos> WPSContentListener::m_tabs [private] |
Referenced by _openParagraph(), and setTabs().