Code

Initial support for icc color selection including CMYK
[inkscape.git] / src / file.h
index 19835ae3846d2e0971fa7307a2d977080e01542d..7f960ab651410bcb5a7c129a601d1872c4227ac9 100644 (file)
@@ -68,7 +68,7 @@ bool sp_file_open(
  * Displays a file open dialog. Calls sp_file_open on
  * an OK.
  */
-void sp_file_open_dialog (gpointer object, gpointer data);
+void sp_file_open_dialog (Gtk::Window &parentWindow, gpointer object, gpointer data);
 
 /**
  * Reverts file to disk-copy on "YES"
@@ -79,32 +79,39 @@ void sp_file_revert_dialog ();
 ## S A V E
 ######################*/
 
+/*
+ * Added to make only the remote savings.
+ */
+
+bool file_save_remote(SPDocument *doc, const Glib::ustring &uri,
+                Inkscape::Extension::Extension *key, bool saveas, bool official);
+
 /**
  *
  */
-bool sp_file_save (gpointer object, gpointer data);
+bool sp_file_save (Gtk::Window &parentWindow, gpointer object, gpointer data);
 
 /**
  *  Saves the given document.  Displays a file select dialog
  *  to choose the new name.
  */
-bool sp_file_save_as (gpointer object, gpointer data);
+bool sp_file_save_as (Gtk::Window &parentWindow, 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);
+bool sp_file_save_a_copy (Gtk::Window &parentWindow, gpointer object, gpointer data);
 
 
 /**
  *  Saves the given document.  Displays a file select dialog
  *  if needed.
  */
-bool sp_file_save_document (SPDocument *document);
+bool sp_file_save_document (Gtk::Window &parentWindow, SPDocument *document);
 
 /* Do the saveas dialog with a document as the parameter */
-bool sp_file_save_dialog (SPDocument *doc, bool bAsCopy = FALSE);
+bool sp_file_save_dialog (Gtk::Window &parentWindow, SPDocument *doc, bool bAsCopy = FALSE);
 
 
 /*######################
@@ -115,7 +122,7 @@ bool sp_file_save_dialog (SPDocument *doc, bool bAsCopy = FALSE);
  * Displays a file selector dialog, to allow the
  * user to import data into the current document.
  */
-void sp_file_import (GtkWidget * widget);
+void sp_file_import (Gtk::Window &parentWindow);
 
 /**
  * Imports a resource
@@ -135,6 +142,31 @@ void file_import(SPDocument *in_doc, const Glib::ustring &uri,
 bool sp_file_export_dialog (void *widget);
 
 
+/*######################
+## E X P O R T  T O  O C A L
+######################*/
+
+/**
+ * Export the current document to OCAL
+ */
+void sp_file_export_to_ocal (Gtk::Window &parentWindow );
+
+
+/**
+ * Export the current document to OCAL
+ */
+bool sp_file_export_to_ocal_dialog (void *widget);
+
+
+/*######################
+## I M P O R T  F R O M  O C A L
+######################*/
+
+/**
+ * Import a document from OCAL
+ */
+void sp_file_import_from_ocal (Gtk::Window &parentWindow );
+
 
 /*######################
 ## P R I N T
@@ -172,7 +204,7 @@ void sp_file_vacuum ();
 namespace Inkscape {
 namespace IO {
 
-void fixupHrefs( SPDocument *doc, const gchar *uri, bool spns );
+void fixupHrefs( SPDocument *doc, const gchar *uri, gboolean spns );
 
 }
 }