diff --git a/src/file.h b/src/file.h
index 0395434c91bde0faf9f96e96c422eb5c43efb7c0..18e4068a1535819cee2562e1acce68ce31c68cdd 100644 (file)
--- a/src/file.h
+++ b/src/file.h
* Lauris Kaplinski <lauris@kaplinski.com>
* Chema Celorio <chema@celorio.com>
*
- * Copyright (C) 1999-2002 Authors
+ * Copyright (C) 2006 Johan Engelen <johan@shouraizou.nl>
* Copyright (C) 2001-2002 Ximian, Inc.
+ * Copyright (C) 1999-2002 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
*/
bool sp_file_save_as (gpointer object, gpointer data);
+/**
+ * Saves a copy of the given document. Displays a file select dialog
+ * to choose a name for the copy.
+ */
+bool sp_file_save_a_copy (gpointer object, gpointer data);
+
+
/**
* Saves the given document. Displays a file select dialog
* if needed.
bool sp_file_save_document (SPDocument *document);
/* Do the saveas dialog with a document as the parameter */
-bool sp_file_save_dialog (SPDocument *doc);
+bool sp_file_save_dialog (SPDocument *doc, bool bAsCopy = FALSE);
/*######################
######################*/
/**
- * Displays a "Save as" dialog for the user, with an
+ * Displays a FileExportDialog for the user, with an
* additional type selection, to allow the user to export
* the a document as a given type.
*/
-void sp_file_export_dialog (void *widget);
+bool sp_file_export_dialog (void *widget);
-/**
- * Export the given document as a Portable Network Graphics (PNG)
- * file. Returns FALSE if an error was encountered while writing
- * the file, TRUE otherwise.
- */
-int sp_export_png_file (SPDocument *doc, const gchar *filename,
- double x0, double y0, double x1, double y1,
- unsigned int width, unsigned int height, double xdpi, double ydpi,
- unsigned long bgcolor,
- unsigned int (*status) (float, void *), void *data, bool force_overwrite = false, GSList *items_only = NULL);
/*######################