#include <ie_imp_MathML.h>
Public Member Functions | |
IE_Imp_MathML (PD_Document *pDocument, const IE_Imp_MathML_EntityTable &EntityTable) | |
virtual | ~IE_Imp_MathML () |
virtual bool | pasteFromBuffer (PD_DocumentRange *pDocRange, const unsigned char *pData, UT_uint32 lenData, const char *szEncoding=0) |
const UT_ByteBufPtr & | getByteBuf (void) const |
Protected Member Functions | |
virtual UT_Error | _loadFile (GsfInput *input) |
UT_Error | _parseStream (ImportStream *pStream) |
Private Attributes | |
UT_ByteBufPtr | m_pByteBuf |
const IE_Imp_MathML_EntityTable * | m_EntityTable |
IE_Imp_MathML::IE_Imp_MathML | ( | PD_Document * | pDocument, | |
const IE_Imp_MathML_EntityTable & | EntityTable | |||
) |
IE_Imp_MathML::~IE_Imp_MathML | ( | void | ) | [virtual] |
UT_Error IE_Imp_MathML::_loadFile | ( | GsfInput * | input | ) | [protected, virtual] |
Implements IE_Imp.
References _parseStream(), ImportStream::init(), and X_CleanupIfError.
UT_Error IE_Imp_MathML::_parseStream | ( | ImportStream * | pStream | ) | [protected] |
Parse stream contents into the document
stream | Stream to import from |
This code is used for both files and the clipboard
References IE_Imp_MathML_EntityTable::convert(), ImportStream::getChar(), m_EntityTable, m_pByteBuf, UT_ERROR, UT_OK, and UT_return_val_if_fail.
Referenced by _loadFile(), and pasteFromBuffer().
const UT_ByteBufPtr& IE_Imp_MathML::getByteBuf | ( | void | ) | const [inline] |
References m_pByteBuf.
Referenced by AbiMathView_FileInsert().
bool IE_Imp_MathML::pasteFromBuffer | ( | PD_DocumentRange * | pDocRange, | |
const unsigned char * | pData, | |||
UT_uint32 | lenData, | |||
const char * | szEncoding = 0 | |||
) | [virtual] |
Reimplemented from IE_Imp.
References _parseStream(), IE_Imp::getDoc(), ImportStream::init(), PD_DocumentRange::m_pDoc, PD_DocumentRange::m_pos1, PD_DocumentRange::m_pos2, IE_Imp::setClipboard(), and UT_return_val_if_fail.
const IE_Imp_MathML_EntityTable* IE_Imp_MathML::m_EntityTable [private] |
Referenced by _parseStream().
UT_ByteBufPtr IE_Imp_MathML::m_pByteBuf [private] |
Referenced by _parseStream(), and getByteBuf().