#include <stdio.h>#include <stdlib.h>#include "ut_types.h"#include "ut_assert.h"#include "ut_debugmsg.h"#include "ut_string.h"#include "ut_iconv.h"#include "ie_imp_MathML.h"#include "pd_Document.h"#include "xap_EncodingManager.h"#include "ap_Dialog_Id.h"#include "xap_DialogFactory.h"#include "xap_Dlg_Encoding.h"#include "ap_Prefs.h"#include "ie_imp_Text.h"#include "entitiesMap.inc"Defines | |
| #define | X_CleanupIfError(error, exp) do { if (((error)=(exp)) != UT_OK) goto Cleanup; } while (0) |
| #define | X_ReturnIfFail(exp, error) do { bool b = (exp); if (!b) return (error); } while (0) |
| #define | X_ReturnNoMemIfError(exp) X_ReturnIfFail(exp,UT_IE_NOMEMORY) |
Functions | |
| static int | compareEntities (const void *pSz, const void *pEnt) |
| static int | sortEntities (const void *pEnt1, const void *pEnt2) |
Variables | |
| static const AbiMathViewEntityMapItem | mathmlEntitiesMap [] |
| static IE_SuffixConfidence | IE_Imp_MathML_Sniffer__SuffixConfidence [] |
| static IE_MimeConfidence | IE_Imp_MathML_Sniffer__MimeConfidence [] |
| #define X_CleanupIfError | ( | error, | ||
| exp | ||||
| ) | do { if (((error)=(exp)) != UT_OK) goto Cleanup; } while (0) |
Referenced by IE_Imp_MathML::_loadFile().
| #define X_ReturnIfFail | ( | exp, | ||
| error | ||||
| ) | do { bool b = (exp); if (!b) return (error); } while (0) |
| #define X_ReturnNoMemIfError | ( | exp | ) | X_ReturnIfFail(exp,UT_IE_NOMEMORY) |
| static int compareEntities | ( | const void * | pSz, | |
| const void * | pEnt | |||
| ) | [static] |
References AbiMathViewEntityMapItem::szEntity.
Referenced by IE_Imp_MathML_EntityTable::convert().
| static int sortEntities | ( | const void * | pEnt1, | |
| const void * | pEnt2 | |||
| ) | [static] |
References AbiMathViewEntityMapItem::szEntity.
Referenced by IE_Imp_MathML_EntityTable::IE_Imp_MathML_EntityTable().
{
{ IE_MIME_MATCH_FULL, "application/mathml+xml", UT_CONFIDENCE_GOOD },
{ IE_MIME_MATCH_FULL, "application/mathml", UT_CONFIDENCE_GOOD },
{ IE_MIME_MATCH_CLASS, "text", UT_CONFIDENCE_SOSO },
{ IE_MIME_MATCH_BOGUS, "", UT_CONFIDENCE_ZILCH }
}
{
{ "mathml", UT_CONFIDENCE_PERFECT },
{ "xml", UT_CONFIDENCE_GOOD },
{ "", UT_CONFIDENCE_ZILCH }
}
const AbiMathViewEntityMapItem mathmlEntitiesMap[] [static] |
1.7.1