#include <ie_imp_XML.h>
typedef enum IE_Imp_XML::_parseState IE_Imp_XML::ParseState [protected] |
typedef std::map<std::string, UT_sint32> IE_Imp_XML::token_map_t [protected] |
enum IE_Imp_XML::_parseState [protected] |
IE_Imp_XML::IE_Imp_XML | ( | PD_Document * | pDocument, | |
bool | whiteSignificant | |||
) |
References _data_NewBlock().
IE_Imp_XML::~IE_Imp_XML | ( | ) | [virtual] |
UT_uint32 IE_Imp_XML::_data_CharCount | ( | ) | const [inline, protected] |
Referenced by IE_Imp_XHTML::startElement().
void IE_Imp_XML::_data_NewBlock | ( | ) | [protected] |
References m_bStripLeading, and m_iCharCount.
Referenced by IE_Imp_XML(), IE_Imp_XHTML::newBlock(), and IE_Imp_XHTML::startElement().
UT_uint32 IE_Imp_XML::_getInlineDepth | ( | void | ) | const [protected] |
const gchar * IE_Imp_XML::_getXMLPropValue | ( | const gchar * | name, | |
const gchar ** | atts | |||
) | [protected] |
References UT_getAttribute().
Referenced by IE_Imp_XSL_FO::createImage(), IE_Imp_WML::createImage(), IE_Imp_DocBook::createImage(), IE_Imp_WML::openTable(), IE_Imp_XSL_FO::startElement(), IE_Imp_WML::startElement(), IE_Imp_OPML::startElement(), IE_Imp_KWord_1::startElement(), and IE_Imp_DocBook::startElement().
UT_Error IE_Imp_XML::_loadFile | ( | GsfInput * | input | ) | [protected, virtual] |
Reimplemented in IE_Imp_HTML, and IE_Imp_XHTML.
References m_error, m_pParser, m_pReader, m_szFileName, UT_XML::parse(), UT_XML::setListener(), UT_XML::setReader(), UT_DEBUGMSG, UT_IE_SKIPINVALID, and UT_OK.
int IE_Imp_XML::_mapNameToToken | ( | const char * | name, | |
xmlToIdMapping * | idlist, | |||
int | len | |||
) | [protected] |
References m_tokens, xmlToIdMapping::m_type, and s_str_compare().
Referenced by IE_Imp_XSL_FO::endElement(), IE_Imp_XHTML::endElement(), IE_Imp_WML::endElement(), IE_Imp_OPML::endElement(), IE_Imp_KWord_1::endElement(), IE_Imp_DocBook::endElement(), IE_Imp_AbiWord_1::endElement(), IE_Imp_XSL_FO::startElement(), IE_Imp_XHTML::startElement(), IE_Imp_WML::startElement(), IE_Imp_OPML::startElement(), IE_Imp_KWord_1::startElement(), IE_Imp_DocBook::startElement(), and IE_Imp_AbiWord_1::startElement().
void IE_Imp_XML::_popInlineFmt | ( | void | ) | [protected] |
References m_nstackFmtStartIndex, m_vecInlineFmt, and UT_NumberStack::pop().
Referenced by IE_Imp_OPML::_createBullet(), IE_Imp_DocBook::createTitle(), IE_Imp_XSL_FO::endElement(), IE_Imp_XHTML::endElement(), IE_Imp_WML::endElement(), IE_Imp_KWord_1::endElement(), IE_Imp_DocBook::endElement(), IE_Imp_AbiWord_1::endElement(), and IE_Imp_XHTML::newBlock().
bool IE_Imp_XML::_pushInlineFmt | ( | const PP_PropertyVector & | atts | ) | [protected] |
void IE_Imp_XML::charData | ( | const gchar * | buffer, | |
int | length | |||
) | [virtual] |
Implements UT_XML::Listener.
Reimplemented in IE_Imp_DocBook, IE_Imp_KWord_1, IE_Imp_OPML, IE_Imp_WML, IE_Imp_XSL_FO, and IE_Imp_XHTML.
References _PS_Block, _PS_DataItem, _PS_Field, _PS_IgnoredWordsItem, _PS_Meta, _PS_RDFTriple, _PS_Revision, IE_Imp::appendSpan(), XAP_Resource::bInternal, XAP_InternalResource::buffer(), XAP_ResourceManager::current(), gchar, IE_Imp::getDoc(), m_bStripLeading, m_bWhiteSignificant, m_currentDataItem, m_currentDataItemEncoded, m_currentMetaDataName, m_currentRevisionId, m_currentRevisionTime, m_currentRevisionVersion, m_iCharCount, m_parseState, m_rdfMutation, m_rdfObjectType, m_rdfPredicate, m_rdfSubject, m_rdfXSDType, MyIsWhite, AD_Document::resourceManager(), PD_Document::setMetaDataProp(), UT_UCS4String::size(), UT_UCS4String::ucs4_str(), UCS_SPACE, UT_ASSERT_NOT_REACHED, UT_DEBUGMSG, UT_return_if_fail, X_CheckError, X_EatIfAlreadyError, and xxx_UT_DEBUGMSG.
void IE_Imp_XML::endElement | ( | const gchar * | name | ) | [virtual] |
Implements UT_XML::Listener.
Reimplemented in IE_Imp_DocBook, IE_Imp_KWord_1, IE_Imp_OPML, IE_Imp_WML, IE_Imp_XSL_FO, IE_Imp_AbiWord_1, and IE_Imp_XHTML.
References m_error, UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_SHOULD_NOT_HAPPEN, and X_EatIfAlreadyError.
UT_uint32 IE_Imp_XML::getOperationCount | ( | void | ) | const [inline] |
Referenced by IE_Imp_AbiWord_1::endElement(), and IE_Imp_AbiWord_1::startElement().
References m_error, m_pParser, m_pReader, m_szFileName, UT_XML::parse(), UT_XML::setListener(), UT_XML::setReader(), UT_DEBUGMSG, UT_IE_SKIPINVALID, and UT_OK.
Referenced by importFile().
UT_Error IE_Imp_XML::importFile | ( | const UT_ByteBuf * | data | ) | [virtual] |
References UT_ByteBuf::getLength(), UT_ByteBuf::getPointer(), and importFile().
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] |
Reimplemented in IE_Imp_XHTML.
References m_error, PD_DocumentRange::m_pDoc, PD_DocumentRange::m_pos1, m_pParser, m_pReader, UT_XML::parse(), IE_Imp::setClipboard(), UT_XML::setListener(), UT_XML::setReader(), UT_DEBUGMSG, UT_IE_SKIPINVALID, UT_OK, and UT_return_val_if_fail.
void IE_Imp_XML::setParser | ( | UT_XML * | pParser | ) | [inline, protected] |
Referenced by IE_Imp_XHTML::_loadFile(), and IE_Imp_MHT::importHTML4().
void IE_Imp_XML::setReader | ( | UT_XML::Reader * | pReader | ) | [inline, protected] |
Referenced by IE_Imp_HTML::_loadFile(), IE_Imp_MHT::importHTML4(), and IE_Imp_MHT::importXHTML().
void IE_Imp_XML::startElement | ( | const gchar * | name, | |
const gchar ** | atts | |||
) | [virtual] |
Implements UT_XML::Listener.
Reimplemented in IE_Imp_DocBook, IE_Imp_KWord_1, IE_Imp_OPML, IE_Imp_WML, IE_Imp_XSL_FO, IE_Imp_AbiWord_1, and IE_Imp_XHTML.
References m_error, UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_SHOULD_NOT_HAPPEN, and X_EatIfAlreadyError.
void IE_Imp_XML::stopParser | ( | void | ) | [inline, protected] |
Referenced by IE_Imp_AbiWord_1::endElement().
bool IE_Imp_XML::m_bSeenCR [protected] |
bool IE_Imp_XML::m_bStripLeading [private] |
Referenced by _data_NewBlock(), and charData().
bool IE_Imp_XML::m_bWasSpace [protected] |
Referenced by IE_Imp_XHTML::startElement().
bool IE_Imp_XML::m_bWhiteSignificant [protected] |
gchar IE_Imp_XML::m_charDataSeen[4] [protected] |
Referenced by IE_Imp_KWord_1::charData().
UT_ByteBufPtr IE_Imp_XML::m_currentDataItem [protected] |
Referenced by charData(), IE_Imp_AbiWord_1::endElement(), and IE_Imp_AbiWord_1::startElement().
bool IE_Imp_XML::m_currentDataItemEncoded [protected] |
std::string IE_Imp_XML::m_currentDataItemMimeType [protected] |
Referenced by IE_Imp_AbiWord_1::endElement(), and IE_Imp_AbiWord_1::startElement().
std::string IE_Imp_XML::m_currentDataItemName [protected] |
Referenced by IE_Imp_AbiWord_1::endElement(), and IE_Imp_AbiWord_1::startElement().
std::string IE_Imp_XML::m_currentMetaDataName [protected] |
Referenced by charData(), and IE_Imp_AbiWord_1::startElement().
UT_uint32 IE_Imp_XML::m_currentRevisionId [protected] |
Referenced by charData(), IE_Imp_AbiWord_1::endElement(), and IE_Imp_AbiWord_1::startElement().
time_t IE_Imp_XML::m_currentRevisionTime [protected] |
Referenced by charData(), IE_Imp_AbiWord_1::endElement(), and IE_Imp_AbiWord_1::startElement().
UT_uint32 IE_Imp_XML::m_currentRevisionVersion [protected] |
Referenced by charData(), IE_Imp_AbiWord_1::endElement(), and IE_Imp_AbiWord_1::startElement().
UT_Error IE_Imp_XML::m_error [protected] |
UT_uint32 IE_Imp_XML::m_iCharCount [private] |
Referenced by _data_NewBlock(), and charData().
UT_uint32 IE_Imp_XML::m_iOperationCount [protected] |
UT_uint32 IE_Imp_XML::m_lenCharDataExpected [protected] |
Referenced by IE_Imp_KWord_1::charData().
UT_uint32 IE_Imp_XML::m_lenCharDataSeen [protected] |
UT_NumberStack IE_Imp_XML::m_nstackFmtStartIndex [protected] |
Referenced by _getInlineDepth(), _popInlineFmt(), and _pushInlineFmt().
ParseState IE_Imp_XML::m_parseState [protected] |
Referenced by IE_Imp_XSL_FO::charData(), charData(), IE_Imp_XHTML::charData(), IE_Imp_WML::charData(), IE_Imp_OPML::charData(), IE_Imp_DocBook::charData(), IE_Imp_DocBook::createTitle(), IE_Imp_XSL_FO::endElement(), IE_Imp_XHTML::endElement(), IE_Imp_WML::endElement(), IE_Imp_OPML::endElement(), IE_Imp_KWord_1::endElement(), IE_Imp_DocBook::endElement(), IE_Imp_AbiWord_1::endElement(), IE_Imp_XHTML::newBlock(), IE_Imp_XHTML::requireBlock(), IE_Imp_DocBook::requireBlock(), IE_Imp_XHTML::requireSection(), IE_Imp_XSL_FO::startElement(), IE_Imp_XHTML::startElement(), IE_Imp_WML::startElement(), IE_Imp_OPML::startElement(), IE_Imp_KWord_1::startElement(), IE_Imp_DocBook::startElement(), and IE_Imp_AbiWord_1::startElement().
UT_XML* IE_Imp_XML::m_pParser [private] |
Referenced by _loadFile(), importFile(), and pasteFromBuffer().
UT_XML::Reader* IE_Imp_XML::m_pReader [private] |
Referenced by _loadFile(), importFile(), and pasteFromBuffer().
Referenced by charData(), IE_Imp_AbiWord_1::endElement(), and IE_Imp_AbiWord_1::startElement().
int IE_Imp_XML::m_rdfObjectType [protected] |
Referenced by charData(), and IE_Imp_AbiWord_1::startElement().
std::string IE_Imp_XML::m_rdfPredicate [protected] |
Referenced by charData(), and IE_Imp_AbiWord_1::startElement().
std::string IE_Imp_XML::m_rdfSubject [protected] |
Referenced by charData(), and IE_Imp_AbiWord_1::startElement().
std::string IE_Imp_XML::m_rdfXSDType [protected] |
Referenced by charData(), and IE_Imp_AbiWord_1::startElement().
const char* IE_Imp_XML::m_szFileName [protected] |
token_map_t IE_Imp_XML::m_tokens [protected] |
Referenced by _mapNameToToken().
PP_PropertyVector IE_Imp_XML::m_vecInlineFmt [protected] |
Referenced by _popInlineFmt(), _pushInlineFmt(), IE_Imp_XSL_FO::endElement(), IE_Imp_XHTML::endElement(), IE_Imp_WML::endElement(), IE_Imp_KWord_1::endElement(), IE_Imp_DocBook::endElement(), IE_Imp_AbiWord_1::endElement(), IE_Imp_XHTML::pushInline(), IE_Imp_XSL_FO::startElement(), IE_Imp_WML::startElement(), IE_Imp_DocBook::startElement(), and IE_Imp_AbiWord_1::startElement().