summaryrefslogtreecommitdiffstats
path: root/src/file.h
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2009-08-06 14:17:17 +0000
committercilix42 <cilix42@users.sourceforge.net>2009-08-06 14:17:17 +0000
commit51c2905fd3e99955db2d823b79abb763d8097028 (patch)
tree90128509479f5498e1125d1e4eb9cdc05bf6b6e6 /src/file.h
parentAdding one more control to Smart Jelly (diff)
downloadinkscape-51c2905fd3e99955db2d823b79abb763d8097028.tar.gz
inkscape-51c2905fd3e99955db2d823b79abb763d8097028.zip
Revert recent refactoring changes by johnce because they break the build, which cannot be fixed easily.
(bzr r8422)
Diffstat (limited to 'src/file.h')
-rw-r--r--src/file.h37
1 files changed, 5 insertions, 32 deletions
diff --git a/src/file.h b/src/file.h
index 2eaace640..ce75a61a7 100644
--- a/src/file.h
+++ b/src/file.h
@@ -21,15 +21,8 @@
#include "extension/extension-forward.h"
-#include <iostream>
-#include <fstream>
-#include <glibmm/i18n.h>
-
-#include "uri.h"
-#include "streams-webdav.h"
-
struct SPDesktop;
-struct Document;
+struct SPDocument;
namespace Inkscape {
namespace Extension {
@@ -71,17 +64,6 @@ bool sp_file_open(
bool replace_empty = true
);
-//NOTE1
-/*
- * Opens a new file and window from the given URI (class)
- */
-bool sp_file_open_uri(
- const Inkscape::URI &uri,
- Inkscape::Extension::Extension *key,
- bool add_to_recent = true,
- bool replace_empty = true
- );
-
/**
* Displays a file open dialog. Calls sp_file_open on
* an OK.
@@ -101,7 +83,7 @@ void sp_file_revert_dialog ();
* Added to make only the remote savings.
*/
-bool file_save_remote(Document *doc, const Glib::ustring &uri,
+bool file_save_remote(SPDocument *doc, const Glib::ustring &uri,
Inkscape::Extension::Extension *key, bool saveas, bool official);
/**
@@ -126,10 +108,10 @@ bool sp_file_save_a_copy (Gtk::Window &parentWindow, gpointer object, gpointer d
* Saves the given document. Displays a file select dialog
* if needed.
*/
-bool sp_file_save_document (Gtk::Window &parentWindow, Document *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 (Gtk::Window &parentWindow, Document *doc, bool bAsCopy = FALSE);
+bool sp_file_save_dialog (Gtk::Window &parentWindow, SPDocument *doc, bool bAsCopy = FALSE);
/*######################
@@ -145,7 +127,7 @@ void sp_file_import (Gtk::Window &parentWindow);
/**
* Imports a resource
*/
-void file_import(Document *in_doc, const Glib::ustring &uri,
+void file_import(SPDocument *in_doc, const Glib::ustring &uri,
Inkscape::Extension::Extension *key);
/*######################
@@ -217,15 +199,6 @@ void sp_file_vacuum ();
#endif
-//namespace Inkscape {
-//namespace Net {
-
-
-
-//}
-//}
-// #endif
-
/*
Local Variables:
mode:c++