NetSurf
html_save.h
Go to the documentation of this file.
1/*
2 * Copyright 2018 Vincent Sanders <vince@netsurf-browser.org>
3 *
4 * This file is part of NetSurf, http://www.netsurf-browser.org/
5 *
6 * NetSurf is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * NetSurf is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19/**
20 * \file
21 * Interface to HTML content handler to save documents.
22 *
23 * \todo Investigate altering this API as it is only used for
24 * exporting the html content to disc.
25 */
26
27#ifndef NETSURF_HTML_HTML_SAVE_H
28#define NETSURF_HTML_HTML_SAVE_H
29
30/**
31 * get the dom document of a html content from a handle
32 */
33dom_document *html_get_document(struct hlcache_handle *h);
34
35
36/**
37 * get the render box tree of a html content from a handle
38 */
39struct box *html_get_box_tree(struct hlcache_handle *h);
40
41/**
42 * get the base url of an html content from a handle
43 */
44struct nsurl *html_get_base_url(struct hlcache_handle *h);
45
46#endif
struct nsurl * html_get_base_url(struct hlcache_handle *h)
get the base url of an html content from a handle
Definition: html.c:2039
struct box * html_get_box_tree(struct hlcache_handle *h)
get the render box tree of a html content from a handle
Definition: html.c:1971
dom_document * html_get_document(struct hlcache_handle *h)
get the dom document of a html content from a handle
Definition: html.c:1953
struct nsurl nsurl
NetSurf URL object.
Definition: nsurl.h:31
Node in box tree.
Definition: box.h:177
High-level cache handle.
Definition: hlcache.c:66