WPXContentListener Class Referenceabstract

#include <WPXContentListener.h>

Inheritance diagram for WPXContentListener:
WPXListener WP1ContentListener WP3ContentListener WP42ContentListener WP5ContentListener WP6ContentListener

Protected Member Functions

 WPXContentListener (std::list< WPXPageSpan > &pageList, librevenge::RVNGTextInterface *documentInterface)
 
 ~WPXContentListener () override
 
void startDocument ()
 
void startSubDocument ()
 
void endDocument ()
 
void endSubDocument ()
 
void handleSubDocument (const WPXSubDocument *subDocument, WPXSubDocumentType subDocumentType, WPXTableList tableList, unsigned nextTableIndice)
 Creates an new document state.
 
void insertBreak (const unsigned char breakType)
 
void lineSpacingChange (const double lineSpacing)
 
void justificationChange (const unsigned char justification)
 
virtual void _handleSubDocument (const WPXSubDocument *subDocument, WPXSubDocumentType subDocumentType, WPXTableList tableList, unsigned nextTableIndice)=0
 
virtual void _flushText ()=0
 
virtual void _changeList ()=0
 
void _openSection ()
 
void _closeSection ()
 
void _openPageSpan ()
 
void _closePageSpan ()
 
void _appendParagraphProperties (librevenge::RVNGPropertyList &propList, const bool isListElement=false)
 
void _getTabStops (librevenge::RVNGPropertyListVector &tabStops)
 
void _appendJustification (librevenge::RVNGPropertyList &propList, int justification)
 
void _resetParagraphState (const bool isListElement=false)
 
virtual void _openParagraph ()
 
void _closeParagraph ()
 
void _openListElement ()
 
void _closeListElement ()
 
void _openSpan ()
 
void _closeSpan ()
 
void _openTable ()
 
void _closeTable ()
 
void _openTableRow (const double height, const bool isMinimumHeight, const bool isHeaderRow)
 
void _closeTableRow ()
 
void _openTableCell (const unsigned char colSpan, const unsigned char rowSpan, const unsigned char borderBits, const RGBSColor *cellFgColor, const RGBSColor *cellBgColor, const RGBSColor *cellBorderColor, const WPXVerticalAlignment cellVerticalAlignment)
 
void _closeTableCell ()
 
double _movePositionToFirstColumn (double position)
 
double _getNextTabStop () const
 
double _getPreviousTabStop () const
 
void _insertText (const librevenge::RVNGString &textBuffer)
 
void _insertBreakIfNecessary (librevenge::RVNGPropertyList &propList)
 
void _insertPageNumberParagraph (WPXPageNumberPosition position, WPXNumberingType type, librevenge::RVNGString fontName, double fontSize)
 
unsigned _mapNonUnicodeCharacter (unsigned character)
 
- Protected Member Functions inherited from WPXListener
 WPXListener (std::list< WPXPageSpan > &pageList)
 
virtual ~WPXListener ()
 
bool isUndoOn ()
 
void setUndoOn (bool isOn)
 

Protected Attributes

std::unique_ptr< WPXContentParsingStatem_ps
 
librevenge::RVNGTextInterface * m_documentInterface
 
librevenge::RVNGPropertyList m_metaData
 
- Protected Attributes inherited from WPXListener
std::list< WPXPageSpan > & m_pageList
 

Private Member Functions

 WPXContentListener (const WPXContentListener &)
 
WPXContentListeneroperator= (const WPXContentListener &)
 
librevenge::RVNGString _colorToString (const RGBSColor *color)
 
librevenge::RVNGString _mergeColorsToString (const RGBSColor *fgColor, const RGBSColor *bgColor)
 
unsigned _mapSymbolFontCharacter (unsigned character)
 
unsigned _mapDingbatsFontCharacter (unsigned character)
 

Constructor & Destructor Documentation

◆ WPXContentListener() [1/2]

WPXContentListener::WPXContentListener ( std::list< WPXPageSpan > &  pageList,
librevenge::RVNGTextInterface *  documentInterface 
)
protected

◆ ~WPXContentListener()

WPXContentListener::~WPXContentListener ( )
overrideprotected

◆ WPXContentListener() [2/2]

WPXContentListener::WPXContentListener ( const WPXContentListener )
private

Member Function Documentation

◆ _appendJustification()

void WPXContentListener::_appendJustification ( librevenge::RVNGPropertyList &  propList,
int  justification 
)
protected

◆ _appendParagraphProperties()

void WPXContentListener::_appendParagraphProperties ( librevenge::RVNGPropertyList &  propList,
const bool  isListElement = false 
)
protected

Referenced by _openListElement(), and _openParagraph().

◆ _changeList()

virtual void WPXContentListener::_changeList ( )
protectedpure virtual

◆ _closeListElement()

◆ _closePageSpan()

void WPXContentListener::_closePageSpan ( )
protected

◆ _closeParagraph()

◆ _closeSection()

◆ _closeSpan()

◆ _closeTable()

◆ _closeTableCell()

void WPXContentListener::_closeTableCell ( )
protected

◆ _closeTableRow()

void WPXContentListener::_closeTableRow ( )
protected

◆ _colorToString()

librevenge::RVNGString WPXContentListener::_colorToString ( const RGBSColor color)
private

Referenced by _openSpan(), and _openTableCell().

◆ _flushText()

virtual void WPXContentListener::_flushText ( )
protectedpure virtual

◆ _getNextTabStop()

double WPXContentListener::_getNextTabStop ( ) const
protected

◆ _getPreviousTabStop()

double WPXContentListener::_getPreviousTabStop ( ) const
protected

◆ _getTabStops()

void WPXContentListener::_getTabStops ( librevenge::RVNGPropertyListVector &  tabStops)
protected

Referenced by _openListElement(), and _openParagraph().

◆ _handleSubDocument()

virtual void WPXContentListener::_handleSubDocument ( const WPXSubDocument subDocument,
WPXSubDocumentType  subDocumentType,
WPXTableList  tableList,
unsigned  nextTableIndice 
)
protectedpure virtual

◆ _insertBreakIfNecessary()

void WPXContentListener::_insertBreakIfNecessary ( librevenge::RVNGPropertyList &  propList)
protected

◆ _insertPageNumberParagraph()

void WPXContentListener::_insertPageNumberParagraph ( WPXPageNumberPosition  position,
WPXNumberingType  type,
librevenge::RVNGString  fontName,
double  fontSize 
)
protected

Referenced by _openPageSpan().

◆ _insertText()

void WPXContentListener::_insertText ( const librevenge::RVNGString &  textBuffer)
protected

◆ _mapDingbatsFontCharacter()

unsigned WPXContentListener::_mapDingbatsFontCharacter ( unsigned  character)
private

Referenced by _mapNonUnicodeCharacter().

◆ _mapNonUnicodeCharacter()

◆ _mapSymbolFontCharacter()

unsigned WPXContentListener::_mapSymbolFontCharacter ( unsigned  character)
private

Referenced by _mapNonUnicodeCharacter().

◆ _mergeColorsToString()

librevenge::RVNGString WPXContentListener::_mergeColorsToString ( const RGBSColor fgColor,
const RGBSColor bgColor 
)
private

Referenced by _openTableCell().

◆ _movePositionToFirstColumn()

double WPXContentListener::_movePositionToFirstColumn ( double  position)
protected

◆ _openListElement()

void WPXContentListener::_openListElement ( )
protected

◆ _openPageSpan()

◆ _openParagraph()

◆ _openSection()

◆ _openSpan()

◆ _openTable()

void WPXContentListener::_openTable ( )
protected

◆ _openTableCell()

void WPXContentListener::_openTableCell ( const unsigned char  colSpan,
const unsigned char  rowSpan,
const unsigned char  borderBits,
const RGBSColor cellFgColor,
const RGBSColor cellBgColor,
const RGBSColor cellBorderColor,
const WPXVerticalAlignment  cellVerticalAlignment 
)
protected

◆ _openTableRow()

void WPXContentListener::_openTableRow ( const double  height,
const bool  isMinimumHeight,
const bool  isHeaderRow 
)
protected

◆ _resetParagraphState()

void WPXContentListener::_resetParagraphState ( const bool  isListElement = false)
protected

Referenced by _openListElement(), and _openParagraph().

◆ endDocument()

◆ endSubDocument()

◆ handleSubDocument()

void WPXContentListener::handleSubDocument ( const WPXSubDocument subDocument,
WPXSubDocumentType  subDocumentType,
WPXTableList  tableList,
unsigned  nextTableIndice 
)
protected

◆ insertBreak()

void WPXContentListener::insertBreak ( const unsigned char  breakType)
protected

◆ justificationChange()

void WPXContentListener::justificationChange ( const unsigned char  justification)
protected

◆ lineSpacingChange()

void WPXContentListener::lineSpacingChange ( const double  lineSpacing)
protected

◆ operator=()

WPXContentListener & WPXContentListener::operator= ( const WPXContentListener )
private

◆ startDocument()

◆ startSubDocument()

Member Data Documentation

◆ m_documentInterface

librevenge::RVNGTextInterface* WPXContentListener::m_documentInterface
protected

◆ m_metaData

librevenge::RVNGPropertyList WPXContentListener::m_metaData
protected

◆ m_ps

std::unique_ptr<WPXContentParsingState> WPXContentListener::m_ps
protected

Referenced by _appendParagraphProperties(), WP6ContentListener::_changeList(), _closeListElement(), _closePageSpan(), _closeParagraph(), _closeSection(), _closeSpan(), _closeTable(), _closeTableCell(), _closeTableRow(), WP6ContentListener::_flushText(), _getNextTabStop(), _getPreviousTabStop(), _getTabStops(), WP3ContentListener::_handleFrameParameters(), WP6ContentListener::_handleListChange(), WP1ContentListener::_handleSubDocument(), WP3ContentListener::_handleSubDocument(), WP42ContentListener::_handleSubDocument(), WP5ContentListener::_handleSubDocument(), WP6ContentListener::_handleSubDocument(), _insertBreakIfNecessary(), _mapNonUnicodeCharacter(), _movePositionToFirstColumn(), _openListElement(), _openPageSpan(), _openParagraph(), WP3ContentListener::_openParagraph(), _openSection(), _openSpan(), _openTable(), _openTableCell(), _openTableRow(), WP6ContentListener::_paragraphNumberOn(), _resetParagraphState(), WP6ContentListener::addTableColumnDefinition(), WP3ContentListener::addTableColumnDefinition(), WP5ContentListener::addTableColumnDefinition(), WP1ContentListener::attributeChange(), WP3ContentListener::attributeChange(), WP42ContentListener::attributeChange(), WP5ContentListener::attributeChange(), WP6ContentListener::attributeChange(), WP3ContentListener::backTab(), WP6ContentListener::boxOn(), WP5ContentListener::boxOn(), WP1ContentListener::centerOn(), WP6ContentListener::characterColorChange(), WP5ContentListener::characterColorChange(), WP6ContentListener::characterShadingChange(), WP6ContentListener::columnChange(), WP3ContentListener::columnChange(), WP6ContentListener::commentAnnotation(), WP6ContentListener::defineTable(), WP3ContentListener::defineTable(), WP5ContentListener::defineTable(), WP6ContentListener::defineTabStops(), WP6ContentListener::displayNumberReferenceGroupOn(), endDocument(), endSubDocument(), WP3ContentListener::endTable(), WP5ContentListener::endTable(), WP6ContentListener::endTable(), WP1ContentListener::flushRightOn(), WP6ContentListener::fontChange(), WP1ContentListener::fontId(), WP1ContentListener::fontPointSize(), WP6ContentListener::handleLineBreak(), handleSubDocument(), WP6ContentListener::highlightChange(), WP6ContentListener::indentFirstLineChange(), WP3ContentListener::indentFirstLineChange(), insertBreak(), WP3ContentListener::insertCell(), WP6ContentListener::insertCell(), WP5ContentListener::insertCell(), WP1ContentListener::insertCharacter(), WP3ContentListener::insertCharacter(), WP42ContentListener::insertCharacter(), WP5ContentListener::insertCharacter(), WP6ContentListener::insertCharacter(), WP1ContentListener::insertEOL(), WP3ContentListener::insertEOL(), WP42ContentListener::insertEOL(), WP5ContentListener::insertEOL(), WP6ContentListener::insertEOL(), WP1ContentListener::insertExtendedCharacter(), WP5ContentListener::insertIndent(), WP3ContentListener::insertNote(), WP5ContentListener::insertNote(), WP1ContentListener::insertNote(), WP5ContentListener::insertNoteReference(), WP3ContentListener::insertPageNumber(), WP3ContentListener::insertPicture(), WP1ContentListener::insertPicture(), WP6ContentListener::insertRow(), WP1ContentListener::insertTab(), WP3ContentListener::insertTab(), WP6ContentListener::insertTab(), WP3ContentListener::insertTab(), WP42ContentListener::insertTab(), WP5ContentListener::insertTab(), WP3ContentListener::insertTextBox(), WP3ContentListener::insertWP51Table(), justificationChange(), WP1ContentListener::justificationChange(), WP3ContentListener::justificationChange(), WP3ContentListener::leftIndent(), WP3ContentListener::leftIndent(), WP1ContentListener::leftIndent(), WP1ContentListener::leftMarginRelease(), WP3ContentListener::leftRightIndent(), WP3ContentListener::leftRightIndent(), WP1ContentListener::leftRightIndent(), lineSpacingChange(), WP6ContentListener::marginChange(), WP3ContentListener::marginChange(), WP5ContentListener::marginChange(), WP42ContentListener::marginReset(), WP1ContentListener::marginReset(), WP6ContentListener::noteOff(), WP6ContentListener::noteOn(), WP6ContentListener::paragraphMarginChange(), WP6ContentListener::setAlignmentCharacter(), WP5ContentListener::setFont(), WP3ContentListener::setFontSize(), WP6ContentListener::setLeaderCharacter(), WP3ContentListener::setTabs(), WP1ContentListener::setTabs(), WP5ContentListener::setTabs(), WP3ContentListener::setTextColor(), WP3ContentListener::setTextFont(), WP6ContentListener::spacingAfterParagraphChange(), startDocument(), startSubDocument(), WP3ContentListener::startTable(), WP5ContentListener::startTable(), WP6ContentListener::startTable(), WP6ContentListener::styleGroupOn(), WP1ContentListener::WP1ContentListener(), and WP42ContentListener::WP42ContentListener().


The documentation for this class was generated from the following files:

Generated for libwpd by doxygen 1.9.7