WP1ContentListener Class Reference

#include <WP1ContentListener.h>

Inheritance diagram for WP1ContentListener:
WP1Listener WPXContentListener WPXListener

Public Member Functions

 WP1ContentListener (std::list< WPXPageSpan > &pageList, std::vector< WP1SubDocument * > &subDocuments, WPXDocumentInterface *documentInterface)
 
 ~WP1ContentListener ()
 
void startDocument ()
 
void startSubDocument ()
 
void insertCharacter (uint32_t character)
 
void insertExtendedCharacter (uint8_t extendedCharacter)
 
void insertTab ()
 
void insertBreak (uint8_t breakType)
 
void insertEOL ()
 
void insertNote (WPXNoteType noteType, WP1SubDocument *subDocument)
 
void attributeChange (bool isOn, uint8_t attribute)
 
void fontPointSize (uint8_t pointSize)
 
void fontId (uint16_t id)
 
void marginReset (uint16_t leftMargin, uint16_t rightMargin)
 
void topMarginSet (uint16_t)
 
void bottomMarginSet (uint16_t)
 
void leftIndent (uint16_t leftMarginOffset)
 
void leftRightIndent (uint16_t leftRightMarginOffset)
 
void leftMarginRelease (uint16_t release)
 
void setTabs (const std::vector< WPXTabStop > &tabStops)
 
void headerFooterGroup (uint8_t headerFooterDefinition, WP1SubDocument *subDocument)
 
void suppressPageCharacteristics (uint8_t)
 
void justificationChange (uint8_t justification)
 
void lineSpacingChange (uint8_t spacing)
 
void flushRightOn ()
 
void flushRightOff ()
 
void centerOn ()
 
void centerOff ()
 
void endDocument ()
 
void endSubDocument ()
 
void insertPicture (uint16_t width, uint16_t height, const WPXBinaryData &binaryData)
 
- Public Member Functions inherited from WP1Listener
 WP1Listener ()
 
virtual ~WP1Listener ()
 

Protected Member Functions

void _handleSubDocument (const WPXSubDocument *subDocument, WPXSubDocumentType subDocumentType, WPXTableList tableList, unsigned nextTableIndice=0)
 
void _flushText ()
 
void _changeList ()
 
- Protected Member Functions inherited from WPXContentListener
 WPXContentListener (std::list< WPXPageSpan > &pageList, WPXDocumentInterface *documentInterface)
 
virtual ~WPXContentListener ()
 
void startDocument ()
 
void startSubDocument ()
 
void endDocument ()
 
void endSubDocument ()
 
void handleSubDocument (const WPXSubDocument *subDocument, WPXSubDocumentType subDocumentType, WPXTableList tableList, unsigned nextTableIndice)
 Creates an new document state. More...
 
void insertBreak (const uint8_t breakType)
 
void lineSpacingChange (const double lineSpacing)
 
void justificationChange (const uint8_t justification)
 
void _openSection ()
 
void _closeSection ()
 
void _openPageSpan ()
 
void _closePageSpan ()
 
void _appendParagraphProperties (WPXPropertyList &propList, const bool isListElement=false)
 
void _getTabStops (WPXPropertyListVector &tabStops)
 
void _appendJustification (WPXPropertyList &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 uint8_t colSpan, const uint8_t rowSpan, const uint8_t 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 WPXString &textBuffer)
 
void _insertBreakIfNecessary (WPXPropertyList &propList)
 
void _insertPageNumberParagraph (WPXPageNumberPosition position, WPXNumberingType type, WPXString fontName, double fontSize)
 
uint32_t _mapNonUnicodeCharacter (uint32_t character)
 
- Protected Member Functions inherited from WPXListener
 WPXListener (std::list< WPXPageSpan > &pageList)
 
virtual ~WPXListener ()
 
bool isUndoOn ()
 
void setUndoOn (bool isOn)
 

Private Member Functions

 WP1ContentListener (const WP1ContentListener &)
 
WP1ContentListeneroperator= (WP1ContentListener &)
 

Private Attributes

WP1ContentParsingStatem_parseState
 
std::vector< WP1SubDocument * > & m_subDocuments
 

Additional Inherited Members

- Protected Attributes inherited from WPXContentListener
WPXContentParsingStatem_ps
 
WPXDocumentInterfacem_documentInterface
 
WPXPropertyList m_metaData
 
- Protected Attributes inherited from WPXListener
std::list< WPXPageSpan > & m_pageList
 

Constructor & Destructor Documentation

WP1ContentListener::WP1ContentListener ( std::list< WPXPageSpan > &  pageList,
std::vector< WP1SubDocument * > &  subDocuments,
WPXDocumentInterface documentInterface 
)
WP1ContentListener::~WP1ContentListener ( )
WP1ContentListener::WP1ContentListener ( const WP1ContentListener )
private

Member Function Documentation

void WP1ContentListener::_changeList ( )
inlineprotectedvirtual

Implements WPXContentListener.

Referenced by _handleSubDocument().

void WP1ContentListener::_flushText ( )
protectedvirtual

Implements WPXContentListener.

Referenced by insertNote(), and insertTab().

void WP1ContentListener::_handleSubDocument ( const WPXSubDocument subDocument,
WPXSubDocumentType  subDocumentType,
WPXTableList  tableList,
unsigned  nextTableIndice = 0 
)
protectedvirtual

Implements WPXContentListener.

void WP1ContentListener::attributeChange ( bool  isOn,
uint8_t  attribute 
)
virtual

Implements WP1Listener.

void WP1ContentListener::bottomMarginSet ( uint16_t  )
inlinevirtual

Implements WP1Listener.

void WP1ContentListener::centerOff ( )
inlinevirtual

Implements WP1Listener.

void WP1ContentListener::centerOn ( )
virtual

Implements WP1Listener.

void WP1ContentListener::endDocument ( )
inlinevirtual

Implements WP1Listener.

void WP1ContentListener::endSubDocument ( )
inlinevirtual

Implements WP1Listener.

Referenced by WP1Parser::parseSubDocument().

void WP1ContentListener::flushRightOff ( )
inlinevirtual

Implements WP1Listener.

void WP1ContentListener::flushRightOn ( )
virtual

Implements WP1Listener.

void WP1ContentListener::fontId ( uint16_t  id)
virtual

Implements WP1Listener.

void WP1ContentListener::fontPointSize ( uint8_t  pointSize)
virtual

Implements WP1Listener.

void WP1ContentListener::headerFooterGroup ( uint8_t  headerFooterDefinition,
WP1SubDocument subDocument 
)
virtual

Implements WP1Listener.

void WP1ContentListener::insertBreak ( uint8_t  breakType)
inlinevirtual

Implements WP1Listener.

void WP1ContentListener::insertCharacter ( uint32_t  character)
virtual

Implements WP1Listener.

void WP1ContentListener::insertEOL ( )
virtual

Implements WP1Listener.

void WP1ContentListener::insertExtendedCharacter ( uint8_t  extendedCharacter)
virtual

Implements WP1Listener.

void WP1ContentListener::insertNote ( WPXNoteType  noteType,
WP1SubDocument subDocument 
)
virtual

Implements WP1Listener.

void WP1ContentListener::insertPicture ( uint16_t  width,
uint16_t  height,
const WPXBinaryData binaryData 
)
virtual

Implements WP1Listener.

void WP1ContentListener::insertTab ( )
virtual
void WP1ContentListener::justificationChange ( uint8_t  justification)
virtual

Implements WP1Listener.

void WP1ContentListener::leftIndent ( uint16_t  leftMarginOffset)
virtual

Implements WP1Listener.

void WP1ContentListener::leftMarginRelease ( uint16_t  release)
virtual

Implements WP1Listener.

void WP1ContentListener::leftRightIndent ( uint16_t  leftRightMarginOffset)
virtual

Implements WP1Listener.

void WP1ContentListener::lineSpacingChange ( uint8_t  spacing)
inlinevirtual

Implements WP1Listener.

void WP1ContentListener::marginReset ( uint16_t  leftMargin,
uint16_t  rightMargin 
)
virtual

Implements WP1Listener.

WP1ContentListener& WP1ContentListener::operator= ( WP1ContentListener )
private
void WP1ContentListener::setTabs ( const std::vector< WPXTabStop > &  tabStops)
virtual

Implements WP1Listener.

void WP1ContentListener::startDocument ( )
inlinevirtual

Implements WP1Listener.

void WP1ContentListener::startSubDocument ( )
inlinevirtual

Implements WP1Listener.

Referenced by WP1Parser::parseSubDocument().

void WP1ContentListener::suppressPageCharacteristics ( uint8_t  )
inlinevirtual

Implements WP1Listener.

void WP1ContentListener::topMarginSet ( uint16_t  )
inlinevirtual

Implements WP1Listener.

Member Data Documentation

std::vector<WP1SubDocument *>& WP1ContentListener::m_subDocuments
private

Referenced by headerFooterGroup().


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

Generated for libwpd by doxygen 1.8.5