NetSurf
Functions
html_save.h File Reference

Interface to HTML content handler to save documents. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

dom_document * html_get_document (struct hlcache_handle *h)
 get the dom document of a html content from a handle More...
 
struct boxhtml_get_box_tree (struct hlcache_handle *h)
 get the render box tree of a html content from a handle More...
 
struct nsurlhtml_get_base_url (struct hlcache_handle *h)
 get the base url of an html content from a handle More...
 

Detailed Description

Interface to HTML content handler to save documents.

Todo:
Investigate altering this API as it is only used for exporting the html content to disc.

Definition in file html_save.h.

Function Documentation

◆ html_get_base_url()

struct nsurl * html_get_base_url ( hlcache_handle h)

get the base url of an html content from a handle

get the base url of an html content from a handle

Parameters
hContent to retrieve base target from
Returns
Pointer to URL

Definition at line 2039 of file html.c.

References html_content::base_url, and hlcache_handle_get_content().

Referenced by save_complete_save_html_document().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ html_get_box_tree()

struct box * html_get_box_tree ( hlcache_handle h)

get the render box tree of a html content from a handle

get the render box tree of a html content from a handle

Parameters
hHTML content to retrieve tree from
Returns
Pointer to box tree
Todo:
This API must die, as must all use of the box tree outside of HTML content handler

Definition at line 1971 of file html.c.

References hlcache_handle_get_content(), and html_content::layout.

Referenced by html_get_id_offset(), layout_minmax_block(), and save_as_text().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ html_get_document()

dom_document * html_get_document ( hlcache_handle h)

get the dom document of a html content from a handle

get the dom document of a html content from a handle

Parameters
hHTML content to retrieve document tree from
Returns
Pointer to document tree

Definition at line 1953 of file html.c.

References html_content::document, and hlcache_handle_get_content().

Referenced by save_complete_save_html_document().

Here is the call graph for this function:
Here is the caller graph for this function: