diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2012-02-05 21:01:43 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2012-02-05 21:01:43 +0000 |
commit | 1ab1ed7301d3885a00b3081b3bf7ccdeabd0466a (patch) | |
tree | 4179a08dad87ae02ef86d2bac69bba16901f7116 /src/html/html_document.h | |
parent | 7b193ec6c254488870c0360a2a5bf004d1d848b4 (diff) | |
download | libdom-1ab1ed7301d3885a00b3081b3bf7ccdeabd0466a.tar.gz libdom-1ab1ed7301d3885a00b3081b3bf7ccdeabd0466a.tar.bz2 |
Make HTMLDocument use dynamic dispatch like everything else.
Fix variable misuse in HTMLDocument constructor.
Overload Document.createElement and Document.createElementNS for HTMLDocuments
Re-enable decision to create HTMLDocument instead of Document in DOMImplementation.createDocument
svn path=/trunk/libdom/; revision=13425
Diffstat (limited to 'src/html/html_document.h')
-rw-r--r-- | src/html/html_document.h | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/src/html/html_document.h b/src/html/html_document.h index 28041d6..f27de20 100644 --- a/src/html/html_document.h +++ b/src/html/html_document.h @@ -43,5 +43,103 @@ dom_exception _dom_html_document_copy(dom_node_internal *old, _dom_html_document_destroy, \ _dom_html_document_copy +dom_exception _dom_html_document_get_title(dom_html_document *doc, + dom_string **title); +dom_exception _dom_html_document_set_title(dom_html_document *doc, + dom_string *title); +dom_exception _dom_html_document_get_referer(dom_html_document *doc, + dom_string **referer); +dom_exception _dom_html_document_get_domain(dom_html_document *doc, + dom_string **domain); +dom_exception _dom_html_document_get_url(dom_html_document *doc, + dom_string **url); +dom_exception _dom_html_document_get_body(dom_html_document *doc, + struct dom_html_element **body); +dom_exception _dom_html_document_set_body(dom_html_document *doc, + struct dom_html_element *body); +dom_exception _dom_html_document_get_images(dom_html_document *doc, + struct dom_html_collection **col); +dom_exception _dom_html_document_get_applets(dom_html_document *doc, + struct dom_html_collection **col); +dom_exception _dom_html_document_get_links(dom_html_document *doc, + struct dom_html_collection **col); +dom_exception _dom_html_document_get_forms(dom_html_document *doc, + struct dom_html_collection **col); +dom_exception _dom_html_document_get_anchors(dom_html_document *doc, + struct dom_html_collection **col); +dom_exception _dom_html_document_get_cookie(dom_html_document *doc, + dom_string **cookie); +dom_exception _dom_html_document_set_cookie(dom_html_document *doc, + dom_string *cookie); + +dom_exception _dom_html_document_open(dom_html_document *doc); +dom_exception _dom_html_document_close(dom_html_document *doc); +dom_exception _dom_html_document_write(dom_html_document *doc, + dom_string *text); +dom_exception _dom_html_document_writeln(dom_html_document *doc, + dom_string *text); +dom_exception _dom_html_document_get_elements_by_name(dom_html_document *doc, + dom_string *name, struct dom_nodelist **list); + +#define DOM_HTML_DOCUMENT_VTABLE \ + _dom_html_document_get_title, \ + _dom_html_document_set_title, \ + _dom_html_document_get_referer, \ + _dom_html_document_get_domain, \ + _dom_html_document_get_url, \ + _dom_html_document_get_body, \ + _dom_html_document_set_body, \ + _dom_html_document_get_images, \ + _dom_html_document_get_applets, \ + _dom_html_document_get_links, \ + _dom_html_document_get_forms, \ + _dom_html_document_get_anchors, \ + _dom_html_document_get_cookie, \ + _dom_html_document_set_cookie, \ + _dom_html_document_open, \ + _dom_html_document_close, \ + _dom_html_document_write, \ + _dom_html_document_writeln, \ + _dom_html_document_get_elements_by_name + +dom_exception _dom_html_document_create_element(dom_document *doc, + dom_string *tag_name, dom_element **result); +dom_exception _dom_html_document_create_element_ns(dom_document *doc, + dom_string *namespace, dom_string *qname, + dom_element **result); + +#define DOM_DOCUMENT_VTABLE_HTML \ + _dom_document_get_doctype, \ + _dom_document_get_implementation, \ + _dom_document_get_document_element, \ + _dom_html_document_create_element, \ + _dom_document_create_document_fragment, \ + _dom_document_create_text_node, \ + _dom_document_create_comment, \ + _dom_document_create_cdata_section, \ + _dom_document_create_processing_instruction, \ + _dom_document_create_attribute, \ + _dom_document_create_entity_reference, \ + _dom_document_get_elements_by_tag_name, \ + _dom_document_import_node, \ + _dom_html_document_create_element_ns, \ + _dom_document_create_attribute_ns, \ + _dom_document_get_elements_by_tag_name_ns, \ + _dom_document_get_element_by_id, \ + _dom_document_get_input_encoding, \ + _dom_document_get_xml_encoding, \ + _dom_document_get_xml_standalone, \ + _dom_document_set_xml_standalone, \ + _dom_document_get_xml_version, \ + _dom_document_set_xml_version, \ + _dom_document_get_strict_error_checking, \ + _dom_document_set_strict_error_checking, \ + _dom_document_get_uri, \ + _dom_document_set_uri, \ + _dom_document_adopt_node, \ + _dom_document_get_dom_config, \ + _dom_document_normalize, \ + _dom_document_rename_node + #endif |