diff options
author | rsk1994 <rsk1coder99@gmail.com> | 2014-05-15 05:43:49 +0530 |
---|---|---|
committer | Rupinder Singh Khokhar <rsk1coder99@gmail.com> | 2014-06-21 17:37:12 +0530 |
commit | ffc8138ba026b6ce0471105ab431f054f24589ff (patch) | |
tree | 461457075883716916f2649fdfc0533c36586e90 /include | |
parent | 2eebfe9785e83b882dfac17c037bfd490cb0bb6a (diff) | |
download | libdom-ffc8138ba026b6ce0471105ab431f054f24589ff.tar.gz libdom-ffc8138ba026b6ce0471105ab431f054f24589ff.tar.bz2 |
Typecasting POC to correct DOMTSHandler. A minor dupliction fixed in Anchor Element. Image <img> Element
Diffstat (limited to 'include')
-rw-r--r-- | include/dom/dom.h | 1 | ||||
-rw-r--r-- | include/dom/html/html_anchor_element.h | 6 | ||||
-rw-r--r-- | include/dom/html/html_image_element.h | 84 |
3 files changed, 85 insertions, 6 deletions
diff --git a/include/dom/dom.h b/include/dom/dom.h index 7c788fd..ea61dfa 100644 --- a/include/dom/dom.h +++ b/include/dom/dom.h @@ -75,6 +75,7 @@ #include <dom/html/html_mod_element.h> #include <dom/html/html_anchor_element.h> #include <dom/html/html_basefont_element.h> +#include <dom/html/html_image_element.h> /* DOM Events header */ #include <dom/events/events.h> diff --git a/include/dom/html/html_anchor_element.h b/include/dom/html/html_anchor_element.h index 5d08e75..c7bcdea 100644 --- a/include/dom/html/html_anchor_element.h +++ b/include/dom/html/html_anchor_element.h @@ -64,12 +64,6 @@ dom_exception dom_html_anchor_element_get_rev( dom_exception dom_html_anchor_element_set_rev( dom_html_anchor_element *anchor, dom_string *rev); -dom_exception dom_html_anchor_element_get_hreflang( - dom_html_anchor_element *anchor, dom_string **hreflang); - -dom_exception dom_html_anchor_element_set_hreflang( - dom_html_anchor_element *anchor, dom_string *hreflang); - dom_exception dom_html_anchor_element_get_shape( dom_html_anchor_element *anchor, dom_string **shape); diff --git a/include/dom/html/html_image_element.h b/include/dom/html/html_image_element.h index 2e182d5..7e3e879 100644 --- a/include/dom/html/html_image_element.h +++ b/include/dom/html/html_image_element.h @@ -3,5 +3,89 @@ * Licensed under the MIT License, * http://www.opensource.org/licenses/mit-license.php * Copyright 2009 Bo Yang <struggleyb.nku@gmail.com> + * Copyright 2014 Rupinder Singh Khokhar <rsk1coder99@gmail.com> */ +#ifndef dom_html_image_element_h_ +#define dom_html_image_element_h_ + +#include <stdbool.h> +#include <dom/core/exceptions.h> +#include <dom/core/string.h> + +typedef struct dom_html_image_element dom_html_image_element; + + +dom_exception dom_html_image_element_get_name( + dom_html_image_element *image, dom_string **name); + +dom_exception dom_html_image_element_set_name( + dom_html_image_element *image, dom_string *name); + +dom_exception dom_html_image_element_get_align( + dom_html_image_element *image, dom_string **align); + +dom_exception dom_html_image_element_set_align( + dom_html_image_element *image, dom_string *align); + +dom_exception dom_html_image_element_get_alt( + dom_html_image_element *image, dom_string **alt); + +dom_exception dom_html_image_element_set_alt( + dom_html_image_element *image, dom_string *alt); + +dom_exception dom_html_image_element_get_border( + dom_html_image_element *image, dom_string **border); + +dom_exception dom_html_image_element_set_border( + dom_html_image_element *image, dom_string *border); + +dom_exception dom_html_image_element_get_long_desc( + dom_html_image_element *image, dom_string **long_desc); + +dom_exception dom_html_image_element_set_long_desc( + dom_html_image_element *image, dom_string *long_desc); + +dom_exception dom_html_image_element_get_src( + dom_html_image_element *image, dom_string **src); + +dom_exception dom_html_image_element_set_src( + dom_html_image_element *image, dom_string *src); + +dom_exception dom_html_image_element_get_use_map( + dom_html_image_element *image, dom_string **use_map); + +dom_exception dom_html_image_element_set_use_map( + dom_html_image_element *image, dom_string *use_map); + +dom_exception dom_html_image_element_get_height( + dom_html_image_element *image, int32_t *height); + +dom_exception dom_html_image_element_set_height( + dom_html_image_element *image, uint32_t height); + +dom_exception dom_html_image_element_get_hspace( + dom_html_image_element *image, int32_t *hspace); + +dom_exception dom_html_image_element_set_hspace( + dom_html_image_element *image, uint32_t hspace); + +dom_exception dom_html_image_element_get_vspace( + dom_html_image_element *image, int32_t *vspace); + +dom_exception dom_html_image_element_set_vspace( + dom_html_image_element *image, uint32_t vspace); + +dom_exception dom_html_image_element_get_width( + dom_html_image_element *image, int32_t *width); + +dom_exception dom_html_image_element_set_width( + dom_html_image_element *image, uint32_t width); + +dom_exception dom_html_image_element_get_is_map( + dom_html_image_element *ele, bool *is_map); + +dom_exception dom_html_image_element_set_is_map( + dom_html_image_element *ele, bool is_map); + +#endif |