gwenhywfar 4.0.3

htmlctx_l.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  begin       : Sat Feb 20 2010
00003  copyright   : (C) 2010 by Martin Preuss
00004  email       : martin@libchipcard.de
00005 
00006  ***************************************************************************
00007  *          Please see toplevel file COPYING for license details           *
00008  ***************************************************************************/
00009 
00010 
00011 #ifndef HTMLXMLCTX_L_H
00012 #define HTMLXMLCTX_L_H
00013 
00014 
00015 #include "htmlctx_be.h"
00016 #include "htmlgroup_l.h"
00017 
00018 #include <gwenhywfar/db.h>
00019 
00020 
00021 
00022 HTML_OBJECT_TREE *HtmlCtx_GetObjects(const GWEN_XML_CONTEXT *ctx);
00023 HTML_OBJECT_TREE *HtmlCtx_TakeObjects(const GWEN_XML_CONTEXT *ctx);
00024 
00025 HTML_GROUP *HtmlCtx_GetCurrentGroup(const GWEN_XML_CONTEXT *ctx);
00026 void HtmlCtx_SetCurrentGroup(GWEN_XML_CONTEXT *ctx, HTML_GROUP *g);
00027 
00028 const char *HtmlCtx_GetCurrentTagName(const GWEN_XML_CONTEXT *ctx);
00029 void HtmlCtx_SetCurrentTagName(GWEN_XML_CONTEXT *ctx, const char *s);
00030 
00031 GWEN_DB_NODE *HtmlCtx_GetCurrentAttributes(const GWEN_XML_CONTEXT *ctx);
00032 
00033 HTML_FONT *HtmlCtx_FindFont(const GWEN_XML_CONTEXT *ctx,
00034                             const char *fontName,
00035                             int fontSize,
00036                             uint32_t fontFlags);
00037 
00038 
00039 int HtmlCtx_SanitizeData(GWEN_XML_CONTEXT *ctx,
00040                          const char *data,
00041                          GWEN_BUFFER *buf);
00042 
00043 
00044 uint32_t HtmlCtx_GetColorFromName(const GWEN_XML_CONTEXT *ctx,
00045                                   const char *name);
00046 
00047 
00048 int HtmlCtx_GetTextWidth(GWEN_XML_CONTEXT *ctx,
00049                          HTML_FONT *fnt,
00050                          const char *s);
00051 
00052 int HtmlCtx_GetTextHeight(GWEN_XML_CONTEXT *ctx,
00053                           HTML_FONT *fnt,
00054                           const char *s);
00055 
00056 #endif
00057