index bd0477b302507f9aedadb37945900bda076b0762..af607c1244899f706d5ee832a21a5ca8f2e58504 100644 (file)
#define __FILE_DIALOGIMPL_H__
#include "filedialog.h"
+#include "extension/system.h"
//General includes
#include <unistd.h>
~SVGPreview();
- bool setDocument(Document *doc);
+ bool setDocument(SPDocument *doc);
bool setFileName(Glib::ustring &fileName);
/**
* The svg document we are currently showing
*/
- Document *document;
+ SPDocument *document;
/**
* The sp_svg_view widget
public:
FileSaveDialogImplGtk(Gtk::Window &parentWindow,
- const Glib::ustring &dir,
- FileDialogType fileTypes,
- const Glib::ustring &title,
- const Glib::ustring &default_key,
- const gchar* docTitle);
+ const Glib::ustring &dir,
+ FileDialogType fileTypes,
+ const Glib::ustring &title,
+ const Glib::ustring &default_key,
+ const gchar* docTitle,
+ const Inkscape::Extension::FileSaveMethod save_method);
virtual ~FileSaveDialogImplGtk();
void change_path(const Glib::ustring& path);
void updateNameAndExtension();
+ /**
+ * The file save method (essentially whether the dialog was invoked by "Save as ..." or "Save a
+ * copy ..."), which is used to determine file extensions and save paths.
+ */
+ Inkscape::Extension::FileSaveMethod save_method;
+
/**
* Fix to allow the user to type the file name
*/
+#ifdef NEW_EXPORT_DIALOG
+
//########################################################################
//# F I L E E X P O R T
//########################################################################
Glib::ustring myFilename;
};
+#endif // NEW_EXPORT_DIALOG
} // namespace Dialog
} // namespace UI
fill-column:99
End:
*/
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :