|
gwenhywfar 5.12.0
|
#include "htmlctx_p.h"#include "o_box_l.h"#include "g_box_l.h"#include <gwenhywfar/misc.h>#include <gwenhywfar/debug.h>#include <gwenhywfar/text.h>
Go to the source code of this file.
Macros | |
| #define | DISABLE_DEBUGLOG |
| int HtmlCtx_AddAttr | ( | GWEN_XML_CONTEXT * | ctx, |
| const char * | attrName, | ||
| const char * | attrData ) |
Definition at line 563 of file htmlctx.c.
References GWEN_DB_FLAGS_DEFAULT, GWEN_DB_SetCharValue(), and GWEN_INHERIT_GETDATA.
Referenced by HtmlCtx_new().


| int HtmlCtx_AddComment | ( | GWEN_XML_CONTEXT * | ctx, |
| GWEN_UNUSED const char * | data ) |
Definition at line 549 of file htmlctx.c.
References GWEN_INHERIT_GETDATA, and GWEN_UNUSED.
Referenced by HtmlCtx_new().

| int HtmlCtx_AddData | ( | GWEN_XML_CONTEXT * | ctx, |
| const char * | data ) |
Definition at line 519 of file htmlctx.c.
References DBG_DEBUG, DBG_INFO, GWEN_ERROR_NOT_IMPLEMENTED, GWEN_INHERIT_GETDATA, GWEN_LOGDOMAIN, HtmlGroup_AddData(), and HtmlGroup_GetGroupName().
Referenced by HtmlCtx_new().


| void HtmlCtx_AddMediaPath | ( | GWEN_XML_CONTEXT * | ctx, |
| const char * | s ) |
Definition at line 173 of file htmlctx.c.
References GWEN_INHERIT_GETDATA, and GWEN_StringList_AppendString().
Referenced by FOX16_HtmlCtx::addMediaPath().


| int HtmlCtx_EndTag | ( | GWEN_XML_CONTEXT * | ctx, |
| int | closing ) |
Definition at line 430 of file htmlctx.c.
References DBG_DEBUG, DBG_INFO, GWEN_ERROR_BAD_DATA, GWEN_ERROR_NOT_IMPLEMENTED, GWEN_INHERIT_GETDATA, GWEN_LOGDOMAIN, GWEN_XmlCtx_DecDepth(), HtmlGroup_EndSubGroup(), HtmlGroup_EndTag(), HtmlGroup_free(), HtmlGroup_GetGroupName(), HtmlGroup_GetParent(), HtmlGroup_StartTag(), and NULL.
Referenced by HtmlCtx_new().


| GWENHYWFAR_CB void HtmlCtx_FreeData | ( | GWEN_UNUSED void * | bp, |
| void * | p ) |
Definition at line 79 of file htmlctx.c.
References GWEN_DB_Group_free(), GWEN_FREE_OBJECT, GWEN_StringList_free(), GWEN_UNUSED, HtmlGroup_free(), HtmlGroup_GetParent(), and HtmlProps_free().
Referenced by HtmlCtx_new().


| 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().

| 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().

| HTML_GROUP * HtmlCtx_GetCurrentGroup | ( | const GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 188 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
| const char * HtmlCtx_GetCurrentTagName | ( | const GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 214 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
| HTML_FONT * HtmlCtx_GetFont | ( | GWEN_XML_CONTEXT * | ctx, |
| const char * | fontName, | ||
| int | fontSize, | ||
| uint32_t | fontFlags ) |
Definition at line 638 of file htmlctx.c.
References GWEN_INHERIT_GETDATA, and NULL.
Referenced by FOX16_HtmlCtx::FOX16_HtmlCtx(), HtmlGroup_Box_StartTag(), and HtmlGroup_TableRow_StartTag().

| int HtmlCtx_GetHeight | ( | const GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 853 of file htmlctx.c.
References HtmlCtx_GetRootObject(), and HtmlObject_GetHeight().

| HTML_IMAGE * HtmlCtx_GetImage | ( | GWEN_XML_CONTEXT * | ctx, |
| const char * | imageName ) |
The implementation must set width and height in the image returned.
Definition at line 657 of file htmlctx.c.
References GWEN_INHERIT_GETDATA, and NULL.
Referenced by HtmlGroup_Box_StartTag().

| GWEN_STRINGLIST * HtmlCtx_GetMediaPaths | ( | const GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 160 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
Referenced by FOX16_HtmlCtx::getImage().

| HTML_OBJECT_TREE * HtmlCtx_GetObjects | ( | const GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 257 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
| int HtmlCtx_GetResolutionX | ( | const GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 108 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
| int HtmlCtx_GetResolutionY | ( | const GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 134 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
Referenced by HtmlObject_Box_Layout().

| HTML_OBJECT * HtmlCtx_GetRootObject | ( | const GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 287 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
Referenced by FOX16_HtmlCtx::dump(), FOX16_HtmlCtx::getHeight(), FOX16_HtmlCtx::getWidth(), HtmlCtx_GetHeight(), HtmlCtx_GetWidth(), FOX16_HtmlCtx::paint(), and FOX16_HtmlCtx::paintAt().

| HTML_PROPS * HtmlCtx_GetStandardProps | ( | const GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 373 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
| 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().

| 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().

| int HtmlCtx_GetWidth | ( | const GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 840 of file htmlctx.c.
References HtmlCtx_GetRootObject(), and HtmlObject_GetWidth().

| int HtmlCtx_Layout | ( | GWEN_XML_CONTEXT * | ctx, |
| int | width, | ||
| int | height ) |
Definition at line 761 of file htmlctx.c.
References DBG_ERROR, DBG_INFO, GWEN_INHERIT_GETDATA, GWEN_LOGDOMAIN, HtmlObject_Layout(), HtmlObject_SetHeight(), HtmlObject_SetWidth(), and NULL.
Referenced by FOX16_HtmlCtx::layout().


| GWEN_XML_CONTEXT * HtmlCtx_new | ( | uint32_t | flags | ) |
Definition at line 34 of file htmlctx.c.
References GWEN_INHERIT_SETDATA, GWEN_NEW_OBJECT, GWEN_StringList_new(), GWEN_XmlCtx_new(), GWEN_XmlCtx_SetAddAttrFn(), GWEN_XmlCtx_SetAddCommentFn(), GWEN_XmlCtx_SetAddDataFn(), GWEN_XmlCtx_SetEndTagFn(), GWEN_XmlCtx_SetStartTagFn(), HtmlCtx_AddAttr(), HtmlCtx_AddComment(), HtmlCtx_AddData(), HtmlCtx_EndTag(), HtmlCtx_FreeData(), HtmlCtx_new(), HtmlCtx_SetCurrentGroup(), HtmlCtx_StartTag(), HtmlGroup_Box_new(), HtmlGroup_SetObject(), HtmlObject_Box_new(), and NULL.
Referenced by FOX16_HtmlCtx::FOX16_HtmlCtx(), and HtmlCtx_new().


| int HtmlCtx_SanitizeData | ( | GWEN_UNUSED GWEN_XML_CONTEXT * | ctx, |
| const char * | data, | ||
| GWEN_BUFFER * | buf ) |
Definition at line 300 of file htmlctx.c.
References DBG_INFO, GWEN_Buffer_Crop(), GWEN_Buffer_GetStart(), GWEN_Buffer_GetUsedBytes(), GWEN_ERROR_BAD_DATA, GWEN_LOGDOMAIN, GWEN_Text_UnescapeXmlToBuffer(), and GWEN_UNUSED.
Referenced by HtmlGroup_Box_AddData().


| 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().

| 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().

| HTMLCTX_GET_COLOR_FROM_NAME_FN HtmlCtx_SetGetColorFromNameFn | ( | GWEN_XML_CONTEXT * | ctx, |
| HTMLCTX_GET_COLOR_FROM_NAME_FN | fn ) |
Definition at line 709 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
Referenced by FOX16_HtmlCtx::FOX16_HtmlCtx().

| HTMLCTX_GET_FONT_FN HtmlCtx_SetGetFontFn | ( | GWEN_XML_CONTEXT * | ctx, |
| HTMLCTX_GET_FONT_FN | fn ) |
Definition at line 727 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
Referenced by FOX16_HtmlCtx::FOX16_HtmlCtx().

| HTMLCTX_GET_IMAGE_FN HtmlCtx_SetGetImageFn | ( | GWEN_XML_CONTEXT * | ctx, |
| HTMLCTX_GET_IMAGE_FN | fn ) |
Definition at line 744 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
Referenced by FOX16_HtmlCtx::FOX16_HtmlCtx().

| HTMLCTX_GET_TEXT_HEIGHT_FN HtmlCtx_SetGetTextHeightFn | ( | GWEN_XML_CONTEXT * | ctx, |
| HTMLCTX_GET_TEXT_HEIGHT_FN | fn ) |
Definition at line 691 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
Referenced by FOX16_HtmlCtx::FOX16_HtmlCtx().

| HTMLCTX_GET_TEXT_WIDTH_FN HtmlCtx_SetGetTextWidthFn | ( | GWEN_XML_CONTEXT * | ctx, |
| HTMLCTX_GET_TEXT_WIDTH_FN | fn ) |
Definition at line 673 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
Referenced by FOX16_HtmlCtx::FOX16_HtmlCtx().

| void HtmlCtx_SetResolutionX | ( | GWEN_XML_CONTEXT * | ctx, |
| int | i ) |
Definition at line 121 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
| void HtmlCtx_SetResolutionY | ( | GWEN_XML_CONTEXT * | ctx, |
| int | i ) |
Definition at line 147 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
| void HtmlCtx_SetStandardProps | ( | GWEN_XML_CONTEXT * | ctx, |
| HTML_PROPS * | pr ) |
Definition at line 386 of file htmlctx.c.
References GWEN_INHERIT_GETDATA, HtmlGroup_GetParent(), HtmlGroup_SetProperties(), HtmlObject_GetProperties(), HtmlObject_SetProperties(), HtmlProps_Attach(), HtmlProps_free(), and NULL.
Referenced by FOX16_HtmlCtx::FOX16_HtmlCtx().


| void HtmlCtx_SetText | ( | GWEN_XML_CONTEXT * | ctx, |
| const char * | s ) |
Definition at line 790 of file htmlctx.c.
References DBG_INFO, GWEN_INHERIT_GETDATA, GWEN_LOGDOMAIN, GWEN_XMLContext_ReadFromString(), HtmlCtx_SetCurrentGroup(), HtmlGroup_Box_new(), HtmlGroup_SetObject(), HtmlGroup_SetProperties(), HtmlObject_Box_new(), HtmlObject_GetObjectType(), HtmlObject_GetText(), HtmlObject_SetProperties(), and NULL.

| int HtmlCtx_StartTag | ( | GWEN_XML_CONTEXT * | ctx, |
| const char * | tagName ) |
Definition at line 410 of file htmlctx.c.
References DBG_DEBUG, GWEN_DB_Group_free(), GWEN_DB_Group_new(), GWEN_INHERIT_GETDATA, GWEN_LOGDOMAIN, and HtmlCtx_SetCurrentTagName().
Referenced by HtmlCtx_new().


| HTML_OBJECT_TREE * HtmlCtx_TakeObjects | ( | const GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 270 of file htmlctx.c.
References GWEN_INHERIT_GETDATA, and NULL.