#include <stdio.h>#include <stdlib.h>#include <string.h>#include <stddef.h>#include <ctype.h>#include <math.h>#include "fl_TableLayout.h"#include "ut_locale.h"#include "ut_iconv.h"#include "ut_types.h"#include "ut_assert.h"#include "ut_debugmsg.h"#include "ut_math.h"#include "ut_path.h"#include "ut_string.h"#include "ut_string_class.h"#include "ut_units.h"#include "ut_std_vector.h"#include "ie_types.h"#include "ie_impexp_RTF.h"#include "ie_imp_RTF.h"#include "pd_Document.h"#include "pd_DocumentRDF.h"#include "pd_RDFSupport.h"#include "xap_EncodingManager.h"#include "ie_impGraphic.h"#include "fg_Graphic.h"#include "fg_GraphicRaster.h"#include "fg_GraphicVector.h"#include "ut_bytebuf.h"#include "ut_rand.h"#include "pd_Style.h"#include "fv_View.h"#include "fl_AutoLists.h"#include "pf_Frag.h"#include "pf_Frag_Strux.h"#include "xap_App.h"#include "xap_Frame.h"#include "fp_Run.h"#include "wv.h"#include "ut_std_string.h"#include "ie_imp_RTFParse.h"#include <sstream>Classes | |
| struct | SFontTableState |
Defines | |
| #define | CPNAME_OR_FALLBACK(destination, name, fallbackname) |
| #define | RTF_BASEDON_NONE 222 |
Functions | |
| UT_sint32 | _sanitizeListLevel (UT_sint32 level) |
| Ensure on input from RTF the list level is 0-8. | |
Variables | |
| static const UT_uint32 | PT_MAX_ATTRIBUTES = 20 |
| static char | g_dbgLastKeyword [256] |
| static UT_sint32 | g_dbgLastParam |
| static IE_SuffixConfidence | IE_Imp_RTF_Sniffer__SuffixConfidence [] |
| static IE_MimeConfidence | IE_Imp_RTF_Sniffer__MimeConfidence [] |
| #define CPNAME_OR_FALLBACK | ( | destination, | ||
| name, | ||||
| fallbackname | ||||
| ) |
{ \
static const char* cpname = NULL; \
if (!cpname) \
{ \
UT_iconv_t cd = UT_iconv_open(name,name); \
if (!UT_iconv_isValid(cd)) \
{ \
cpname = fallbackname;\
} \
else \
{ \
cpname = name; \
UT_iconv_close(cd); \
} \
} \
destination = cpname; \
}
This macros allow the use of an iconv fallback name if needed.
Referenced by RTFFontTableItem::RTFFontTableItem().
| #define RTF_BASEDON_NONE 222 |
Referenced by IE_Imp_RTF::HandleStyleDefinition().
Ensure on input from RTF the list level is 0-8.
Referenced by IE_Imp_RTF::HandleLists(), and IE_Imp_RTF::TranslateKeywordID().
char g_dbgLastKeyword[256] [static] |
Referenced by IE_Imp_RTF::_parseText(), IE_Imp_RTF::ParseRTFKeyword(), and IE_Imp_RTF::ReadKeyword().
UT_sint32 g_dbgLastParam [static] |
Referenced by IE_Imp_RTF::ReadKeyword().
{
{ IE_MIME_MATCH_FULL, IE_MIMETYPE_RTF, UT_CONFIDENCE_GOOD },
{ IE_MIME_MATCH_FULL, "application/richtext", UT_CONFIDENCE_GOOD },
{ IE_MIME_MATCH_FULL, "text/richtext", UT_CONFIDENCE_GOOD },
{ IE_MIME_MATCH_FULL, "text/rtf", UT_CONFIDENCE_GOOD },
{ IE_MIME_MATCH_BOGUS, "", UT_CONFIDENCE_ZILCH }
}
{
{ "rtf", UT_CONFIDENCE_PERFECT },
{ "doc", UT_CONFIDENCE_SOSO },
{ "", UT_CONFIDENCE_ZILCH }
}
const UT_uint32 PT_MAX_ATTRIBUTES = 20 [static] |
1.7.1