libebook::PDBParser Class Reference

#include <PDBParser.h>

Inheritance diagram for libebook::PDBParser:
libebook::PDXParser

List of all members.

Public Member Functions

 PDBParser (WPXInputStream *input, WPXDocumentInterface *document=0)
virtual ~PDBParser ()

Private Member Functions

 PDBParser (const PDBParser &)
PDBParseroperator= (const PDBParser &)
virtual bool isFormatSupported (unsigned type, unsigned creator)
 Check whether a specific subformat is supported.
virtual void readAppInfoRecord (WPXInputStream *record)
virtual void readSortInfoRecord (WPXInputStream *record)
virtual void readIndexRecord (WPXInputStream *record)
virtual void readDataRecord (WPXInputStream *record, bool last)
void createConverter (const std::vector< char > &text)
void openDocument ()
void closeDocument ()
void handleText (const std::vector< char > &text)
void openParagraph ()
void closeParagraph (bool continuing=false)
void handleCharacters (const char *text)

Private Attributes

bool m_compressed
unsigned m_textLength
unsigned m_recordCount
unsigned m_recordSize
unsigned m_read
bool m_openedParagraph
 Signalize that a paragraph is split at record break.
bool m_openedDocument
EBOOKCharsetConverterm_converter

Constructor & Destructor Documentation

libebook::PDBParser::PDBParser ( const PDBParser ) [private]
libebook::PDBParser::PDBParser ( WPXInputStream *  input,
WPXDocumentInterface *  document = 0 
) [explicit]

Member Function Documentation

Referenced by readDataRecord().

void libebook::PDBParser::closeParagraph ( bool  continuing = false) [private]

Referenced by closeDocument(), and handleText().

void libebook::PDBParser::createConverter ( const std::vector< char > &  text) [private]

Referenced by readDataRecord().

void libebook::PDBParser::handleCharacters ( const char *  text) [private]

Referenced by handleText().

void libebook::PDBParser::handleText ( const std::vector< char > &  text) [private]

Referenced by readDataRecord().

bool libebook::PDBParser::isFormatSupported ( unsigned  type,
unsigned  creator 
) [private, virtual]

Check whether a specific subformat is supported.

  • [in] type the subformat's type
  • [in] creator the document's creator app.
Returns:
true if the subformat is supported

Implements libebook::PDXParser.

Referenced by readDataRecord().

Referenced by handleText().

PDBParser& libebook::PDBParser::operator= ( const PDBParser ) [private]
void libebook::PDBParser::readAppInfoRecord ( WPXInputStream *  record) [private, virtual]

Implements libebook::PDXParser.

void libebook::PDBParser::readDataRecord ( WPXInputStream *  record,
bool  last 
) [private, virtual]

Implements libebook::PDXParser.

void libebook::PDBParser::readIndexRecord ( WPXInputStream *  record) [private, virtual]

Implements libebook::PDXParser.

void libebook::PDBParser::readSortInfoRecord ( WPXInputStream *  record) [private, virtual]

Implements libebook::PDXParser.


Member Data Documentation

Signalize that a paragraph is split at record break.

We do not want to open a new paragraph in this case.

NOTE: I do not know if this is actually done. It is quite possible that a record always ends at a paragraph break. But AFAICS there is no prescribed special handling for '
', so this is at least possible.

Referenced by closeDocument(), closeParagraph(), and openParagraph().

unsigned libebook::PDBParser::m_read [private]

Referenced by readDataRecord().

Referenced by readIndexRecord().


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