WP3ContentListener Class Reference

#include <WP3ContentListener.h>

Inheritance diagram for WP3ContentListener:
WP3Listener WPXContentListener WPXListener

Public Member Functions

 WP3ContentListener (std::list< WPXPageSpan > &pageList, std::vector< WP3SubDocument * > &subDocuments, WPXDocumentInterface *documentInterface)
 
 ~WP3ContentListener ()
 
void startDocument ()
 
void startSubDocument ()
 
void insertCharacter (uint32_t character)
 
void insertTab ()
 
void insertTab (uint8_t tabType, double tabPosition)
 
void insertBreak (uint8_t breakType)
 
void insertEOL ()
 
void attributeChange (bool isOn, uint8_t attribute)
 
void lineSpacingChange (double lineSpacing)
 
void pageMarginChange (uint8_t, uint16_t)
 
void pageFormChange (uint16_t, uint16_t, WPXFormOrientation)
 
void marginChange (uint8_t side, uint16_t margin)
 
void indentFirstLineChange (double offset)
 
void setTabs (bool isRelative, const std::vector< WPXTabStop > tabStops)
 
void columnChange (WPXTextColumnType columnType, uint8_t numColumns, const std::vector< double > &columnWidth, const std::vector< bool > &isFixedWidth)
 
void endDocument ()
 
void endSubDocument ()
 
void defineTable (uint8_t position, uint16_t leftOffset)
 
void addTableColumnDefinition (uint32_t width, uint32_t leftGutter, uint32_t rightGutter, uint32_t attributes, uint8_t alignment)
 
void startTable ()
 
void insertRow ()
 
void insertCell ()
 
void closeCell ()
 
void closeRow ()
 
void setTableCellSpan (uint16_t colSpan, uint16_t rowSpan)
 
void setTableCellFillColor (const RGBSColor *cellFillColor)
 
void endTable ()
 
void undoChange (uint8_t undoType, uint16_t undoLevel)
 
void justificationChange (uint8_t justification)
 
void setTextColor (const RGBSColor *fontColor)
 
void setTextFont (const WPXString &fontName)
 
void setFontSize (uint16_t fontSize)
 
void insertPageNumber (const WPXString &pageNumber)
 
void insertNoteReference (const WPXString &noteReference)
 
void insertNote (WPXNoteType noteType, const WP3SubDocument *subDocument)
 
void headerFooterGroup (uint8_t headerFooterType, uint8_t occurenceBits, WP3SubDocument *subDocument)
 
void suppressPage (uint16_t)
 
void backTab ()
 
void leftIndent ()
 
void leftIndent (double offset)
 
void leftRightIndent ()
 
void leftRightIndent (double offset)
 
void insertPicture (double height, double width, double verticalOffset, double horizontalOffset, uint8_t leftColumn, uint8_t rightColumn, uint16_t figureFlags, const WPXBinaryData &binaryData)
 
void insertTextBox (double height, double width, double verticalOffset, double horizontalOffset, uint8_t leftColumn, uint8_t rightColumn, uint16_t figureFlags, const WP3SubDocument *subDocument, const WP3SubDocument *caption)
 
void insertWP51Table (double height, double width, double verticalOffset, double horizontalOffset, uint8_t leftColumn, uint8_t rightColumn, uint16_t figureFlags, const WP3SubDocument *subDocument, const WP3SubDocument *caption)
 
- Public Member Functions inherited from WP3Listener
 WP3Listener ()
 
virtual ~WP3Listener ()
 
void setResourceFork (WP3ResourceFork *resourceFork)
 
const WP3ResourceForkgetResourceFork () const
 

Protected Member Functions

void _handleSubDocument (const WPXSubDocument *subDocument, WPXSubDocumentType subDocumentType, WPXTableList tableList, unsigned nextTableIndice=0)
 
void _openParagraph ()
 
void _flushText ()
 
void _changeList ()
 
void _handleFrameParameters (WPXPropertyList &propList, double height, double width, double verticalOffset, double horizontalOffset, uint8_t leftColumn, uint8_t rightColumn, uint16_t figureFlags)
 
- 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)
 
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

 WP3ContentListener (const WP3ContentListener &)
 
WP3ContentListeneroperator= (const WP3ContentListener &)
 

Private Attributes

WP3ContentParsingStatem_parseState
 
std::vector< WP3SubDocument * > & 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

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

Member Function Documentation

void WP3ContentListener::_changeList ( )
inlineprotectedvirtual

Implements WPXContentListener.

Referenced by _handleSubDocument().

void WP3ContentListener::_flushText ( )
protectedvirtual

Implements WPXContentListener.

Referenced by endTable(), insertNote(), and insertTab().

void WP3ContentListener::_handleFrameParameters ( WPXPropertyList propList,
double  height,
double  width,
double  verticalOffset,
double  horizontalOffset,
uint8_t  leftColumn,
uint8_t  rightColumn,
uint16_t  figureFlags 
)
protected
void WP3ContentListener::_handleSubDocument ( const WPXSubDocument subDocument,
WPXSubDocumentType  subDocumentType,
WPXTableList  tableList,
unsigned  nextTableIndice = 0 
)
protectedvirtual

Implements WPXContentListener.

void WP3ContentListener::_openParagraph ( )
protectedvirtual

Reimplemented from WPXContentListener.

Referenced by insertNote().

void WP3ContentListener::addTableColumnDefinition ( uint32_t  width,
uint32_t  leftGutter,
uint32_t  rightGutter,
uint32_t  attributes,
uint8_t  alignment 
)
virtual

Implements WP3Listener.

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

Implements WP3Listener.

void WP3ContentListener::backTab ( )
virtual

Implements WP3Listener.

void WP3ContentListener::closeCell ( )
virtual

Implements WP3Listener.

Referenced by closeRow().

void WP3ContentListener::closeRow ( )
virtual

Implements WP3Listener.

void WP3ContentListener::columnChange ( WPXTextColumnType  columnType,
uint8_t  numColumns,
const std::vector< double > &  columnWidth,
const std::vector< bool > &  isFixedWidth 
)
virtual

Implements WP3Listener.

void WP3ContentListener::defineTable ( uint8_t  position,
uint16_t  leftOffset 
)
virtual

Implements WP3Listener.

void WP3ContentListener::endDocument ( )
inlinevirtual

Implements WP3Listener.

void WP3ContentListener::endSubDocument ( )
inlinevirtual

Implements WP3Listener.

Referenced by WP3Parser::parseSubDocument().

void WP3ContentListener::endTable ( )
virtual

Implements WP3Listener.

void WP3ContentListener::headerFooterGroup ( uint8_t  headerFooterType,
uint8_t  occurenceBits,
WP3SubDocument subDocument 
)
virtual

Implements WP3Listener.

void WP3ContentListener::indentFirstLineChange ( double  offset)
virtual

Implements WP3Listener.

void WP3ContentListener::insertBreak ( uint8_t  breakType)
inlinevirtual

Implements WP3Listener.

void WP3ContentListener::insertCell ( )

Referenced by _openParagraph(), and insertEOL().

void WP3ContentListener::insertCharacter ( uint32_t  character)
virtual

Implements WP3Listener.

void WP3ContentListener::insertEOL ( )
virtual

Implements WP3Listener.

Referenced by closeCell().

void WP3ContentListener::insertNote ( WPXNoteType  noteType,
const WP3SubDocument subDocument 
)
virtual

Implements WP3Listener.

void WP3ContentListener::insertNoteReference ( const WPXString noteReference)
virtual

Implements WP3Listener.

void WP3ContentListener::insertPageNumber ( const WPXString pageNumber)
virtual

Implements WP3Listener.

void WP3ContentListener::insertPicture ( double  height,
double  width,
double  verticalOffset,
double  horizontalOffset,
uint8_t  leftColumn,
uint8_t  rightColumn,
uint16_t  figureFlags,
const WPXBinaryData binaryData 
)
virtual

Implements WP3Listener.

void WP3ContentListener::insertRow ( )

Referenced by _openParagraph(), and insertEOL().

void WP3ContentListener::insertTab ( )
virtual

Implements WP3Listener.

Referenced by insertTab(), leftIndent(), and leftRightIndent().

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

Implements WP3Listener.

void WP3ContentListener::insertTextBox ( double  height,
double  width,
double  verticalOffset,
double  horizontalOffset,
uint8_t  leftColumn,
uint8_t  rightColumn,
uint16_t  figureFlags,
const WP3SubDocument subDocument,
const WP3SubDocument caption 
)
virtual

Implements WP3Listener.

void WP3ContentListener::insertWP51Table ( double  height,
double  width,
double  verticalOffset,
double  horizontalOffset,
uint8_t  leftColumn,
uint8_t  rightColumn,
uint16_t  figureFlags,
const WP3SubDocument subDocument,
const WP3SubDocument caption 
)
virtual

Implements WP3Listener.

void WP3ContentListener::justificationChange ( uint8_t  justification)
virtual

Implements WP3Listener.

void WP3ContentListener::leftIndent ( )
virtual

Implements WP3Listener.

void WP3ContentListener::leftIndent ( double  offset)
virtual

Implements WP3Listener.

void WP3ContentListener::leftRightIndent ( )
virtual

Implements WP3Listener.

void WP3ContentListener::leftRightIndent ( double  offset)
virtual

Implements WP3Listener.

void WP3ContentListener::lineSpacingChange ( double  lineSpacing)
inlinevirtual

Implements WP3Listener.

void WP3ContentListener::marginChange ( uint8_t  side,
uint16_t  margin 
)
virtual

Implements WP3Listener.

Referenced by _handleSubDocument().

WP3ContentListener& WP3ContentListener::operator= ( const WP3ContentListener )
private
void WP3ContentListener::pageFormChange ( uint16_t  ,
uint16_t  ,
WPXFormOrientation   
)
inlinevirtual

Implements WP3Listener.

void WP3ContentListener::pageMarginChange ( uint8_t  ,
uint16_t   
)
inlinevirtual

Implements WP3Listener.

void WP3ContentListener::setFontSize ( uint16_t  fontSize)
virtual

Implements WP3Listener.

void WP3ContentListener::setTableCellFillColor ( const RGBSColor cellFillColor)
virtual

Implements WP3Listener.

void WP3ContentListener::setTableCellSpan ( uint16_t  colSpan,
uint16_t  rowSpan 
)
virtual

Implements WP3Listener.

void WP3ContentListener::setTabs ( bool  isRelative,
const std::vector< WPXTabStop tabStops 
)
virtual

Implements WP3Listener.

void WP3ContentListener::setTextColor ( const RGBSColor fontColor)
virtual

Implements WP3Listener.

void WP3ContentListener::setTextFont ( const WPXString fontName)
virtual

Implements WP3Listener.

void WP3ContentListener::startDocument ( )
inlinevirtual

Implements WP3Listener.

void WP3ContentListener::startSubDocument ( )
inlinevirtual

Implements WP3Listener.

Referenced by WP3Parser::parseSubDocument().

void WP3ContentListener::startTable ( )
virtual

Implements WP3Listener.

void WP3ContentListener::suppressPage ( uint16_t  )
inlinevirtual

Implements WP3Listener.

void WP3ContentListener::undoChange ( uint8_t  undoType,
uint16_t  undoLevel 
)
virtual

Implements WP3Listener.

Member Data Documentation

std::vector<WP3SubDocument *>& WP3ContentListener::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