Defines | Variables

ie_imp_XSL-FO.cpp File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ut_types.h"
#include "ut_assert.h"
#include "ut_debugmsg.h"
#include "ut_locale.h"
#include "ut_std_string.h"
#include "ut_string.h"
#include "ie_impexp_XSL-FO.h"
#include "ie_imp_XSL-FO.h"
#include "ie_types.h"
#include "ie_impGraphic.h"
#include "pd_Document.h"
#include "fg_GraphicRaster.h"
#include "ut_growbuf.h"
#include "ut_string_class.h"

Defines

#define TokenTableSize   ((sizeof(s_Tokens)/sizeof(s_Tokens[0])))
#define X_TestParseState(ps)   ((m_parseState==(ps)))
#define X_VerifyParseState(ps)
#define X_CheckDocument(b)
#define X_CheckError(v)
#define X_EatIfAlreadyError()   do { if (m_error) return; } while (0)
#define USED()   do {if(used) sBuf+="; "; else used = true;} while (0)

Variables

static IE_SuffixConfidence IE_Imp_XSL_FO_Sniffer__SuffixConfidence []
static struct xmlToIdMapping s_Tokens []

Define Documentation

#define TokenTableSize   ((sizeof(s_Tokens)/sizeof(s_Tokens[0])))
#define USED (  )     do {if(used) sBuf+="; "; else used = true;} while (0)
#define X_CheckDocument (   b  ) 
Value:
do {  if (!(b))                             \
                                      {  m_error = UT_IE_BOGUSDOCUMENT; \
                                         UT_DEBUGMSG(("XSL-FO: X_CheckDocument failed: %s\n", #b)); \
                                         return; } } while (0)

Referenced by IE_Imp_XSL_FO::endElement().

#define X_CheckError (   v  ) 
Value:
do {  if (!(v))                             \
                                      {  m_error = UT_ERROR;            \
                                         UT_DEBUGMSG(("XSL-FO: X_CheckError failed: %s\n", #v)); \
                                         return; } } while (0)

Referenced by IE_Imp_XSL_FO::createImage(), IE_Imp_XSL_FO::endElement(), and IE_Imp_XSL_FO::startElement().

#define X_EatIfAlreadyError (  )     do { if (m_error) return; } while (0)
#define X_TestParseState (   ps  )     ((m_parseState==(ps)))
#define X_VerifyParseState (   ps  ) 
Value:
do {  if (!(X_TestParseState(ps)))          \
                                      {  m_error = UT_IE_BOGUSDOCUMENT; \
                                         UT_DEBUGMSG(("XSL-FO: X_VerifyParseState failed: %s\n", #ps)); \
                                         return; } } while (0)

Referenced by IE_Imp_XSL_FO::endElement(), and IE_Imp_XSL_FO::startElement().


Variable Documentation

Initial value:
struct xmlToIdMapping s_Tokens[] [static]
Initial value:
{
    {   "fo:basic-link",            TT_BASICLINK            },
    {   "fo:block",                 TT_BLOCK                },
    {   "fo:character",             TT_CHAR                 },
    {   "fo:external-graphic",      TT_IMAGE                },
    {   "fo:flow",                  TT_SECTION              },
    {   "fo:footnote",              TT_FOOTNOTE             },
    {   "fo:footnote-body",         TT_FOOTNOTEBODY         },
    {   "fo:inline",                TT_INLINE               },
    {   "fo:layout-master-set",     TT_LAYOUT_MASTER_SET    },
    {   "fo:list",                  TT_LIST                 },
    {   "fo:list-block",            TT_LISTBLOCK            },
    {   "fo:list-item",             TT_LISTITEM             },
    {   "fo:list-item-body",        TT_LISTITEMBODY         },
    {   "fo:list-item-label",       TT_LISTITEMLABEL        },
    {   "fo:page-sequence",         TT_PAGE_SEQUENCE        },
    {   "fo:region-body",           TT_REGION_BODY          },
    {   "fo:root",                  TT_DOCUMENT             },
    {   "fo:simple-page-master",    TT_SIMPLE_PAGE_MASTER   },
    {   "fo:static-content",        TT_STATIC               },
    {   "fo:table",                 TT_TABLE                },
    {   "fo:table-body",            TT_TABLEBODY            },
    {   "fo:table-cell",            TT_TABLECELL            },
    {   "fo:table-column",          TT_TABLECOLUMN          },
    {   "fo:table-row",             TT_TABLEROW             },
}