2006-02-16 02:10:08 +03:00
|
|
|
/*
|
|
|
|
* Copyright 2006 Adrian Lees <adrianl@users.sourceforge.net>
|
2007-08-08 20:16:03 +04:00
|
|
|
*
|
|
|
|
* This file is part of NetSurf, http://www.netsurf-browser.org/
|
|
|
|
*
|
|
|
|
* NetSurf is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; version 2 of the License.
|
|
|
|
*
|
|
|
|
* NetSurf is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2006-02-16 02:10:08 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
* File/object/selection saving (Interface).
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _NETSURF_RISCOS_SAVE_H_
|
|
|
|
#define _NETSURF_RISCOS_SAVE_H_
|
|
|
|
|
2008-07-27 02:29:15 +04:00
|
|
|
#include <stdbool.h>
|
2006-02-16 02:10:08 +03:00
|
|
|
#include "oslib/wimp.h"
|
2014-02-03 22:12:44 +04:00
|
|
|
|
2014-06-04 15:07:03 +04:00
|
|
|
enum gui_save_type;
|
|
|
|
|
|
|
|
void gui_drag_save_object(struct gui_window *g, struct hlcache_handle *c, enum gui_save_type save_type);
|
2014-01-14 02:54:19 +04:00
|
|
|
void gui_drag_save_selection(struct gui_window *g, const char *selection);
|
|
|
|
|
2006-02-16 02:10:08 +03:00
|
|
|
wimp_w ro_gui_saveas_create(const char *template_name);
|
|
|
|
void ro_gui_saveas_quit(void);
|
2014-06-04 15:07:03 +04:00
|
|
|
void ro_gui_save_prepare(enum gui_save_type save_type, struct hlcache_handle *h,
|
2013-02-22 16:19:35 +04:00
|
|
|
char *s, const char *url,
|
2010-04-07 18:14:44 +04:00
|
|
|
const char *title);
|
2006-02-16 02:10:08 +03:00
|
|
|
void ro_gui_save_start_drag(wimp_pointer *pointer);
|
2014-06-04 15:07:03 +04:00
|
|
|
void ro_gui_drag_save_link(enum gui_save_type save_type, const char *url,
|
2009-01-31 06:43:06 +03:00
|
|
|
const char *title, struct gui_window *g);
|
2006-02-16 02:10:08 +03:00
|
|
|
void ro_gui_drag_icon(int x, int y, const char *sprite);
|
|
|
|
void ro_gui_drag_box_cancel(void);
|
2014-06-04 15:07:03 +04:00
|
|
|
void ro_gui_send_datasave(enum gui_save_type save_type, wimp_full_message_data_xfer *message, wimp_t to);
|
2006-02-16 02:10:08 +03:00
|
|
|
void ro_gui_save_datasave_ack(wimp_message *message);
|
|
|
|
bool ro_gui_save_ok(wimp_w w);
|
|
|
|
void ro_gui_convert_save_path(char *dp, size_t len, const char *p);
|
|
|
|
|
|
|
|
#endif
|