libebook::LRFCollector Class Reference

#include <LRFCollector.h>

Classes

struct  ImageData
 
struct  ImageStreamData
 

Public Member Functions

 LRFCollector (librevenge::RVNGTextInterface *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 insertImage (unsigned id)
 
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, unsigned dataId, unsigned width, unsigned height)
 
void collectImageData (unsigned id, LRFImageType type, librevenge::RVNGInputStream *image)
 
void setDPI (double dpi)
 

Private Types

typedef std::map< unsigned,
ImageStreamData
ImageDataMap_t
 
typedef std::map< unsigned,
ImageData
ImageMap_t
 

Private Member Functions

 LRFCollector (const LRFCollector &other)
 
LRFCollectoroperator= (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
 
librevenge::RVNGTextInterface
*const 
m_document
 
std::stack< LRFAttributesm_currentAttributes
 
ImageDataMap_t m_imageDataMap
 
ImageMap_t m_imageMap
 
double m_dpi
 
bool m_firstParaInBlock
 

Member Typedef Documentation

typedef std::map<unsigned, ImageStreamData> libebook::LRFCollector::ImageDataMap_t
private
typedef std::map<unsigned, ImageData> libebook::LRFCollector::ImageMap_t
private

Constructor & Destructor Documentation

libebook::LRFCollector::LRFCollector ( const LRFCollector other)
private
libebook::LRFCollector::LRFCollector ( librevenge::RVNGTextInterface *  document)
explicit
libebook::LRFCollector::~LRFCollector ( )

Member Function Documentation

void libebook::LRFCollector::closeBlock ( )
void libebook::LRFCollector::closePage ( )
void libebook::LRFCollector::closeParagraph ( )
void libebook::LRFCollector::closeTextBlock ( )
void libebook::LRFCollector::collectAttributes ( unsigned  id,
const LRFAttributes attributes,
LRFAttributeMap_t attributeMap 
)
private
void libebook::LRFCollector::collectBlockAttributes ( unsigned  id,
const LRFAttributes attributes 
)
void libebook::LRFCollector::collectBookAttributes ( const LRFAttributes attributes)
void libebook::LRFCollector::collectImage ( unsigned  id,
unsigned  dataId,
unsigned  width,
unsigned  height 
)
void libebook::LRFCollector::collectImageData ( unsigned  id,
LRFImageType  type,
librevenge::RVNGInputStream *  image 
)
void libebook::LRFCollector::collectMetadata ( const LRFMetadata metadata)
void libebook::LRFCollector::collectPageAttributes ( unsigned  id,
const LRFAttributes attributes 
)
void libebook::LRFCollector::collectParagraphAttributes ( unsigned  id,
const LRFAttributes attributes 
)
void libebook::LRFCollector::collectText ( const std::string &  text,
const LRFAttributes attributes 
)
void libebook::LRFCollector::collectTextAttributes ( unsigned  id,
const LRFAttributes attributes 
)
void libebook::LRFCollector::endDocument ( )
void libebook::LRFCollector::insertImage ( unsigned  id)
void libebook::LRFCollector::insertLineBreak ( )
void libebook::LRFCollector::openBlock ( unsigned  atrID,
const LRFAttributes attributes 
)
void libebook::LRFCollector::openBlock ( unsigned  atrID,
const LRFAttributes attributes,
const LRFAttributeMap_t attributeMap 
)
private
void libebook::LRFCollector::openPage ( unsigned  pageAtrID,
const LRFAttributes attributes 
)
void libebook::LRFCollector::openParagraph ( unsigned  atrID,
const LRFAttributes attributes 
)
void libebook::LRFCollector::openTextBlock ( unsigned  atrID,
const LRFAttributes attributes 
)
LRFCollector& libebook::LRFCollector::operator= ( const LRFCollector other)
private
void libebook::LRFCollector::setDPI ( double  dpi)
void libebook::LRFCollector::startDocument ( )

Member Data Documentation

LRFAttributeMap_t libebook::LRFCollector::m_blockAttributeMap
private
LRFAttributes libebook::LRFCollector::m_bookAttributes
private
std::stack<LRFAttributes> libebook::LRFCollector::m_currentAttributes
private
librevenge::RVNGTextInterface* const libebook::LRFCollector::m_document
private
double libebook::LRFCollector::m_dpi
private
bool libebook::LRFCollector::m_firstParaInBlock
private

Referenced by openParagraph(), and openTextBlock().

ImageDataMap_t libebook::LRFCollector::m_imageDataMap
private
ImageMap_t libebook::LRFCollector::m_imageMap
private

Referenced by collectImage(), and insertImage().

LRFAttributeMap_t libebook::LRFCollector::m_pageAttributeMap
private

Referenced by collectPageAttributes(), and openPage().

LRFAttributeMap_t libebook::LRFCollector::m_paragraphAttributeMap
private
LRFAttributeMap_t libebook::LRFCollector::m_textAttributeMap
private

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

Generated for libe-book by doxygen 1.8.8