gwenhywfar 5.14.1
htmlgroup_l.h File Reference
#include <gwenhywfar/inherit.h>
#include <gwenhywfar/xmlctx.h>
#include "htmlobject_be.h"
#include "htmlprops_be.h"
Include dependency graph for htmlgroup_l.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct HTML_GROUP HTML_GROUP
typedef int(* HTML_GROUP_ADDDATA_FN) (HTML_GROUP *g, const char *data)
typedef int(* HTML_GROUP_ENDSUBGROUP_FN) (HTML_GROUP *g, HTML_GROUP *sg)
typedef int(* HTML_GROUP_ENDTAG_FN) (HTML_GROUP *g, const char *tagName)
typedef int(* HTML_GROUP_STARTTAG_FN) (HTML_GROUP *g, const char *tagName)

Functions

int HtmlGroup_AddData (HTML_GROUP *g, const char *data)
int HtmlGroup_EndSubGroup (HTML_GROUP *g, HTML_GROUP *sg)
int HtmlGroup_EndTag (HTML_GROUP *g, const char *tagName)
void HtmlGroup_free (HTML_GROUP *g)
const char * HtmlGroup_GetGroupName (const HTML_GROUP *g)
HTML_OBJECTHtmlGroup_GetObject (const HTML_GROUP *g)
HTML_GROUPHtmlGroup_GetParent (const HTML_GROUP *g)
HTML_PROPSHtmlGroup_GetProperties (const HTML_GROUP *g)
GWEN_XML_CONTEXTHtmlGroup_GetXmlContext (const HTML_GROUP *g)
HTML_GROUPHtmlGroup_new (const char *groupName, HTML_GROUP *parent, GWEN_XML_CONTEXT *ctx)
HTML_GROUP_ADDDATA_FN HtmlGroup_SetAddDataFn (HTML_GROUP *g, HTML_GROUP_ADDDATA_FN f)
HTML_GROUP_ENDSUBGROUP_FN HtmlGroup_SetEndSubGroupFn (HTML_GROUP *g, HTML_GROUP_ENDSUBGROUP_FN f)
HTML_GROUP_ENDTAG_FN HtmlGroup_SetEndTagFn (HTML_GROUP *g, HTML_GROUP_ENDTAG_FN f)
void HtmlGroup_SetObject (HTML_GROUP *g, HTML_OBJECT *o)
void HtmlGroup_SetProperties (HTML_GROUP *g, HTML_PROPS *pr)
HTML_GROUP_STARTTAG_FN HtmlGroup_SetStartTagFn (HTML_GROUP *g, HTML_GROUP_STARTTAG_FN f)
int HtmlGroup_StartTag (HTML_GROUP *g, const char *tagName)

Typedef Documentation

◆ HTML_GROUP

typedef struct HTML_GROUP HTML_GROUP

Definition at line 19 of file htmlgroup_l.h.

◆ HTML_GROUP_ADDDATA_FN

typedef int(* HTML_GROUP_ADDDATA_FN) (HTML_GROUP *g, const char *data)

Definition at line 27 of file htmlgroup_l.h.

◆ HTML_GROUP_ENDSUBGROUP_FN

typedef int(* HTML_GROUP_ENDSUBGROUP_FN) (HTML_GROUP *g, HTML_GROUP *sg)

Definition at line 30 of file htmlgroup_l.h.

◆ HTML_GROUP_ENDTAG_FN

typedef int(* HTML_GROUP_ENDTAG_FN) (HTML_GROUP *g, const char *tagName)

Definition at line 25 of file htmlgroup_l.h.

◆ HTML_GROUP_STARTTAG_FN

typedef int(* HTML_GROUP_STARTTAG_FN) (HTML_GROUP *g, const char *tagName)

Definition at line 23 of file htmlgroup_l.h.

Function Documentation

◆ HtmlGroup_AddData()

int HtmlGroup_AddData ( HTML_GROUP * g,
const char * data )

Definition at line 206 of file htmlgroup.c.

References GWEN_ERROR_NOT_IMPLEMENTED.

Referenced by HtmlCtx_AddData().

Here is the caller graph for this function:

◆ HtmlGroup_EndSubGroup()

int HtmlGroup_EndSubGroup ( HTML_GROUP * g,
HTML_GROUP * sg )

Definition at line 218 of file htmlgroup.c.

References GWEN_ERROR_NOT_IMPLEMENTED.

Referenced by HtmlCtx_EndTag().

Here is the caller graph for this function:

◆ HtmlGroup_EndTag()

int HtmlGroup_EndTag ( HTML_GROUP * g,
const char * tagName )
Returns
1 if this tag ends the current group, 0 otherwise (<0 on error)

Definition at line 194 of file htmlgroup.c.

References GWEN_ERROR_NOT_IMPLEMENTED.

Referenced by HtmlCtx_EndTag().

Here is the caller graph for this function:

◆ HtmlGroup_free()

void HtmlGroup_free ( HTML_GROUP * g)

Definition at line 50 of file htmlgroup.c.

References GWEN_FREE_OBJECT, GWEN_INHERIT_FINI, and HtmlProps_free().

Referenced by HtmlCtx_EndTag(), and HtmlCtx_FreeData().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HtmlGroup_GetGroupName()

const char * HtmlGroup_GetGroupName ( const HTML_GROUP * g)

Definition at line 80 of file htmlgroup.c.

Referenced by HtmlCtx_AddData(), HtmlCtx_EndTag(), HtmlGroup_Generic_EndTag(), and HtmlGroup_Table_EndSubGroup().

Here is the caller graph for this function:

◆ HtmlGroup_GetObject()

HTML_OBJECT * HtmlGroup_GetObject ( const HTML_GROUP * g)

◆ HtmlGroup_GetParent()

HTML_GROUP * HtmlGroup_GetParent ( const HTML_GROUP * g)

Definition at line 64 of file htmlgroup.c.

Referenced by HtmlCtx_EndTag(), HtmlCtx_FreeData(), and HtmlCtx_SetStandardProps().

Here is the caller graph for this function:

◆ HtmlGroup_GetProperties()

HTML_PROPS * HtmlGroup_GetProperties ( const HTML_GROUP * g)

Definition at line 104 of file htmlgroup.c.

Referenced by HtmlGroup_Box_AddData(), HtmlGroup_Box_StartTag(), HtmlGroup_Table_StartTag(), HtmlGroup_TableRow_StartTag(), and HtmlGroup_UnorderedList_StartTag().

Here is the caller graph for this function:

◆ HtmlGroup_GetXmlContext()

GWEN_XML_CONTEXT * HtmlGroup_GetXmlContext ( const HTML_GROUP * g)

Definition at line 72 of file htmlgroup.c.

Referenced by HtmlGroup_Box_AddData(), HtmlGroup_Box_StartTag(), HtmlGroup_Table_StartTag(), HtmlGroup_TableRow_StartTag(), and HtmlGroup_UnorderedList_StartTag().

Here is the caller graph for this function:

◆ HtmlGroup_new()

HTML_GROUP * HtmlGroup_new ( const char * groupName,
HTML_GROUP * parent,
GWEN_XML_CONTEXT * ctx )

Definition at line 30 of file htmlgroup.c.

References GWEN_INHERIT_INIT, GWEN_NEW_OBJECT, HtmlGroup_new(), and NULL.

Referenced by HtmlGroup_Generic_new(), and HtmlGroup_new().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HtmlGroup_SetAddDataFn()

HTML_GROUP_ADDDATA_FN HtmlGroup_SetAddDataFn ( HTML_GROUP * g,
HTML_GROUP_ADDDATA_FN f )

Definition at line 154 of file htmlgroup.c.

Referenced by HtmlGroup_Box_new(), and HtmlGroup_Generic_new().

Here is the caller graph for this function:

◆ HtmlGroup_SetEndSubGroupFn()

HTML_GROUP_ENDSUBGROUP_FN HtmlGroup_SetEndSubGroupFn ( HTML_GROUP * g,
HTML_GROUP_ENDSUBGROUP_FN f )

Definition at line 167 of file htmlgroup.c.

Referenced by HtmlGroup_Generic_new(), and HtmlGroup_Table_new().

Here is the caller graph for this function:

◆ HtmlGroup_SetEndTagFn()

HTML_GROUP_ENDTAG_FN HtmlGroup_SetEndTagFn ( HTML_GROUP * g,
HTML_GROUP_ENDTAG_FN f )

Definition at line 141 of file htmlgroup.c.

Referenced by HtmlGroup_Generic_new().

Here is the caller graph for this function:

◆ HtmlGroup_SetObject()

void HtmlGroup_SetObject ( HTML_GROUP * g,
HTML_OBJECT * o )

Definition at line 96 of file htmlgroup.c.

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:

◆ HtmlGroup_SetProperties()

void HtmlGroup_SetProperties ( HTML_GROUP * g,
HTML_PROPS * pr )

Definition at line 112 of file htmlgroup.c.

References HtmlProps_Attach(), and HtmlProps_free().

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HtmlGroup_SetStartTagFn()

HTML_GROUP_STARTTAG_FN HtmlGroup_SetStartTagFn ( HTML_GROUP * g,
HTML_GROUP_STARTTAG_FN f )

Definition at line 128 of file htmlgroup.c.

Referenced by HtmlGroup_Box_new(), HtmlGroup_Table_new(), HtmlGroup_TableRow_new(), and HtmlGroup_UnorderedList_new().

Here is the caller graph for this function:

◆ HtmlGroup_StartTag()

int HtmlGroup_StartTag ( HTML_GROUP * g,
const char * tagName )

Definition at line 182 of file htmlgroup.c.

References GWEN_ERROR_NOT_IMPLEMENTED.

Referenced by HtmlCtx_EndTag().

Here is the caller graph for this function: