#include <ie_imp_PalmDoc.h>
Public Member Functions | |
IE_Imp_PalmDoc (PD_Document *pDocument) | |
~IE_Imp_PalmDoc () | |
Protected Member Functions | |
virtual UT_Error | _loadFile (GsfInput *fp) |
UT_Error | _parseFile (GsfInput *fp) |
UT_Error | _writeHeader (GsfInput *fp) |
void | _selectSwap () |
void | _uncompress (buffer *) |
Byte * | _mem_find (Byte *t, int t_len, Byte *m, int m_len) |
Word | _swap_Word (Word) |
DWord | _swap_DWord (DWord) |
Private Attributes | |
UT_UCS4_mbtowc | m_Mbtowc |
GsfInput * | m_pdfp |
pdb_header | m_header |
doc_record0 | m_rec0 |
unsigned long | m_index |
DWord | m_recOffset |
UT_uint32 | m_numRecords |
DWord | m_fileSize |
buffer * | m_buf |
UT_uint32 | m_bufLen |
UT_uint32 | m_bufPosition |
bool | m_littlendian |
IE_Imp_PalmDoc::IE_Imp_PalmDoc | ( | PD_Document * | pDocument | ) |
References _selectSwap(), _zero_fill(), buffer::buf, BUFFER_SIZE, buffer::len, m_buf, m_fileSize, m_numRecords, m_pdfp, and buffer::position.
IE_Imp_PalmDoc::~IE_Imp_PalmDoc | ( | ) |
UT_Error IE_Imp_PalmDoc::_loadFile | ( | GsfInput * | fp | ) | [protected, virtual] |
Implements IE_Imp.
References _parseFile(), _writeHeader(), m_pdfp, and X_CleanupIfError.
UT_Error IE_Imp_PalmDoc::_parseFile | ( | GsfInput * | fp | ) | [protected] |
References _swap_Word(), _uncompress(), _zero_fill(), IE_Imp::appendSpan(), IE_Imp::appendStrux(), buffer::buf, BUFFER_SIZE, DOC_CREATOR, DOC_TYPE, GET_DWord, UT_GrowBuf::getLength(), UT_GrowBuf::getPointer(), UT_GrowBuf::ins(), buffer::len, m_buf, m_Mbtowc, UT_UCS4_mbtowc::mbtowc(), PDB_HEADER_SIZE, PDB_RECORD_HEADER_SIZE, buffer::position, PTX_Block, UT_GrowBuf::truncate(), UT_DEBUGMSG, and X_ReturnNoMemIfError.
Referenced by _loadFile().
void IE_Imp_PalmDoc::_selectSwap | ( | ) | [protected] |
References m_littlendian.
Referenced by IE_Imp_PalmDoc().
References m_littlendian.
References m_littlendian.
Referenced by _parseFile().
void IE_Imp_PalmDoc::_uncompress | ( | buffer * | buf | ) | [protected] |
References _zero_fill(), buffer::buf, BUFFER_SIZE, COUNT_BITS, buffer::position, and UT_ASSERT.
Referenced by _parseFile().
UT_Error IE_Imp_PalmDoc::_writeHeader | ( | GsfInput * | fp | ) | [protected] |
References IE_Imp::appendStrux(), PTX_Section, and X_ReturnNoMemIfError.
Referenced by _loadFile().
buffer* IE_Imp_PalmDoc::m_buf [private] |
Referenced by _parseFile(), and IE_Imp_PalmDoc().
UT_uint32 IE_Imp_PalmDoc::m_bufLen [private] |
UT_uint32 IE_Imp_PalmDoc::m_bufPosition [private] |
DWord IE_Imp_PalmDoc::m_fileSize [private] |
Referenced by IE_Imp_PalmDoc().
pdb_header IE_Imp_PalmDoc::m_header [private] |
unsigned long IE_Imp_PalmDoc::m_index [private] |
bool IE_Imp_PalmDoc::m_littlendian [private] |
Referenced by _selectSwap(), _swap_DWord(), and _swap_Word().
UT_UCS4_mbtowc IE_Imp_PalmDoc::m_Mbtowc [private] |
Referenced by _parseFile().
UT_uint32 IE_Imp_PalmDoc::m_numRecords [private] |
Referenced by IE_Imp_PalmDoc().
GsfInput* IE_Imp_PalmDoc::m_pdfp [private] |
Referenced by _loadFile(), and IE_Imp_PalmDoc().
doc_record0 IE_Imp_PalmDoc::m_rec0 [private] |
DWord IE_Imp_PalmDoc::m_recOffset [private] |