NetSurf
file.h
Go to the documentation of this file.
1/*
2 * Copyright 2011 Chris Young <chris@unsatisfactorysoftware.co.uk>
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
20struct hlcache_object;
21struct selection;
22struct gui_window_2;
23
24extern struct FileRequester *filereq;
25extern struct FileRequester *savereq;
26
27enum {
34};
35
36
37void ami_file_req_init(void);
38void ami_file_req_free(void);
39
40void ami_file_open(struct gui_window_2 *gwin);
41void ami_file_save_req(int type, struct gui_window_2 *gwin,
42 struct hlcache_handle *object);
43void ami_file_save(int type, char *fname, struct Window *win,
44 struct hlcache_handle *object, struct hlcache_handle *favicon,
45 struct browser_window *bw);
const char * type
Definition: filetype.cpp:44
@ AMINS_SAVE_IFF
Definition: file.h:32
@ AMINS_SAVE_PDF
Definition: file.h:31
@ AMINS_SAVE_TEXT
Definition: file.h:29
@ AMINS_SAVE_SELECTION
Definition: file.h:33
@ AMINS_SAVE_SOURCE
Definition: file.h:28
@ AMINS_SAVE_COMPLETE
Definition: file.h:30
void ami_file_save_req(int type, struct gui_window_2 *gwin, struct hlcache_handle *object)
Definition: file.c:225
struct FileRequester * filereq
Definition: file.c:52
struct FileRequester * savereq
Definition: file.c:53
void ami_file_req_free(void)
Definition: file.c:300
void ami_file_req_init(void)
Definition: file.c:281
void ami_file_open(struct gui_window_2 *gwin)
Definition: file.c:83
void ami_file_save(int type, char *fname, struct Window *win, struct hlcache_handle *object, struct hlcache_handle *favicon, struct browser_window *bw)
Definition: file.c:147
Browser window data.
High-level cache handle.
Definition: hlcache.c:66