libebook::EBOOKHTMLParser Class Reference

#include <EBOOKHTMLParser.h>

List of all members.

Classes

struct  State

Public Types

enum  Dialect { DIALECT_UNKNOWN, DIALECT_HTML, DIALECT_XHTML }

Public Member Functions

 EBOOKHTMLParser (librevenge::RVNGInputStream *input, Dialect dialect, librevenge::RVNGTextInterface *document)
virtual ~EBOOKHTMLParser ()
void parse ()
const XMLTreeNodePtr_t readTree ()
virtual
librevenge::RVNGInputStream * 
getImage (const char *path)=0
virtual
librevenge::RVNGInputStream * 
getObject (const char *path)=0
virtual
librevenge::RVNGInputStream * 
getStylesheet (const char *path)=0

Private Member Functions

const XMLTreeNodePtr_t readTreeImpl (std::string &encoding, bool &encodingChange)
void processNode (const XMLTreeWalker &node)
void startElement (const XMLTreeWalker &node)
void endElement (const XMLTreeWalker &node)
void text (const XMLTreeWalker &node)
void startExternalElement (const XMLTreeWalker &node)
void endExternalElement (const XMLTreeWalker &node)
void sendParagraph (const XMLTreeWalker &node)
void sendSpan (const XMLTreeWalker &node)
void sendTableCell (const XMLTreeWalker &node)
void sendPreformattedText (const char *ch, int len)
void sendHeading (const XMLTreeWalker &node, int level)

Private Attributes

boost::shared_ptr< XMLCollectorm_collector
boost::shared_ptr< Statem_state
boost::shared_ptr
< librevenge::RVNGInputStream > 
m_input
boost::shared_ptr
< librevenge::RVNGInputStream > 
m_workingInput

Member Enumeration Documentation

Enumerator:
DIALECT_UNKNOWN 
DIALECT_HTML 
DIALECT_XHTML 

Constructor & Destructor Documentation

libebook::EBOOKHTMLParser::EBOOKHTMLParser ( librevenge::RVNGInputStream *  input,
Dialect  dialect,
librevenge::RVNGTextInterface *  document 
)

Member Function Documentation

void libebook::EBOOKHTMLParser::endElement ( const XMLTreeWalker node) [private]

Referenced by processNode().

virtual librevenge::RVNGInputStream* libebook::EBOOKHTMLParser::getImage ( const char *  path) [pure virtual]
virtual librevenge::RVNGInputStream* libebook::EBOOKHTMLParser::getObject ( const char *  path) [pure virtual]
virtual librevenge::RVNGInputStream* libebook::EBOOKHTMLParser::getStylesheet ( const char *  path) [pure virtual]
void libebook::EBOOKHTMLParser::processNode ( const XMLTreeWalker node) [private]

Referenced by parse().

const XMLTreeNodePtr_t libebook::EBOOKHTMLParser::readTreeImpl ( std::string &  encoding,
bool &  encodingChange 
) [private]

Referenced by readTree().

void libebook::EBOOKHTMLParser::sendHeading ( const XMLTreeWalker node,
int  level 
) [private]

Referenced by startElement().

void libebook::EBOOKHTMLParser::sendParagraph ( const XMLTreeWalker node) [private]

Referenced by sendHeading(), and startElement().

void libebook::EBOOKHTMLParser::sendPreformattedText ( const char *  ch,
int  len 
) [private]

Referenced by text().

void libebook::EBOOKHTMLParser::sendSpan ( const XMLTreeWalker node) [private]

Referenced by startElement().

void libebook::EBOOKHTMLParser::sendTableCell ( const XMLTreeWalker node) [private]
void libebook::EBOOKHTMLParser::startElement ( const XMLTreeWalker node) [private]

Referenced by processNode().

void libebook::EBOOKHTMLParser::text ( const XMLTreeWalker node) [private]

Referenced by processNode().


Member Data Documentation

boost::shared_ptr<librevenge::RVNGInputStream> libebook::EBOOKHTMLParser::m_input [private]

Referenced by readTree().

boost::shared_ptr<librevenge::RVNGInputStream> libebook::EBOOKHTMLParser::m_workingInput [private]

Referenced by readTree(), and readTreeImpl().


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