NetSurf
save.h
Go to the documentation of this file.
1/*
2 * Copyright 2006 Adrian Lees <adrianl@users.sourceforge.net>
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/** \file
20 * File/object/selection saving (Interface).
21 */
22
23#ifndef _NETSURF_RISCOS_SAVE_H_
24#define _NETSURF_RISCOS_SAVE_H_
25
26#include <stdbool.h>
27#include "oslib/wimp.h"
28
29enum gui_save_type;
30struct nsurl;
31
32void gui_drag_save_object(struct gui_window *g, struct hlcache_handle *c, enum gui_save_type save_type);
33void gui_drag_save_selection(struct gui_window *g, const char *selection);
34
35wimp_w ro_gui_saveas_create(const char *template_name);
36void ro_gui_saveas_quit(void);
37void ro_gui_save_prepare(enum gui_save_type save_type, struct hlcache_handle *h,
38 char *s, const struct nsurl *url,
39 const char *title);
40void ro_gui_save_start_drag(wimp_pointer *pointer);
41void ro_gui_drag_save_link(enum gui_save_type save_type, const struct nsurl *url,
42 const char *title, struct gui_window *g);
43void ro_gui_drag_icon(int x, int y, const char *sprite);
44void ro_gui_drag_box_cancel(void);
45void ro_gui_send_datasave(enum gui_save_type save_type, wimp_full_message_data_xfer *message, wimp_t to);
46void ro_gui_save_datasave_ack(wimp_message *message);
47bool ro_gui_save_ok(wimp_w w);
48void ro_gui_convert_save_path(char *dp, size_t len, const char *p);
49
50#endif
gui_save_type
Definition: window.h:39
struct nsurl nsurl
NetSurf URL object.
Definition: nsurl.h:31
void gui_drag_save_selection(struct gui_window *g, const char *selection)
Initiates drag saving of a selection from a browser window.
Definition: drag.c:303
void ro_gui_drag_icon(int x, int y, const char *sprite)
Start drag of icon under the pointer.
Definition: save.c:1275
void ro_gui_send_datasave(enum gui_save_type save_type, wimp_full_message_data_xfer *message, wimp_t to)
Send DataSave message on behalf of clipboard code and remember that it's the clipboard contents we're...
Definition: save.c:1397
void ro_gui_drag_box_cancel(void)
Definition: save.c:1364
void ro_gui_convert_save_path(char *dp, size_t len, const char *p)
Convert a ctrl-char terminated pathname possibly containing spaces to a NUL-terminated one containing...
Definition: save.c:1349
void ro_gui_save_prepare(enum gui_save_type save_type, struct hlcache_handle *h, char *s, const struct nsurl *url, const char *title)
void ro_gui_drag_save_link(enum gui_save_type save_type, const struct nsurl *url, const char *title, struct gui_window *g)
void ro_gui_saveas_quit(void)
Clean-up function that releases our sprite area and memory.
Definition: save.c:216
bool ro_gui_save_ok(wimp_w w)
Handle OK click/keypress in the save dialog.
Definition: save.c:1110
void ro_gui_save_datasave_ack(wimp_message *message)
Handle Message_DataSaveAck for a drag from the save dialog or browser window, or Clipboard protocol.
Definition: save.c:1420
wimp_w ro_gui_saveas_create(const char *template_name)
Create the saveas dialogue from the given template, and the sprite area necessary for our thumbnail (...
Definition: save.c:152
void gui_drag_save_object(struct gui_window *g, struct hlcache_handle *c, enum gui_save_type save_type)
Initiates drag saving of an object directly from a browser window.
Definition: drag.c:298
void ro_gui_save_start_drag(wimp_pointer *pointer)
Starts a drag for the save dialog.
Definition: save.c:602
first entry in window list
Definition: gui.c:296
High-level cache handle.
Definition: hlcache.c:66
char to[32]
Encoding name to convert to.
Definition: utf8.c:144