WP42ContentListener Class Reference

#include <WP42ContentListener.h>

Inheritance diagram for WP42ContentListener:
WP42Listener WPXContentListener WPXListener

Public Member Functions

 WP42ContentListener (std::list< WPXPageSpan > &pageList, std::vector< WP42SubDocument * > &subDocuments, WPXDocumentInterface *documentInterface)
 
 ~WP42ContentListener ()
 
void startDocument ()
 
void startSubDocument ()
 
void insertCharacter (uint32_t character)
 
void insertTab (uint8_t tabType, double tabPosition)
 
void insertBreak (uint8_t breakType)
 
void insertEOL ()
 
void attributeChange (bool isOn, uint8_t attribute)
 
void marginReset (uint8_t leftMargin, uint8_t rightMargin)
 
void headerFooterGroup (uint8_t headerFooterDefinition, WP42SubDocument *subDocument)
 
void suppressPageCharacteristics (uint8_t)
 
void endDocument ()
 
void endSubDocument ()
 
- Public Member Functions inherited from WP42Listener
 WP42Listener ()
 
virtual ~WP42Listener ()
 

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

 WP42ContentListener (const WP42ContentListener &)
 
WP42ContentListeneroperator= (const WP42ContentListener &)
 

Private Attributes

WP42ContentParsingStatem_parseState
 
std::vector< WP42SubDocument * > & 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

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

Member Function Documentation

void WP42ContentListener::_changeList ( )
inlineprotectedvirtual

Implements WPXContentListener.

Referenced by _handleSubDocument().

void WP42ContentListener::_flushText ( )
protectedvirtual

Implements WPXContentListener.

Referenced by insertTab().

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

Implements WPXContentListener.

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

Implements WP42Listener.

void WP42ContentListener::endDocument ( )
inlinevirtual

Implements WP42Listener.

void WP42ContentListener::endSubDocument ( )
inlinevirtual

Implements WP42Listener.

Referenced by WP42Parser::parseSubDocument().

void WP42ContentListener::headerFooterGroup ( uint8_t  headerFooterDefinition,
WP42SubDocument subDocument 
)
virtual

Implements WP42Listener.

void WP42ContentListener::insertBreak ( uint8_t  breakType)
inlinevirtual

Implements WP42Listener.

void WP42ContentListener::insertCharacter ( uint32_t  character)
virtual

Implements WP42Listener.

void WP42ContentListener::insertEOL ( )
virtual

Implements WP42Listener.

void WP42ContentListener::insertTab ( uint8_t  tabType,
double  tabPosition 
)
virtual

Implements WP42Listener.

void WP42ContentListener::marginReset ( uint8_t  leftMargin,
uint8_t  rightMargin 
)
virtual

Implements WP42Listener.

WP42ContentListener& WP42ContentListener::operator= ( const WP42ContentListener )
private
void WP42ContentListener::startDocument ( )
inlinevirtual

Implements WP42Listener.

void WP42ContentListener::startSubDocument ( )
inlinevirtual

Implements WP42Listener.

Referenced by WP42Parser::parseSubDocument().

void WP42ContentListener::suppressPageCharacteristics ( uint8_t  )
inlinevirtual

Implements WP42Listener.

Member Data Documentation

WP42ContentParsingState* WP42ContentListener::m_parseState
private
std::vector<WP42SubDocument *>& WP42ContentListener::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