#include <PDBParser.h>
Public Member Functions | |
| PDBParser (librevenge::RVNGInputStream *input, librevenge::RVNGTextInterface *document=0) | |
| virtual | ~PDBParser () |
Static Public Member Functions | |
| static bool | checkType (unsigned type, unsigned creator) |
Private Member Functions | |
| PDBParser (const PDBParser &) | |
| PDBParser & | operator= (const PDBParser &) |
| virtual void | readAppInfoRecord (librevenge::RVNGInputStream *record) |
| virtual void | readSortInfoRecord (librevenge::RVNGInputStream *record) |
| virtual void | readIndexRecord (librevenge::RVNGInputStream *record) |
| virtual void | readDataRecord (librevenge::RVNGInputStream *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 |
| EBOOKCharsetConverter * | m_converter |
| libebook::PDBParser::PDBParser | ( | const PDBParser & | ) | [private] |
| libebook::PDBParser::PDBParser | ( | librevenge::RVNGInputStream * | input, |
| librevenge::RVNGTextInterface * | document = 0 |
||
| ) | [explicit] |
| libebook::PDBParser::~PDBParser | ( | ) | [virtual] |
| bool libebook::PDBParser::checkType | ( | unsigned | type, |
| unsigned | creator | ||
| ) | [static] |
| void libebook::PDBParser::closeDocument | ( | ) | [private] |
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().
| void libebook::PDBParser::openDocument | ( | ) | [private] |
Referenced by readDataRecord().
| void libebook::PDBParser::openParagraph | ( | ) | [private] |
Referenced by handleText().
| void libebook::PDBParser::readAppInfoRecord | ( | librevenge::RVNGInputStream * | record | ) | [private, virtual] |
Implements libebook::PDXParser.
| void libebook::PDBParser::readDataRecord | ( | librevenge::RVNGInputStream * | record, |
| bool | last | ||
| ) | [private, virtual] |
Implements libebook::PDXParser.
| void libebook::PDBParser::readIndexRecord | ( | librevenge::RVNGInputStream * | record | ) | [private, virtual] |
Implements libebook::PDXParser.
| void libebook::PDBParser::readSortInfoRecord | ( | librevenge::RVNGInputStream * | record | ) | [private, virtual] |
Implements libebook::PDXParser.
bool libebook::PDBParser::m_compressed [private] |
Referenced by readDataRecord(), and readIndexRecord().
Referenced by createConverter(), handleText(), openDocument(), and ~PDBParser().
bool libebook::PDBParser::m_openedDocument [private] |
Referenced by closeDocument(), openDocument(), and readDataRecord().
bool libebook::PDBParser::m_openedParagraph [private] |
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().
unsigned libebook::PDBParser::m_recordCount [private] |
Referenced by readIndexRecord().
unsigned libebook::PDBParser::m_recordSize [private] |
Referenced by readDataRecord(), and readIndexRecord().
unsigned libebook::PDBParser::m_textLength [private] |
Referenced by readIndexRecord().