gwenhywfar  4.6.0beta
Typedefs | Functions
htmlgroup_l.h File Reference
#include <gwenhywfar/inherit.h>
#include <gwenhywfar/xmlctx.h>
#include "htmlobject_be.h"
#include "htmlprops_be.h"

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

typedef struct HTML_GROUP HTML_GROUP

Definition at line 19 of file htmlgroup_l.h.

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

Definition at line 27 of file htmlgroup_l.h.

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

Definition at line 30 of file htmlgroup_l.h.

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

Definition at line 25 of file htmlgroup_l.h.

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

Definition at line 23 of file htmlgroup_l.h.

Function Documentation

int HtmlGroup_AddData ( HTML_GROUP g,
const char *  data 
)

Definition at line 195 of file htmlgroup.c.

References GWEN_ERROR_NOT_IMPLEMENTED.

Referenced by HtmlCtx_AddData().

int HtmlGroup_EndSubGroup ( HTML_GROUP g,
HTML_GROUP sg 
)

Definition at line 206 of file htmlgroup.c.

References GWEN_ERROR_NOT_IMPLEMENTED.

Referenced by HtmlCtx_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 184 of file htmlgroup.c.

References GWEN_ERROR_NOT_IMPLEMENTED.

Referenced by HtmlCtx_EndTag().

void HtmlGroup_free ( HTML_GROUP g)

Definition at line 49 of file htmlgroup.c.

References GWEN_FREE_OBJECT, GWEN_INHERIT_FINI, and HtmlProps_free().

Referenced by HtmlCtx_EndTag(), and HtmlCtx_FreeData().

const char* HtmlGroup_GetGroupName ( const HTML_GROUP g)
HTML_OBJECT* HtmlGroup_GetObject ( const HTML_GROUP g)
HTML_GROUP* HtmlGroup_GetParent ( const HTML_GROUP g)

Definition at line 62 of file htmlgroup.c.

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

HTML_PROPS* HtmlGroup_GetProperties ( const HTML_GROUP g)
GWEN_XML_CONTEXT* HtmlGroup_GetXmlContext ( const HTML_GROUP g)
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, and NULL.

Referenced by HtmlGroup_Generic_new().

HTML_GROUP_ADDDATA_FN HtmlGroup_SetAddDataFn ( HTML_GROUP g,
HTML_GROUP_ADDDATA_FN  f 
)

Definition at line 146 of file htmlgroup.c.

Referenced by HtmlGroup_Box_new(), and HtmlGroup_Generic_new().

HTML_GROUP_ENDSUBGROUP_FN HtmlGroup_SetEndSubGroupFn ( HTML_GROUP g,
HTML_GROUP_ENDSUBGROUP_FN  f 
)

Definition at line 159 of file htmlgroup.c.

Referenced by HtmlGroup_Generic_new(), and HtmlGroup_Table_new().

HTML_GROUP_ENDTAG_FN HtmlGroup_SetEndTagFn ( HTML_GROUP g,
HTML_GROUP_ENDTAG_FN  f 
)

Definition at line 133 of file htmlgroup.c.

Referenced by HtmlGroup_Generic_new().

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 
)

Definition at line 173 of file htmlgroup.c.

References GWEN_ERROR_NOT_IMPLEMENTED.

Referenced by HtmlCtx_EndTag().