libebook::TDTextParser Class Reference

Classes

class  SaveAttribute
 

Public Member Functions

 TDTextParser (librevenge::RVNGTextInterface *document)
 
void parse (librevenge::RVNGInputStream *input, bool last=false)
 

Private Types

typedef deque< std::pair
< string, string > > 
Attributes_t
 
typedef boost::unordered_map
< string, Token > 
TokenMap_t
 

Private Member Functions

 TDTextParser (const TDTextParser &other)
 
TDTextParser operator= (const TDTextParser &other)
 
bool parseTag (librevenge::RVNGInputStream *input)
 
bool parseHeaderTag (const Attributes_t &attributeList)
 
void parseAttribute (const string &name, const string &rawValue, TDAttributes &attributes)
 
void openParagraph (const TDAttributes &attributes=TDAttributes())
 
void closeParagraph ()
 
void finishParagraph ()
 
void flushText (const TDAttributes &attributes=TDAttributes())
 

Private Attributes

librevenge::RVNGTextInterface
*const 
m_document
 
string m_text
 
bool m_openedParagraph
 

Member Typedef Documentation

typedef deque<std::pair<string, string> > libebook::TDTextParser::Attributes_t
private
typedef boost::unordered_map<string, Token> libebook::TDTextParser::TokenMap_t
private

Constructor & Destructor Documentation

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

Member Function Documentation

void libebook::TDTextParser::closeParagraph ( )
private

Referenced by finishParagraph(), and parseHeaderTag().

void libebook::TDTextParser::finishParagraph ( )
private

Referenced by parse(), and parseTag().

void libebook::TDTextParser::flushText ( const TDAttributes &  attributes = TDAttributes())
private

Referenced by finishParagraph(), and parseHeaderTag().

void libebook::TDTextParser::openParagraph ( const TDAttributes &  attributes = TDAttributes())
private

Referenced by flushText(), and parseHeaderTag().

TDTextParser libebook::TDTextParser::operator= ( const TDTextParser other)
private
void libebook::TDTextParser::parse ( librevenge::RVNGInputStream *  input,
bool  last = false 
)
void libebook::TDTextParser::parseAttribute ( const string &  name,
const string &  rawValue,
TDAttributes &  attributes 
)
private

Referenced by parseHeaderTag().

bool libebook::TDTextParser::parseHeaderTag ( const Attributes_t attributeList)
private

Referenced by parseTag().

bool libebook::TDTextParser::parseTag ( librevenge::RVNGInputStream *  input)
private

Referenced by parse().

Member Data Documentation

librevenge::RVNGTextInterface* const libebook::TDTextParser::m_document
private
bool libebook::TDTextParser::m_openedParagraph
private
string libebook::TDTextParser::m_text
private

Referenced by flushText(), parse(), and parseAttribute().


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

Generated for libe-book by doxygen 1.8.8