Public Member Functions | Private Member Functions | Private Attributes | List of all members
libabw::ABWContentCollector Class Reference

`#include <ABWContentCollector.h>`

Inheritance diagram for libabw::ABWContentCollector:

## Public Member Functions
| ABWContentCollector (librevenge::RVNGTextInterface *iface, const std::map< int, int > &tableSizes, const std::map< std::string, ABWData > &data, const std::map< int, std::shared_ptr< ABWListElement >> &listElements)
| ~ABWContentCollector () override
void | collectTextStyle (const char *name, const char *basedon, const char *followedby, const char *props) override
void | collectDocumentProperties (const char *props) override
void | collectParagraphProperties (const char *level, const char *listid, const char *parentid, const char *style, const char *props) override
void | collectSectionProperties (const char *footer, const char *footerLeft, const char *footerFirst, const char *footerLast, const char *header, const char *headerLeft, const char *headerFirst, const char *headerLast, const char *props) override
void | collectCharacterProperties (const char *style, const char *props) override
void | collectPageSize (const char *width, const char *height, const char *units, const char *pageScale) override
void | closeParagraphOrListElement () override
void | closeSpan () override
void | openLink (const char *href) override
void | closeLink () override
void | openFoot (const char *id) override
void | closeFoot () override
void | openEndnote (const char *id) override
void | closeEndnote () override
void | openField (const char *type, const char *id) override
void | closeField () override
void | endSection () override
void | startDocument () override
void | endDocument () override
void | insertLineBreak () override
void | insertColumnBreak () override
void | insertPageBreak () override
void | insertText (const char *text) override
void | insertImage (const char *dataid, const char *props) override
void | collectList (const char *, const char *, const char *, const char *, const char *, const char *) override
void | collectData (const char *name, const char *mimeType, const librevenge::RVNGBinaryData &data) override
void | collectHeaderFooter (const char *id, const char *type) override
void | openTable (const char *props) override
void | closeTable () override
void | openCell (const char *props) override
void | closeCell () override
void | openFrame (const char *props, const char *imageId, const char *title, const char *alt) override
void | closeFrame (ABWOutputElements *(&elements), bool &pageFrame) override
void | addFrameElements (ABWOutputElements &elements, bool pageFrame) override
void | addMetadataEntry (const char *name, const char *value) override
Public Member Functions inherited from libabw::ABWCollector
| ABWCollector ()
virtual | ~ABWCollector ()

## Private Member Functions
| ABWContentCollector (const ABWContentCollector &)
ABWContentCollector & | operator= (const ABWContentCollector &)
void | _setMetadata ()
void | _addBorderProperties (const std::map< std::string, std::string > &map, librevenge::RVNGPropertyList &propList, const std::string &defaultUndefBorderProp="")
void | _openPageSpan ()
void | _closePageSpan ()
void | _openSection ()
void | _closeSection ()
void | _openBlock ()
| open a paragraph or a list element (depend on m_currentListLevel) More...
void | _closeBlock ()
| close the current paragraph or list element More...
void | _openParagraph ()
void | _closeParagraph ()
void | _openListElement ()
void | _closeListElement ()
void | _handleListChange ()
void | _changeList ()
void | _recurseListLevels (int oldLevel, int newLevel, int listId)
void | _writeOutDummyListLevels (int oldLevel, int newLevel)
void | _openSpan ()
void | _closeSpan ()
void | _openTable ()
void | _closeTable ()
void | _openTableRow ()
void | _closeTableRow ()
void | _openTableCell ()
void | _closeTableCell ()
void | _openHeader ()
void | _closeHeader ()
void | _openFooter ()
void | _closeFooter ()
void | _recurseTextProperties (const char *name, ABWPropertyMap &styleProps)
std::string | _findDocumentProperty (const char *name)
std::string | _findParagraphProperty (const char *name)
std::string | _findCharacterProperty (const char *name)
std::string | _findTableProperty (const char *name)
std::string | _findCellProperty (const char *name)
std::string | _findSectionProperty (const char *name)
std::string | _findMetadataEntry (const char *name)
void | _fillParagraphProperties (librevenge::RVNGPropertyList &propList, bool isListElement)
bool | _convertFieldDTFormat (std::string const &dtFormat, librevenge::RVNGPropertyListVector &propVect)
int | getCellPos (const char *startProp, const char *endProp, int defStart)

## Private Attributes
std::shared_ptr< ABWContentParsingState > | m_ps
librevenge::RVNGTextInterface * | m_iface
std::stack< std::shared_ptr< ABWContentParsingState > > | m_parsingStates
std::set< std::string > | m_dontLoop
std::map< std::string, ABWStyle > | m_textStyles
ABWPropertyMap | m_documentStyle
ABWPropertyMap | m_metadata
const std::map< std::string, ABWData > & | m_data
const std::map< int, int > & | m_tableSizes
int | m_tableCounter
ABWOutputElements | m_outputElements
ABWOutputElements | m_pageOutputElements
const std::map< int, std::shared_ptr< ABWListElement > > & | m_listElements
std::vector< std::shared_ptr< ABWListElement > > | m_dummyListElements

## Constructor & Destructor Documentation

## ◆ ABWContentCollector() [1/2]

libabw::ABWContentCollector::ABWContentCollector | ( | librevenge::RVNGTextInterface * | iface,
|  | const std::map< int, int > & | tableSizes,
|  | const std::map< std::string, ABWData > & | data,
|  | const std::map< int, std::shared_ptr< ABWListElement >> & | listElements
| ) |  |

## ◆ ~ABWContentCollector()

libabw::ABWContentCollector::~ABWContentCollector | ( |  | ) |
| override

## ◆ ABWContentCollector() [2/2]

libabw::ABWContentCollector::ABWContentCollector | ( | const ABWContentCollector & |  | ) |
| private

## Member Function Documentation

## ◆ _addBorderProperties()

void libabw::ABWContentCollector::_addBorderProperties | ( | const std::map< std::string, std::string > & | map,
|  | librevenge::RVNGPropertyList & | propList,
|  | const std::string & | defaultUndefBorderProp = `""`
| ) |  |
| private

## ◆ _changeList()

void libabw::ABWContentCollector::_changeList | ( |  | ) |
| private

## ◆ _closeBlock()

void libabw::ABWContentCollector::_closeBlock | ( |  | ) |
| private

close the current paragraph or list element

## ◆ _closeFooter()

void libabw::ABWContentCollector::_closeFooter | ( |  | ) |
| private

## ◆ _closeHeader()

void libabw::ABWContentCollector::_closeHeader | ( |  | ) |
| private

## ◆ _closeListElement()

void libabw::ABWContentCollector::_closeListElement | ( |  | ) |
| private

## ◆ _closePageSpan()

void libabw::ABWContentCollector::_closePageSpan | ( |  | ) |
| private

## ◆ _closeParagraph()

void libabw::ABWContentCollector::_closeParagraph | ( |  | ) |
| private

## ◆ _closeSection()

void libabw::ABWContentCollector::_closeSection | ( |  | ) |
| private

## ◆ _closeSpan()

void libabw::ABWContentCollector::_closeSpan | ( |  | ) |
| private

## ◆ _closeTable()

void libabw::ABWContentCollector::_closeTable | ( |  | ) |
| private

## ◆ _closeTableCell()

void libabw::ABWContentCollector::_closeTableCell | ( |  | ) |
| private

## ◆ _closeTableRow()

void libabw::ABWContentCollector::_closeTableRow | ( |  | ) |
| private

## ◆ _convertFieldDTFormat()

bool libabw::ABWContentCollector::_convertFieldDTFormat | ( | std::string const & | dtFormat,
|  | librevenge::RVNGPropertyListVector & | propVect
| ) |  |
| private

## ◆ _fillParagraphProperties()

void libabw::ABWContentCollector::_fillParagraphProperties | ( | librevenge::RVNGPropertyList & | propList,
|  | bool | isListElement
| ) |  |
| private

## ◆ _findCellProperty()

std::string libabw::ABWContentCollector::_findCellProperty | ( | const char * | name | ) |
| private

## ◆ _findCharacterProperty()

std::string libabw::ABWContentCollector::_findCharacterProperty | ( | const char * | name | ) |
| private

## ◆ _findDocumentProperty()

std::string libabw::ABWContentCollector::_findDocumentProperty | ( | const char * | name | ) |
| private

## ◆ _findMetadataEntry()

std::string libabw::ABWContentCollector::_findMetadataEntry | ( | const char * | name | ) |
| private

## ◆ _findParagraphProperty()

std::string libabw::ABWContentCollector::_findParagraphProperty | ( | const char * | name | ) |
| private

## ◆ _findSectionProperty()

std::string libabw::ABWContentCollector::_findSectionProperty | ( | const char * | name | ) |
| private

## ◆ _findTableProperty()

std::string libabw::ABWContentCollector::_findTableProperty | ( | const char * | name | ) |
| private

## ◆ _handleListChange()

void libabw::ABWContentCollector::_handleListChange | ( |  | ) |
| private

## ◆ _openBlock()

void libabw::ABWContentCollector::_openBlock | ( |  | ) |
| private

open a paragraph or a list element (depend on m_currentListLevel)

## ◆ _openFooter()

void libabw::ABWContentCollector::_openFooter | ( |  | ) |
| private

## ◆ _openHeader()

void libabw::ABWContentCollector::_openHeader | ( |  | ) |
| private

## ◆ _openListElement()

void libabw::ABWContentCollector::_openListElement | ( |  | ) |
| private

## ◆ _openPageSpan()

void libabw::ABWContentCollector::_openPageSpan | ( |  | ) |
| private

## ◆ _openParagraph()

void libabw::ABWContentCollector::_openParagraph | ( |  | ) |
| private

## ◆ _openSection()

void libabw::ABWContentCollector::_openSection | ( |  | ) |
| private

## ◆ _openSpan()

void libabw::ABWContentCollector::_openSpan | ( |  | ) |
| private

## ◆ _openTable()

void libabw::ABWContentCollector::_openTable | ( |  | ) |
| private

## ◆ _openTableCell()

void libabw::ABWContentCollector::_openTableCell | ( |  | ) |
| private

## ◆ _openTableRow()

void libabw::ABWContentCollector::_openTableRow | ( |  | ) |
| private

## ◆ _recurseListLevels()

void libabw::ABWContentCollector::_recurseListLevels | ( | int | oldLevel,
|  | int | newLevel,
|  | int | listId
| ) |  |
| private

## ◆ _recurseTextProperties()

void libabw::ABWContentCollector::_recurseTextProperties | ( | const char * | name,
|  | ABWPropertyMap & | styleProps
| ) |  |
| private

## ◆ _setMetadata()

void libabw::ABWContentCollector::_setMetadata | ( |  | ) |
| private

## ◆ _writeOutDummyListLevels()

void libabw::ABWContentCollector::_writeOutDummyListLevels | ( | int | oldLevel,
|  | int | newLevel
| ) |  |
| private

## ◆ addFrameElements()

void libabw::ABWContentCollector::addFrameElements | ( | ABWOutputElements & | elements,
|  | bool | pageFrame
| ) |  |
| override virtual

Implements libabw::ABWCollector.

## ◆ addMetadataEntry()

void libabw::ABWContentCollector::addMetadataEntry | ( | const char * | name,
|  | const char * | value
| ) |  |
| override virtual

Implements libabw::ABWCollector.

## ◆ closeCell()

void libabw::ABWContentCollector::closeCell | ( |  | ) |
| override virtual

Implements libabw::ABWCollector.

## ◆ closeEndnote()

void libabw::ABWContentCollector::closeEndnote | ( |  | ) |
| override virtual

Implements libabw::ABWCollector.

## ◆ closeField()

void libabw::ABWContentCollector::closeField | ( |  | ) |
| override virtual

Implements libabw::ABWCollector.

## ◆ closeFoot()

void libabw::ABWContentCollector::closeFoot | ( |  | ) |
| override virtual

Implements libabw::ABWCollector.

## ◆ closeFrame()

void libabw::ABWContentCollector::closeFrame | ( | libabw::ABWOutputElements *& | elements,
|  | bool & | pageFrame
| ) |  |
| override virtual

Implements libabw::ABWCollector.

## ◆ closeLink()

void libabw::ABWContentCollector::closeLink | ( |  | ) |
| override virtual

Implements libabw::ABWCollector.

## ◆ closeParagraphOrListElement()

void libabw::ABWContentCollector::closeParagraphOrListElement | ( |  | ) |
| override virtual

Implements libabw::ABWCollector.

## ◆ closeSpan()

void libabw::ABWContentCollector::closeSpan | ( |  | ) |
| override virtual

Implements libabw::ABWCollector.

## ◆ closeTable()

void libabw::ABWContentCollector::closeTable | ( |  | ) |
| override virtual

Implements libabw::ABWCollector.

## ◆ collectCharacterProperties()

void libabw::ABWContentCollector::collectCharacterProperties | ( | const char * | style,
|  | const char * | props
| ) |  |
| override virtual

Implements libabw::ABWCollector.

## ◆ collectData()

void libabw::ABWContentCollector::collectData | ( | const char * | name,
|  | const char * | mimeType,
|  | const librevenge::RVNGBinaryData & | data
| ) |  |
| override virtual

Implements libabw::ABWCollector.

## ◆ collectDocumentProperties()

void libabw::ABWContentCollector::collectDocumentProperties | ( | const char * | props | ) |
| override virtual

Implements libabw::ABWCollector.

## ◆ collectHeaderFooter()

void libabw::ABWContentCollector::collectHeaderFooter | ( | const char * | id,
|  | const char * | type
| ) |  |
| override virtual

Implements libabw::ABWCollector.

## ◆ collectList()

void libabw::ABWContentCollector::collectList | ( | const char * | ,
|  | const char * | ,
|  | const char * | ,
|  | const char * | ,
|  | const char * | ,
|  | const char * |
| ) |  |
| inline override virtual

Implements libabw::ABWCollector.

## ◆ collectPageSize()

void libabw::ABWContentCollector::collectPageSize | ( | const char * | width,
|  | const char * | height,
|  | const char * | units,
|  | const char * | pageScale
| ) |  |
| override virtual

Implements libabw::ABWCollector.

## ◆ collectParagraphProperties()

void libabw::ABWContentCollector::collectParagraphProperties | ( | const char * | level,
|  | const char * | listid,
|  | const char * | parentid,
|  | const char * | style,
|  | const char * | props
| ) |  |
| override virtual

Implements libabw::ABWCollector.

## ◆ collectSectionProperties()

void libabw::ABWContentCollector::collectSectionProperties | ( | const char * | footer,
|  | const char * | footerLeft,
|  | const char * | footerFirst,
|  | const char * | footerLast,
|  | const char * | header,
|  | const char * | headerLeft,
|  | const char * | headerFirst,
|  | const char * | headerLast,
|  | const char * | props
| ) |  |
| override virtual

Implements libabw::ABWCollector.

## ◆ collectTextStyle()

void libabw::ABWContentCollector::collectTextStyle | ( | const char * | name,
|  | const char * | basedon,
|  | const char * | followedby,
|  | const char * | props
| ) |  |
| override virtual

Implements libabw::ABWCollector.

## ◆ endDocument()

void libabw::ABWContentCollector::endDocument | ( |  | ) |
| override virtual

Implements libabw::ABWCollector.

## ◆ endSection()

void libabw::ABWContentCollector::endSection | ( |  | ) |
| override virtual

Implements libabw::ABWCollector.

## ◆ getCellPos()

int libabw::ABWContentCollector::getCellPos | ( | const char * | startProp,
|  | const char * | endProp,
|  | int | defStart
| ) |  |
| private

## ◆ insertColumnBreak()

void libabw::ABWContentCollector::insertColumnBreak | ( |  | ) |
| override virtual

Implements libabw::ABWCollector.

## ◆ insertImage()

void libabw::ABWContentCollector::insertImage | ( | const char * | dataid,
|  | const char * | props
| ) |  |
| override virtual

Implements libabw::ABWCollector.

## ◆ insertLineBreak()

void libabw::ABWContentCollector::insertLineBreak | ( |  | ) |
| override virtual

Implements libabw::ABWCollector.

## ◆ insertPageBreak()

void libabw::ABWContentCollector::insertPageBreak | ( |  | ) |
| override virtual

Implements libabw::ABWCollector.

## ◆ insertText()

void libabw::ABWContentCollector::insertText | ( | const char * | text | ) |
| override virtual

Implements libabw::ABWCollector.

## ◆ openCell()

void libabw::ABWContentCollector::openCell | ( | const char * | props | ) |
| override virtual

Implements libabw::ABWCollector.

## ◆ openEndnote()

void libabw::ABWContentCollector::openEndnote | ( | const char * | id | ) |
| override virtual

Implements libabw::ABWCollector.

## ◆ openField()

void libabw::ABWContentCollector::openField | ( | const char * | type,
|  | const char * | id
| ) |  |
| override virtual

Implements libabw::ABWCollector.

## ◆ openFoot()

void libabw::ABWContentCollector::openFoot | ( | const char * | id | ) |
| override virtual

Implements libabw::ABWCollector.

## ◆ openFrame()

void libabw::ABWContentCollector::openFrame | ( | const char * | props,
|  | const char * | imageId,
|  | const char * | title,
|  | const char * | alt
| ) |  |
| override virtual

Implements libabw::ABWCollector.

## ◆ openLink()

void libabw::ABWContentCollector::openLink | ( | const char * | href | ) |
| override virtual

Implements libabw::ABWCollector.

## ◆ openTable()

void libabw::ABWContentCollector::openTable | ( | const char * | props | ) |
| override virtual

Implements libabw::ABWCollector.

## ◆ operator=()

ABWContentCollector& libabw::ABWContentCollector::operator= | ( | const ABWContentCollector & |  | ) |
| private

## ◆ startDocument()

void libabw::ABWContentCollector::startDocument | ( |  | ) |
| override virtual

Implements libabw::ABWCollector.

## Member Data Documentation

## ◆ m_data

const std::map<std::string, ABWData>& libabw::ABWContentCollector::m_data
| private

## ◆ m_documentStyle

ABWPropertyMap libabw::ABWContentCollector::m_documentStyle
| private

## ◆ m_dontLoop

std::set<std::string> libabw::ABWContentCollector::m_dontLoop
| private

## ◆ m_dummyListElements

std::vector<std::shared_ptr<ABWListElement> > libabw::ABWContentCollector::m_dummyListElements
| private

## ◆ m_iface

librevenge::RVNGTextInterface* libabw::ABWContentCollector::m_iface
| private

## ◆ m_listElements

const std::map<int, std::shared_ptr<ABWListElement> >& libabw::ABWContentCollector::m_listElements
| private

## ◆ m_metadata

ABWPropertyMap libabw::ABWContentCollector::m_metadata
| private

## ◆ m_outputElements

ABWOutputElements libabw::ABWContentCollector::m_outputElements
| private

## ◆ m_pageOutputElements

ABWOutputElements libabw::ABWContentCollector::m_pageOutputElements
| private

## ◆ m_parsingStates

std::stack<std::shared_ptr<ABWContentParsingState> > libabw::ABWContentCollector::m_parsingStates
| private

## ◆ m_ps

std::shared_ptr<ABWContentParsingState> libabw::ABWContentCollector::m_ps
| private

## ◆ m_tableCounter

int libabw::ABWContentCollector::m_tableCounter
| private

## ◆ m_tableSizes

const std::map<int, int>& libabw::ABWContentCollector::m_tableSizes
| private

## ◆ m_textStyles

std::map<std::string, ABWStyle> libabw::ABWContentCollector::m_textStyles
| private

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

- ABWContentCollector.h
- ABWContentCollector.cpp