#include <LRFCollector.h>
Classes | |
struct | ImageData |
Public Member Functions | |
LRFCollector (WPXDocumentInterface *document) | |
~LRFCollector () | |
void | startDocument () |
void | endDocument () |
void | openPage (unsigned pageAtrID, const LRFAttributes &attributes) |
void | closePage () |
void | openBlock (unsigned atrID, const LRFAttributes &attributes) |
void | closeBlock () |
void | openTextBlock (unsigned atrID, const LRFAttributes &attributes) |
void | closeTextBlock () |
void | openParagraph (unsigned atrID, const LRFAttributes &attributes) |
void | closeParagraph () |
void | collectText (const std::string &text, const LRFAttributes &attributes) |
void | insertLineBreak () |
void | collectMetadata (const LRFMetadata &metadata) |
void | collectBookAttributes (const LRFAttributes &attributes) |
void | collectTextAttributes (unsigned id, const LRFAttributes &attributes) |
void | collectBlockAttributes (unsigned id, const LRFAttributes &attributes) |
void | collectPageAttributes (unsigned id, const LRFAttributes &attributes) |
void | collectParagraphAttributes (unsigned id, const LRFAttributes &attributes) |
void | collectImage (unsigned id) |
void | collectImageData (unsigned id, ImageType type, WPXInputStream *image) |
Private Types | |
typedef std::map< unsigned, ImageData > | ImageMap_t |
Private Member Functions | |
LRFCollector (const LRFCollector &other) | |
LRFCollector & | operator= (const LRFCollector &other) |
void | collectAttributes (unsigned id, const LRFAttributes &attributes, LRFAttributeMap_t &attributeMap) |
void | openBlock (unsigned atrID, const LRFAttributes &attributes, const LRFAttributeMap_t *attributeMap) |
Private Attributes | |
LRFAttributes | m_bookAttributes |
LRFAttributeMap_t | m_textAttributeMap |
LRFAttributeMap_t | m_blockAttributeMap |
LRFAttributeMap_t | m_pageAttributeMap |
LRFAttributeMap_t | m_paragraphAttributeMap |
WPXDocumentInterface *const | m_document |
std::stack< LRFAttributes > | m_currentAttributes |
ImageMap_t | m_imageMap |
typedef std::map<unsigned, ImageData> libebook::LRFCollector::ImageMap_t [private] |
libebook::LRFCollector::LRFCollector | ( | const LRFCollector & | other | ) | [private] |
libebook::LRFCollector::LRFCollector | ( | WPXDocumentInterface * | document | ) | [explicit] |
void libebook::LRFCollector::closeBlock | ( | ) |
Referenced by closePage(), closeParagraph(), closeTextBlock(), collectText(), and libebook::LRFParser::readBlockObject().
void libebook::LRFCollector::closePage | ( | ) |
Referenced by libebook::LRFParser::readPageObject().
Referenced by libebook::LRFParser::readTextObject().
Referenced by libebook::LRFParser::readTextObject().
void libebook::LRFCollector::collectAttributes | ( | unsigned | id, |
const LRFAttributes & | attributes, | ||
LRFAttributeMap_t & | attributeMap | ||
) | [private] |
Referenced by collectBlockAttributes(), collectPageAttributes(), collectParagraphAttributes(), and collectTextAttributes().
void libebook::LRFCollector::collectBlockAttributes | ( | unsigned | id, |
const LRFAttributes & | attributes | ||
) |
Referenced by libebook::LRFParser::readBlockAtrObject().
void libebook::LRFCollector::collectBookAttributes | ( | const LRFAttributes & | attributes | ) |
Referenced by libebook::LRFParser::readBookAtrObject().
void libebook::LRFCollector::collectImage | ( | unsigned | id | ) |
Referenced by libebook::LRFParser::readImageObject().
void libebook::LRFCollector::collectImageData | ( | unsigned | id, |
ImageType | type, | ||
WPXInputStream * | image | ||
) |
Referenced by libebook::LRFParser::readImageStreamObject().
void libebook::LRFCollector::collectMetadata | ( | const LRFMetadata & | metadata | ) |
Referenced by libebook::LRFParser::readMetadata().
void libebook::LRFCollector::collectPageAttributes | ( | unsigned | id, |
const LRFAttributes & | attributes | ||
) |
Referenced by libebook::LRFParser::readPageAtrObject().
void libebook::LRFCollector::collectParagraphAttributes | ( | unsigned | id, |
const LRFAttributes & | attributes | ||
) |
Referenced by libebook::LRFParser::readParagraphAtrObject().
void libebook::LRFCollector::collectText | ( | const std::string & | text, |
const LRFAttributes & | attributes | ||
) |
Referenced by libebook::LRFParser::readTextObject().
void libebook::LRFCollector::collectTextAttributes | ( | unsigned | id, |
const LRFAttributes & | attributes | ||
) |
Referenced by libebook::LRFParser::readTextAtrObject().
void libebook::LRFCollector::endDocument | ( | ) |
Referenced by libebook::LRFParser::parse().
Referenced by libebook::LRFParser::readTextObject().
void libebook::LRFCollector::openBlock | ( | unsigned | atrID, |
const LRFAttributes & | attributes | ||
) |
Referenced by collectText(), openPage(), openParagraph(), openTextBlock(), and libebook::LRFParser::readBlockObject().
void libebook::LRFCollector::openBlock | ( | unsigned | atrID, |
const LRFAttributes & | attributes, | ||
const LRFAttributeMap_t * | attributeMap | ||
) | [private] |
void libebook::LRFCollector::openPage | ( | unsigned | pageAtrID, |
const LRFAttributes & | attributes | ||
) |
Referenced by libebook::LRFParser::readPageObject().
void libebook::LRFCollector::openParagraph | ( | unsigned | atrID, |
const LRFAttributes & | attributes | ||
) |
Referenced by libebook::LRFParser::readTextObject().
void libebook::LRFCollector::openTextBlock | ( | unsigned | atrID, |
const LRFAttributes & | attributes | ||
) |
Referenced by libebook::LRFParser::readTextObject().
LRFCollector& libebook::LRFCollector::operator= | ( | const LRFCollector & | other | ) | [private] |
Referenced by libebook::LRFParser::parse().
Referenced by collectBlockAttributes(), and openBlock().
Referenced by collectBookAttributes(), and startDocument().
std::stack<LRFAttributes> libebook::LRFCollector::m_currentAttributes [private] |
Referenced by closeBlock(), collectText(), endDocument(), openBlock(), openPage(), openParagraph(), and startDocument().
WPXDocumentInterface* const libebook::LRFCollector::m_document [private] |
Referenced by closePage(), closeParagraph(), collectImage(), collectMetadata(), collectText(), endDocument(), insertLineBreak(), openPage(), openParagraph(), and startDocument().
ImageMap_t libebook::LRFCollector::m_imageMap [private] |
Referenced by collectImage(), collectImageData(), and ~LRFCollector().
Referenced by collectPageAttributes(), and openPage().
Referenced by collectParagraphAttributes(), and openParagraph().
Referenced by collectTextAttributes(), and openTextBlock().