summaryrefslogtreecommitdiff
path: root/include/dom
diff options
context:
space:
mode:
authorrsk1994 <rsk1coder99@gmail.com>2014-05-15 05:43:49 +0530
committerRupinder Singh Khokhar <rsk1coder99@gmail.com>2014-06-11 04:27:07 +0530
commit501852e21d843601d2501cfe9cb31a13f259cf50 (patch)
tree64c082f770d6d04d3fb371a66e9f774e4d1a3deb /include/dom
parent72de0d1c1b36201c72ac4881faa0b57b920aac63 (diff)
downloadlibdom-501852e21d843601d2501cfe9cb31a13f259cf50.tar.gz
libdom-501852e21d843601d2501cfe9cb31a13f259cf50.tar.bz2
Typecasting POC to correct DOMTSHandler. A minor dupliction fixed in Anchor Element. Image <img> Element
Diffstat (limited to 'include/dom')
-rw-r--r--include/dom/dom.h1
-rw-r--r--include/dom/html/html_anchor_element.h6
-rw-r--r--include/dom/html/html_image_element.h84
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