/* * saveas * Handler for a save dbox under new dbox system * * v. 1.00 (9 August 1991) * * © 1991-1998 Straylight */ /*----- Licensing note ----------------------------------------------------* * * This file is part of Straylight's Steel library. * * Steel 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; either version 2, or (at your option) * any later version. * * Steel 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 Steel. If not, write to the Free Software Foundation, * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __saveas_h #define __saveas_h #ifndef __xfersend_h #include "xfersend.h" #endif /* * void saveas * ( * char *title, * char *name, * int filetype, * int estsize, * xfersend_saveproc saveproc, * xfersend_sendproc sendproc, * xfersend_printproc printproc, * void *handle * ) * * Use * Creates and handles a save as dialogue box (even saving your data for * you!). * * Parameters * char *title == the title of the dialogue box. * char *name == the default filename for the box. * int filetype == the filetype of the data to be sent. * int estsize == the estimated file size. * xfersend_saveproc saveproc == function to save the data. * xfersend_sendproc sendproc == function to export data to another * application (RAM transfer). * xfersend_printproc printproc == function to print data. * void *handle == your handle to the data (or anything else!) */ void saveas ( char *title, char *name, int filetype, int estsize, xfersend_saveproc saveproc, xfersend_sendproc sendproc, xfersend_printproc printproc, void *handle ); /* * BOOL saveas_file_is_safe(void) * * Use * Informs caller if the file is going to a safe home. * * Returns * TRUE if the file is 'safe' - i.e. on disk */ BOOL saveas_file_is_safe(void); #endif