#include <ie_imp_GOChart.h>
Public Member Functions | |
IE_Imp_Object (PD_Document *pDocument) | |
virtual | ~IE_Imp_Object () |
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 |
IE_Imp_Object::IE_Imp_Object | ( | PD_Document * | pDocument | ) |
IE_Imp_Object::~IE_Imp_Object | ( | void | ) | [virtual] |
UT_Error IE_Imp_Object::_loadFile | ( | GsfInput * | input | ) | [protected, virtual] |
Implements IE_Imp.
References _parseStream(), ImportStream::init(), and X_CleanupIfError.
UT_Error IE_Imp_Object::_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 FV_View::cmdInsertEmbed(), FV_View::cmdSelect(), XAP_App::getApp(), ImportStream::getChar(), XAP_Frame::getCurrentView(), XAP_App::getLastFocussedFrame(), FV_View::getPoint(), m_pByteBuf, UT_ERROR, and UT_return_val_if_fail.
Referenced by _loadFile(), and pasteFromBuffer().
const UT_ByteBufPtr& IE_Imp_Object::getByteBuf | ( | void | ) | const [inline] |
References m_pByteBuf.
bool IE_Imp_Object::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.
UT_ByteBufPtr IE_Imp_Object::m_pByteBuf [private] |
Referenced by _parseStream(), and getByteBuf().