#include <ie_exp_PalmDoc.h>
Public Member Functions | |
IE_Exp_PalmDoc (PD_Document *pDocument) | |
virtual | ~IE_Exp_PalmDoc () |
Protected Member Functions | |
virtual UT_Error | _writeDocument (void) |
virtual UT_uint32 | _writeBytes (const UT_Byte *pBytes, UT_uint32 length) |
virtual bool | _writeBytes (const UT_Byte *sz) |
void | _selectSwap () |
void | _compress (buffer *) |
Byte * | _mem_find (Byte *t, int t_len, Byte *m, int m_len) |
Word | _swap_Word (Word) |
DWord | _swap_DWord (DWord) |
void | _zero_fill (char *, int len) |
Private Attributes | |
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 |
bool | m_littlendian |
IE_Exp_PalmDoc::IE_Exp_PalmDoc | ( | PD_Document * | pDocument | ) |
References _selectSwap(), buffer::len, m_buf, and buffer::position.
IE_Exp_PalmDoc::~IE_Exp_PalmDoc | ( | ) | [virtual] |
void IE_Exp_PalmDoc::_compress | ( | buffer * | b | ) | [protected] |
References buffer::buf, BUFFER_SIZE, buffer::len, buffer::position, and UT_DEBUGMSG.
Referenced by _writeBytes(), and _writeDocument().
void IE_Exp_PalmDoc::_selectSwap | ( | ) | [protected] |
References m_littlendian.
Referenced by IE_Exp_PalmDoc().
References m_littlendian.
Referenced by _writeDocument().
References m_littlendian.
Referenced by _writeDocument().
UT_uint32 IE_Exp_PalmDoc::_writeBytes | ( | const UT_Byte * | pBytes, | |
UT_uint32 | length | |||
) | [protected, virtual] |
Reimplemented from IE_Exp.
References _compress(), buffer::buf, IE_Exp::getFp(), buffer::len, m_buf, m_fileSize, m_index, m_numRecords, m_recOffset, PDB_HEADER_SIZE, PDB_RECORD_HEADER_SIZE, buffer::position, PUT_DWord, UT_ASSERT, UT_DEBUGMSG, and xxx_UT_DEBUGMSG.
Referenced by _writeBytes().
bool IE_Exp_PalmDoc::_writeBytes | ( | const UT_Byte * | sz | ) | [protected, virtual] |
Reimplemented from IE_Exp.
References _writeBytes(), and UT_ASSERT.
UT_Error IE_Exp_PalmDoc::_writeDocument | ( | void | ) | [protected, virtual] |
Reimplemented from IE_Exp_Text.
References _compress(), _swap_DWord(), _swap_Word(), _zero_fill(), pdb_header::appInfoID, pdb_header::attributes, pdb_header::backup_time, buffer::buf, pdb_header::create_time, pdb_header::creator, DOC_CREATOR, doc_record0::doc_size, DOC_TYPE, IE_Exp::getFileName(), IE_Exp::getFp(), pdb_header::id_seed, buffer::len, m_buf, m_fileSize, m_header, m_index, m_numRecords, m_rec0, m_recOffset, pdb_header::modificationNumber, pdb_header::modify_time, pdb_header::name, pdb_header::nextRecordList, doc_record0::numRecords, pdb_header::numRecords, PDB_HEADER_SIZE, PDB_RECORD_HEADER_SIZE, buffer::position, PUT_DWord, doc_record0::rec_size, RECORD_SIZE_MAX, doc_record0::reserved1, doc_record0::reserved2, pdb_header::sortInfoID, pdb_header::type, UT_basename(), UT_DEBUGMSG, UT_OK, doc_record0::version, pdb_header::version, and xxx_UT_DEBUGMSG.
void IE_Exp_PalmDoc::_zero_fill | ( | char * | p, | |
int | len | |||
) | [protected] |
Referenced by _writeDocument().
buffer* IE_Exp_PalmDoc::m_buf [private] |
Referenced by _writeBytes(), _writeDocument(), and IE_Exp_PalmDoc().
DWord IE_Exp_PalmDoc::m_fileSize [private] |
Referenced by _writeBytes(), and _writeDocument().
pdb_header IE_Exp_PalmDoc::m_header [private] |
Referenced by _writeDocument().
unsigned long IE_Exp_PalmDoc::m_index [private] |
Referenced by _writeBytes(), and _writeDocument().
bool IE_Exp_PalmDoc::m_littlendian [private] |
Referenced by _selectSwap(), _swap_DWord(), and _swap_Word().
UT_uint32 IE_Exp_PalmDoc::m_numRecords [private] |
Referenced by _writeBytes(), and _writeDocument().
doc_record0 IE_Exp_PalmDoc::m_rec0 [private] |
Referenced by _writeDocument().
DWord IE_Exp_PalmDoc::m_recOffset [private] |
Referenced by _writeBytes(), and _writeDocument().