Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes

IE_Imp_StarOffice Class Reference

#include <ie_imp_StarOffice.h>

Inheritance diagram for IE_Imp_StarOffice:
IE_Imp

List of all members.

Public Member Functions

 IE_Imp_StarOffice (PD_Document *pDocument)
 ~IE_Imp_StarOffice ()

Protected Member Functions

virtual UT_Error _loadFile (GsfInput *input)

Private Types

typedef std::map< UT_uint16,
std::basic_string< UT_UCS4Char > > 
stringpool_map
 Map for the SWG_STRINGPOOL.

Private Member Functions

void readRecSize (GsfInput *stream, UT_uint32 &aSize, gsf_off_t *aEOR=NULL) noexcept(false)
void readByteString (GsfInput *stream, UT_UCS4Char *&str) noexcept(false)

Static Private Member Functions

static UT_uint32 getVersion (const char *szVerString)

Private Attributes

FILE * mFile
GsfInfile * mOle
GsfInput * mDocStream
DocHdr mDocHdr
stringpool_map mStringPool

Member Typedef Documentation

typedef std::map<UT_uint16, std::basic_string<UT_UCS4Char> > IE_Imp_StarOffice::stringpool_map [private]

Map for the SWG_STRINGPOOL.


Constructor & Destructor Documentation

IE_Imp_StarOffice::IE_Imp_StarOffice ( PD_Document pDocument  ) 
IE_Imp_StarOffice::~IE_Imp_StarOffice (  ) 

References mDocStream, and mOle.


Member Function Documentation

static UT_uint32 IE_Imp_StarOffice::getVersion ( const char *  szVerString  )  [static, private]

Finds the version number, given a version string.

Returns:
One of SOFFICE_FILEFORMAT_31, SOFFICE_FILEFORMAT_40 and SOFFICE_FILEFORMAT_50
void IE_Imp_StarOffice::readByteString ( GsfInput *  stream,
UT_UCS4Char *&  str 
) [inline, private]

Reads a string from the file where the first sint32 contains the length. If it is zero-terminated, length must include the byte for termination. The string will be converted to the charset given in mDocHdr. If the document is encrypted, the string will be decrypted before character set conversion.

Parameters:
stream The stream to read from
str Reference to pointer to UT_UCS4Char, where the string is stored. Must be free'd. Is NULL if the function fails.

References DocHdr::converter, DocHdr::cryptor, and mDocHdr.

Referenced by _loadFile().

void IE_Imp_StarOffice::readRecSize ( GsfInput *  stream,
UT_uint32 aSize,
gsf_off_t *  aEOR = NULL 
) [private]

Reads the record size from the stream. That is, usually three bytes starting from the current position.

Parameters:
aStream the stream to read from
aSize Reference to the size of the record
aEOR End of Record - file position where the record is finished

References streamRead(), SWG_LONGRECS, UT_ASSERT_HARMLESS, and UT_NOT_IMPLEMENTED.

Referenced by _loadFile().


Member Data Documentation

GsfInput* IE_Imp_StarOffice::mDocStream [private]

Referenced by _loadFile(), and ~IE_Imp_StarOffice().

FILE* IE_Imp_StarOffice::mFile [private]
GsfInfile* IE_Imp_StarOffice::mOle [private]

Referenced by _loadFile(), and ~IE_Imp_StarOffice().


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