diff options
author | jcid <devnull@localhost> | 2008-06-07 15:29:01 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-06-07 15:29:01 +0200 |
commit | 062c2f0de95a179cd28cfe847be838621f898584 (patch) | |
tree | 57b06edae4e731761a31bfdf92179f330f49dd7a /src/html_common.hh | |
parent | 17b813d3c5a99f57d6e430261b8f969db21cf1d2 (diff) |
- html.cc cleanup (in progress): source split.
Diffstat (limited to 'src/html_common.hh')
-rw-r--r-- | src/html_common.hh | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/src/html_common.hh b/src/html_common.hh index 8cae537b..0587a54e 100644 --- a/src/html_common.hh +++ b/src/html_common.hh @@ -7,6 +7,7 @@ #include "lout/misc.hh" #include "dw/core.hh" #include "dw/image.hh" +#include "dw/style.hh" #include "image.hh" @@ -219,8 +220,37 @@ public: void finishParsing(int ClientKey); int formNew(DilloHtmlMethod method, const DilloUrl *action, DilloHtmlEnc enc, const char *charset); - inline DilloHtmlForm *getCurrentForm (); + DilloHtmlForm *getCurrentForm (); void loadImages (const DilloUrl *pattern); }; +/* + * Parser functions + */ + +const char *a_Html_get_attr(DilloHtml *html, + const char *tag, + int tagsize, + const char *attrname); + +char *a_Html_get_attr_wdef(DilloHtml *html, + const char *tag, + int tagsize, + const char *attrname, + const char *def); + +DilloUrl *a_Html_url_new(DilloHtml *html, + const char *url_str, const char *base_url, + int flags, int32_t posx, int32_t posy, + int use_base_url); + +DilloImage *a_Html_add_new_image(DilloHtml *html, const char *tag, + int tagsize, DilloUrl *url, + dw::core::style::StyleAttrs *style_attrs, + bool_t add); + +char *a_Html_parse_entities(DilloHtml *html, const char *token, int toksize); +void a_Html_pop_tag(DilloHtml *html, int TagIdx); +void a_Html_stash_init(DilloHtml *html); + #endif /* __HTML_COMMON_HH__ */ |