1 /*************************************************************************** 2 begin : Sat Feb 20 2010 3 copyright : (C) 2010 by Martin Preuss 4 email : martin@libchipcard.de 5 6 *************************************************************************** 7 * Please see toplevel file COPYING for license details * 8 ***************************************************************************/ 9 10 11 #ifndef HTMLXMLCTX_P_H 12 #define HTMLXMLCTX_P_H 13 14 15 #include "htmlctx_l.h" 16 17 18 19 typedef struct HTML_XMLCTX HTML_XMLCTX; 20 struct HTML_XMLCTX { 21 HTML_GROUP *currentGroup; 22 HTML_OBJECT_TREE *objects; 23 char *currentTagName; 24 GWEN_DB_NODE *dbCurrentAttribs; 25 26 int resolutionX; 27 int resolutionY; 28 29 HTML_PROPS *standardProps; 30 GWEN_STRINGLIST *mediaPaths; 31 32 HTMLCTX_GET_TEXT_WIDTH_FN getTextWidthFn; 33 HTMLCTX_GET_TEXT_HEIGHT_FN getTextHeightFn; 34 HTMLCTX_GET_COLOR_FROM_NAME_FN getColorFromNameFn; 35 HTMLCTX_GET_FONT_FN getFontFn; 36 HTMLCTX_GET_IMAGE_FN getImageFn; 37 }; 38 39 40 static void GWENHYWFAR_CB HtmlCtx_FreeData(void *bp, void *p); 41 42 43 static int HtmlCtx_StartTag(GWEN_XML_CONTEXT *ctx, const char *tagName); 44 static int HtmlCtx_EndTag(GWEN_XML_CONTEXT *ctx, int closing); 45 static int HtmlCtx_AddData(GWEN_XML_CONTEXT *ctx, const char *data); 46 static int HtmlCtx_AddComment(GWEN_XML_CONTEXT *ctx, const char *data); 47 static int HtmlCtx_AddAttr(GWEN_XML_CONTEXT *ctx, 48 const char *attrName, 49 const char *attrData); 50 51 52 #endif 53 54