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, librevenge::RVNGTextInterface *documentInterface)
 
 ~WP1ContentListener ()
 
void startDocument ()
 
void startSubDocument ()
 
void insertCharacter (unsigned character)
 
void insertExtendedCharacter (unsigned char extendedCharacter)
 
void insertTab ()
 
void insertBreak (unsigned char breakType)
 
void insertEOL ()
 
void insertNote (WPXNoteType noteType, WP1SubDocument *subDocument)
 
void attributeChange (bool isOn, unsigned char attribute)
 
void fontPointSize (unsigned char pointSize)
 
void fontId (unsigned short id)
 
void marginReset (unsigned short leftMargin, unsigned short rightMargin)
 
void topMarginSet (unsigned short)
 
void bottomMarginSet (unsigned short)
 
void leftIndent (unsigned short leftMarginOffset)
 
void leftRightIndent (unsigned short leftRightMarginOffset)
 
void leftMarginRelease (unsigned short release)
 
void setTabs (const std::vector< WPXTabStop > &tabStops)
 
void headerFooterGroup (unsigned char headerFooterDefinition, WP1SubDocument *subDocument)
 
void suppressPageCharacteristics (unsigned char)
 
void justificationChange (unsigned char justification)
 
void lineSpacingChange (unsigned char spacing)
 
void flushRightOn ()
 
void flushRightOff ()
 
void centerOn ()
 
void centerOff ()
 
void endDocument ()
 
void endSubDocument ()
 
void insertPicture (unsigned short width, unsigned short height, const librevenge::RVNGBinaryData &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, librevenge::RVNGTextInterface *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 unsigned char breakType)
 
void lineSpacingChange (const double lineSpacing)
 
void justificationChange (const unsigned char justification)
 
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)
 

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
 
librevenge::RVNGTextInterface * m_documentInterface
 
librevenge::RVNGPropertyList 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,
librevenge::RVNGTextInterface *  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,
unsigned char  attribute 
)
virtual

Implements WP1Listener.

void WP1ContentListener::bottomMarginSet ( unsigned short  )
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 ( unsigned short  id)
virtual

Implements WP1Listener.

void WP1ContentListener::fontPointSize ( unsigned char  pointSize)
virtual

Implements WP1Listener.

void WP1ContentListener::headerFooterGroup ( unsigned char  headerFooterDefinition,
WP1SubDocument subDocument 
)
virtual

Implements WP1Listener.

void WP1ContentListener::insertBreak ( unsigned char  breakType)
inlinevirtual

Implements WP1Listener.

void WP1ContentListener::insertCharacter ( unsigned  character)
virtual

Implements WP1Listener.

void WP1ContentListener::insertEOL ( )
virtual

Implements WP1Listener.

void WP1ContentListener::insertExtendedCharacter ( unsigned char  extendedCharacter)
virtual

Implements WP1Listener.

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

Implements WP1Listener.

void WP1ContentListener::insertPicture ( unsigned short  width,
unsigned short  height,
const librevenge::RVNGBinaryData &  binaryData 
)
virtual

Implements WP1Listener.

void WP1ContentListener::insertTab ( )
virtual
void WP1ContentListener::justificationChange ( unsigned char  justification)
virtual

Implements WP1Listener.

void WP1ContentListener::leftIndent ( unsigned short  leftMarginOffset)
virtual

Implements WP1Listener.

void WP1ContentListener::leftMarginRelease ( unsigned short  release)
virtual

Implements WP1Listener.

void WP1ContentListener::leftRightIndent ( unsigned short  leftRightMarginOffset)
virtual

Implements WP1Listener.

void WP1ContentListener::lineSpacingChange ( unsigned char  spacing)
inlinevirtual

Implements WP1Listener.

void WP1ContentListener::marginReset ( unsigned short  leftMargin,
unsigned short  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 ( unsigned char  )
inlinevirtual

Implements WP1Listener.

void WP1ContentListener::topMarginSet ( unsigned short  )
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.8