|
gwenhywfar
4.3.3
|
#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 538 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, |
| const char * | data | ||
| ) |
Definition at line 525 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
Referenced by HtmlCtx_new().
| int HtmlCtx_AddData | ( | GWEN_XML_CONTEXT * | ctx, |
| const char * | data | ||
| ) |
Definition at line 496 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 166 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 408 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 | ( | void * | bp, |
| void * | p | ||
| ) |
Definition at line 78 of file htmlctx.c.
References GWEN_DB_Group_free(), GWEN_FREE_OBJECT, GWEN_StringList_free(), 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 593 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 230 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 180 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
| const char* HtmlCtx_GetCurrentTagName | ( | const GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 204 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 609 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 814 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 627 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 154 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 242 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
| int HtmlCtx_GetResolutionX | ( | const GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 106 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
Referenced by HtmlObject_Box_Layout().
| int HtmlCtx_GetResolutionY | ( | const GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 130 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 270 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 354 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
| int HtmlCtx_GetTextHeight | ( | GWEN_XML_CONTEXT * | ctx, |
| HTML_FONT * | fnt, | ||
| const char * | s | ||
| ) |
Definition at line 576 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 559 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
Referenced by HtmlObject_Word_Layout().
| int HtmlCtx_GetWidth | ( | const GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 802 of file htmlctx.c.
References HtmlCtx_GetRootObject(), and HtmlObject_GetWidth().
| int HtmlCtx_Layout | ( | GWEN_XML_CONTEXT * | ctx, |
| int | width, | ||
| int | height | ||
| ) |
Definition at line 725 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_SetCurrentGroup(), HtmlCtx_StartTag(), HtmlGroup_Box_new(), HtmlGroup_SetObject(), HtmlObject_Box_new(), and NULL.
Referenced by FOX16_HtmlCtx::FOX16_HtmlCtx().
| int HtmlCtx_SanitizeData | ( | GWEN_XML_CONTEXT * | ctx, |
| const char * | data, | ||
| GWEN_BUFFER * | buf | ||
| ) |
Definition at line 282 of file htmlctx.c.
References DBG_INFO, GWEN_Buffer_Crop(), GWEN_Buffer_GetStart(), GWEN_Buffer_GetUsedBytes(), GWEN_ERROR_BAD_DATA, GWEN_LOGDOMAIN, and GWEN_Text_UnescapeXmlToBuffer().
Referenced by HtmlGroup_Box_AddData().
| void HtmlCtx_SetCurrentGroup | ( | GWEN_XML_CONTEXT * | ctx, |
| HTML_GROUP * | g | ||
| ) |
Definition at line 192 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 216 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 676 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 693 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 709 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 659 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 642 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 118 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
| void HtmlCtx_SetResolutionY | ( | GWEN_XML_CONTEXT * | ctx, |
| int | i | ||
| ) |
Definition at line 142 of file htmlctx.c.
References GWEN_INHERIT_GETDATA.
| void HtmlCtx_SetStandardProps | ( | GWEN_XML_CONTEXT * | ctx, |
| HTML_PROPS * | pr | ||
| ) |
Definition at line 366 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 753 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 389 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 254 of file htmlctx.c.
References GWEN_INHERIT_GETDATA, and NULL.
1.8.1.2