gwenhywfar 5.14.1
htmlctx_l.h File Reference
#include "htmlctx_be.h"
#include "htmlgroup_l.h"
#include <gwenhywfar/db.h>
Include dependency graph for htmlctx_l.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

HTML_FONTHtmlCtx_FindFont (const GWEN_XML_CONTEXT *ctx, const char *fontName, int fontSize, uint32_t fontFlags)
uint32_t HtmlCtx_GetColorFromName (const GWEN_XML_CONTEXT *ctx, const char *name)
GWEN_DB_NODEHtmlCtx_GetCurrentAttributes (const GWEN_XML_CONTEXT *ctx)
HTML_GROUPHtmlCtx_GetCurrentGroup (const GWEN_XML_CONTEXT *ctx)
const char * HtmlCtx_GetCurrentTagName (const GWEN_XML_CONTEXT *ctx)
HTML_OBJECT_TREE * HtmlCtx_GetObjects (const GWEN_XML_CONTEXT *ctx)
int HtmlCtx_GetTextHeight (GWEN_XML_CONTEXT *ctx, HTML_FONT *fnt, const char *s)
int HtmlCtx_GetTextWidth (GWEN_XML_CONTEXT *ctx, HTML_FONT *fnt, const char *s)
int HtmlCtx_SanitizeData (GWEN_XML_CONTEXT *ctx, const char *data, GWEN_BUFFER *buf)
void HtmlCtx_SetCurrentGroup (GWEN_XML_CONTEXT *ctx, HTML_GROUP *g)
void HtmlCtx_SetCurrentTagName (GWEN_XML_CONTEXT *ctx, const char *s)
HTML_OBJECT_TREE * HtmlCtx_TakeObjects (const GWEN_XML_CONTEXT *ctx)

Function Documentation

◆ HtmlCtx_FindFont()

HTML_FONT * HtmlCtx_FindFont ( const GWEN_XML_CONTEXT * ctx,
const char * fontName,
int fontSize,
uint32_t fontFlags )

◆ HtmlCtx_GetColorFromName()

uint32_t HtmlCtx_GetColorFromName ( const GWEN_XML_CONTEXT * ctx,
const char * name )

Definition at line 621 of file htmlctx.c.

References GWEN_INHERIT_GETDATA.

Referenced by HtmlGroup_Box_StartTag().

Here is the caller graph for this function:

◆ HtmlCtx_GetCurrentAttributes()

GWEN_DB_NODE * HtmlCtx_GetCurrentAttributes ( const GWEN_XML_CONTEXT * ctx)

Definition at line 244 of file htmlctx.c.

References GWEN_INHERIT_GETDATA.

Referenced by HtmlGroup_Box_StartTag(), and HtmlGroup_TableRow_StartTag().

Here is the caller graph for this function:

◆ HtmlCtx_GetCurrentGroup()

HTML_GROUP * HtmlCtx_GetCurrentGroup ( const GWEN_XML_CONTEXT * ctx)

Definition at line 188 of file htmlctx.c.

References GWEN_INHERIT_GETDATA.

◆ HtmlCtx_GetCurrentTagName()

const char * HtmlCtx_GetCurrentTagName ( const GWEN_XML_CONTEXT * ctx)

Definition at line 214 of file htmlctx.c.

References GWEN_INHERIT_GETDATA.

◆ HtmlCtx_GetObjects()

HTML_OBJECT_TREE * HtmlCtx_GetObjects ( const GWEN_XML_CONTEXT * ctx)

Definition at line 257 of file htmlctx.c.

References GWEN_INHERIT_GETDATA.

◆ HtmlCtx_GetTextHeight()

int HtmlCtx_GetTextHeight ( GWEN_XML_CONTEXT * ctx,
HTML_FONT * fnt,
const char * s )

Definition at line 603 of file htmlctx.c.

References GWEN_INHERIT_GETDATA.

Referenced by HtmlObject_Box_Layout(), and HtmlObject_Word_Layout().

Here is the caller graph for this function:

◆ HtmlCtx_GetTextWidth()

int HtmlCtx_GetTextWidth ( GWEN_XML_CONTEXT * ctx,
HTML_FONT * fnt,
const char * s )

Definition at line 585 of file htmlctx.c.

References GWEN_INHERIT_GETDATA.

Referenced by HtmlObject_Word_Layout().

Here is the caller graph for this function:

◆ HtmlCtx_SanitizeData()

int HtmlCtx_SanitizeData ( GWEN_XML_CONTEXT * ctx,
const char * data,
GWEN_BUFFER * buf )

◆ HtmlCtx_SetCurrentGroup()

void HtmlCtx_SetCurrentGroup ( GWEN_XML_CONTEXT * ctx,
HTML_GROUP * g )

Definition at line 201 of file htmlctx.c.

References GWEN_INHERIT_GETDATA.

Referenced by HtmlCtx_new(), HtmlCtx_SetText(), HtmlGroup_Box_StartTag(), HtmlGroup_Table_StartTag(), HtmlGroup_TableRow_StartTag(), and HtmlGroup_UnorderedList_StartTag().

Here is the caller graph for this function:

◆ HtmlCtx_SetCurrentTagName()

void HtmlCtx_SetCurrentTagName ( GWEN_XML_CONTEXT * ctx,
const char * s )

Definition at line 227 of file htmlctx.c.

References GWEN_INHERIT_GETDATA, and NULL.

Referenced by HtmlCtx_StartTag().

Here is the caller graph for this function:

◆ HtmlCtx_TakeObjects()

HTML_OBJECT_TREE * HtmlCtx_TakeObjects ( const GWEN_XML_CONTEXT * ctx)

Definition at line 270 of file htmlctx.c.

References GWEN_INHERIT_GETDATA, and NULL.