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

IE_Imp_XML Class Reference

#include <ie_imp_XML.h>

Inheritance diagram for IE_Imp_XML:
IE_Imp UT_XML::Listener IE_Imp_AbiWord_1 IE_Imp_DocBook IE_Imp_KWord_1 IE_Imp_OPML IE_Imp_WML IE_Imp_XHTML IE_Imp_XSL_FO IE_Imp_HTML IE_Imp_MHT

List of all members.

Public Member Functions

 IE_Imp_XML (PD_Document *pDocument, bool whiteSignificant)
virtual ~IE_Imp_XML ()
virtual UT_Error importFile (const char *data, UT_uint32 length)
virtual UT_Error importFile (const UT_ByteBuf *data)
virtual bool pasteFromBuffer (PD_DocumentRange *pDocRange, const unsigned char *pData, UT_uint32 lenData, const char *szEncoding=0)
virtual void startElement (const gchar *name, const gchar **atts)
virtual void endElement (const gchar *name)
virtual void charData (const gchar *buffer, int length)
void incOperationCount (void)
UT_uint32 getOperationCount (void) const

Protected Types

enum  _parseState {
  _PS_Init, _PS_Doc, _PS_Sec, _PS_Block,
  _PS_DataSec, _PS_DataItem, _PS_StyleSec, _PS_Style,
  _PS_IgnoredWordsSec, _PS_IgnoredWordsItem, _PS_ListSec, _PS_List,
  _PS_Field, _PS_PageSize, _PS_MetaData, _PS_Meta,
  _PS_RevisionSec, _PS_Revision, _PS_AuthorSec, _PS_Author,
  _PS_HistorySec, _PS_Table, _PS_Cell, _PS_Version,
  _PS_RDFTriple, _PS_RDFData
typedef enum
typedef std::map< std::string,

Protected Member Functions

void setReader (UT_XML::Reader *pReader)
void setParser (UT_XML *pParser)
void stopParser (void)
virtual UT_Error _loadFile (GsfInput *input)
int _mapNameToToken (const char *name, xmlToIdMapping *idlist, int len)
const gchar * _getXMLPropValue (const gchar *name, const gchar **atts)
UT_uint32 _getInlineDepth (void) const
bool _pushInlineFmt (const PP_PropertyVector &atts)
void _popInlineFmt (void)
UT_uint32 _data_CharCount () const
void _data_NewBlock ()

Protected Attributes

UT_Error m_error
ParseState m_parseState
gchar m_charDataSeen [4]
UT_uint32 m_lenCharDataSeen
UT_uint32 m_lenCharDataExpected
UT_uint32 m_iOperationCount
bool m_bSeenCR
bool m_bWhiteSignificant
bool m_bWasSpace
PP_PropertyVector m_vecInlineFmt
UT_NumberStack m_nstackFmtStartIndex
UT_ByteBufPtr m_currentDataItem
std::string m_currentDataItemName
std::string m_currentDataItemMimeType
bool m_currentDataItemEncoded
const char * m_szFileName
std::string m_currentMetaDataName
UT_uint32 m_currentRevisionId
time_t m_currentRevisionTime
UT_uint32 m_currentRevisionVersion
std::string m_rdfSubject
std::string m_rdfPredicate
std::string m_rdfXSDType
int m_rdfObjectType
PD_DocumentRDFMutationHandle m_rdfMutation
token_map_t m_tokens

Private Attributes

UT_uint32 m_iCharCount
bool m_bStripLeading

Member Typedef Documentation

typedef std::map<std::string, UT_sint32> IE_Imp_XML::token_map_t [protected]

Member Enumeration Documentation

enum IE_Imp_XML::_parseState [protected]

Constructor & Destructor Documentation

IE_Imp_XML::IE_Imp_XML ( PD_Document pDocument,
bool  whiteSignificant 

References _data_NewBlock().

IE_Imp_XML::~IE_Imp_XML (  )  [virtual]

Member Function Documentation

UT_uint32 IE_Imp_XML::_data_CharCount (  )  const [inline, protected]
void IE_Imp_XML::_data_NewBlock (  )  [protected]
UT_Error IE_Imp_XML::_loadFile ( GsfInput *  input  )  [protected, virtual]
void IE_Imp_XML::endElement ( const gchar *  name  )  [virtual]
UT_uint32 IE_Imp_XML::getOperationCount ( void   )  const [inline]
UT_Error IE_Imp_XML::importFile ( const char *  data,
UT_uint32  length 
) [virtual]
UT_Error IE_Imp_XML::importFile ( const UT_ByteBuf data  )  [virtual]
void IE_Imp_XML::incOperationCount ( void   )  [inline]
bool IE_Imp_XML::pasteFromBuffer ( PD_DocumentRange pDocRange,
const unsigned char *  pData,
UT_uint32  lenData,
const char *  szEncoding = 0 
) [virtual]
void IE_Imp_XML::setParser ( UT_XML pParser  )  [inline, protected]
void IE_Imp_XML::setReader ( UT_XML::Reader pReader  )  [inline, protected]
void IE_Imp_XML::startElement ( const gchar *  name,
const gchar **  atts 
) [virtual]
void IE_Imp_XML::stopParser ( void   )  [inline, protected]

Member Data Documentation

bool IE_Imp_XML::m_bSeenCR [protected]

Referenced by _data_NewBlock(), and charData().

bool IE_Imp_XML::m_bWasSpace [protected]
gchar IE_Imp_XML::m_charDataSeen[4] [protected]
std::string IE_Imp_XML::m_rdfPredicate [protected]
std::string IE_Imp_XML::m_rdfSubject [protected]
std::string IE_Imp_XML::m_rdfXSDType [protected]

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