Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

WPXContentListener Class Reference

#include <WPXContentListener.h>

Inheritance diagram for WPXContentListener:

WPXListener WP1ContentListener WP3ContentListener WP42ContentListener WP5ContentListener WP6ContentListener List of all members.

Protected Member Functions

 WPXContentListener (std::list< WPXPageSpan > &pageList, WPXHLListenerImpl *listenerImpl)
virtual ~WPXContentListener ()
void startDocument ()
void endDocument ()
void handleSubDocument (const WPXSubDocument *subDocument, const bool isHeaderFooter, WPXTableList tableList, int nextTableIndice)
 Creates an new document state.

void insertBreak (const uint8_t breakType)
void lineSpacingChange (const float lineSpacing)
void justificationChange (const uint8_t justification)
virtual void _handleSubDocument (const WPXSubDocument *subDocument, const bool isHeaderFooter, WPXTableList tableList, int nextTableIndice)=0
virtual void _flushText ()=0
virtual void _changeList ()=0
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 float 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 ()
float _movePositionToFirstColumn (float position)
const float _getNextTabStop () const
const float _getPreviousTabStop () const
void _insertBreakIfNecessary (WPXPropertyList &propList)

Protected Attributes

WPXContentParsingStatem_ps
WPXHLListenerImplm_listenerImpl
WPXPropertyList m_metaData

Private Member Functions

 WPXContentListener (const WPXContentListener &)
WPXContentListeneroperator= (const WPXContentListener &)
WPXString _colorToString (const RGBSColor *color)
WPXString _mergeColorsToString (const RGBSColor *fgColor, const RGBSColor *bgColor)

Constructor & Destructor Documentation

WPXContentListener::WPXContentListener std::list< WPXPageSpan > &  pageList,
WPXHLListenerImpl listenerImpl
[protected]
 

WPXContentListener::~WPXContentListener  )  [protected, virtual]
 

WPXContentListener::WPXContentListener const WPXContentListener  )  [private]
 


Member Function Documentation

void WPXContentListener::_appendJustification WPXPropertyList propList,
int  justification
[protected]
 

void WPXContentListener::_appendParagraphProperties WPXPropertyList propList,
const bool  isListElement = false
[protected]
 

virtual void WPXContentListener::_changeList  )  [protected, pure virtual]
 

Implemented in WP1ContentListener, WP3ContentListener, WP42ContentListener, WP5ContentListener, and WP6ContentListener.

void WPXContentListener::_closeListElement  )  [protected]
 

void WPXContentListener::_closePageSpan  )  [protected]
 

void WPXContentListener::_closeParagraph  )  [protected]
 

void WPXContentListener::_closeSection  )  [protected]
 

void WPXContentListener::_closeSpan  )  [protected]
 

void WPXContentListener::_closeTable  )  [protected]
 

void WPXContentListener::_closeTableCell  )  [protected]
 

void WPXContentListener::_closeTableRow  )  [protected]
 

WPXString WPXContentListener::_colorToString const RGBSColor color  )  [private]
 

virtual void WPXContentListener::_flushText  )  [protected, pure virtual]
 

Implemented in WP1ContentListener, WP3ContentListener, WP42ContentListener, WP5ContentListener, and WP6ContentListener.

const float WPXContentListener::_getNextTabStop  )  const [protected]
 

const float WPXContentListener::_getPreviousTabStop  )  const [protected]
 

void WPXContentListener::_getTabStops WPXPropertyListVector tabStops  )  [protected]
 

virtual void WPXContentListener::_handleSubDocument const WPXSubDocument subDocument,
const bool  isHeaderFooter,
WPXTableList  tableList,
int  nextTableIndice
[protected, pure virtual]
 

Implemented in WP1ContentListener, WP3ContentListener, WP42ContentListener, WP5ContentListener, and WP6ContentListener.

void WPXContentListener::_insertBreakIfNecessary WPXPropertyList propList  )  [protected]
 

WPXString WPXContentListener::_mergeColorsToString const RGBSColor fgColor,
const RGBSColor bgColor
[private]
 

float WPXContentListener::_movePositionToFirstColumn float  position  )  [protected]
 

void WPXContentListener::_openListElement  )  [protected]
 

void WPXContentListener::_openPageSpan  )  [protected]
 

void WPXContentListener::_openParagraph  )  [protected, virtual]
 

Reimplemented in WP3ContentListener.

void WPXContentListener::_openSection  )  [protected]
 

void WPXContentListener::_openSpan  )  [protected]
 

void WPXContentListener::_openTable  )  [protected]
 

void WPXContentListener::_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
[protected]
 

void WPXContentListener::_openTableRow const float  height,
const bool  isMinimumHeight,
const bool  isHeaderRow
[protected]
 

void WPXContentListener::_resetParagraphState const bool  isListElement = false  )  [protected]
 

void WPXContentListener::endDocument  )  [protected]
 

Reimplemented in WP1ContentListener, WP3ContentListener, WP42ContentListener, WP5ContentListener, and WP6ContentListener.

void WPXContentListener::handleSubDocument const WPXSubDocument subDocument,
const bool  isHeaderFooter,
WPXTableList  tableList,
int  nextTableIndice
[protected]
 

Creates an new document state.

Saves the old state on a "stack".

void WPXContentListener::insertBreak const uint8_t  breakType  )  [protected]
 

Reimplemented in WP1ContentListener, WP3ContentListener, WP42ContentListener, WP5ContentListener, and WP6ContentListener.

void WPXContentListener::justificationChange const uint8_t  justification  )  [protected]
 

Reimplemented in WP1ContentListener, WP3ContentListener, WP5ContentListener, and WP6ContentListener.

void WPXContentListener::lineSpacingChange const float  lineSpacing  )  [protected]
 

Reimplemented in WP3ContentListener, WP5ContentListener, and WP6ContentListener.

WPXContentListener& WPXContentListener::operator= const WPXContentListener  )  [private]
 

void WPXContentListener::startDocument  )  [protected]
 

Reimplemented in WP1ContentListener, WP3ContentListener, WP42ContentListener, WP5ContentListener, and WP6ContentListener.


Member Data Documentation

WPXHLListenerImpl* WPXContentListener::m_listenerImpl [protected]
 

WPXPropertyList WPXContentListener::m_metaData [protected]
 

WPXContentParsingState* WPXContentListener::m_ps [protected]
 


The documentation for this class was generated from the following files:
Generated on Sat Aug 20 05:20:58 2022 for libwpd by doxygen 1.3.5