index b73955b466c0d1d4f438919ab323388fc953c4a4..eda8c4eb48c06295078a79c02bb869a82948fd4d 100644 (file)
/**
* Return true if the image is loadable by Gdk, else false
*/
-bool isValidImageFile(const Glib::ustring &fileName);
-
+bool isValidImageFile(const Glib::ustring &fileName);
+
/**
* This class provides an implementation-independent API for
* file "Open" dialogs. Using a standard interface obviates the need
* @param fileTypes one of FileDialogTypes
* @param title the title of the dialog
*/
- static FileOpenDialog *create(Gtk::Window& parentWindow,
+ static FileOpenDialog *create(Gtk::Window& parentWindow,
const Glib::ustring &path,
FileDialogType fileTypes,
const char *title);
Glib::ustring getFilename();
virtual std::vector<Glib::ustring> getFilenames() = 0;
-
+
virtual Glib::ustring getCurrentDirectory() = 0;
-
+
protected:
/**
* Filename that was given
*/
Glib::ustring myFilename;
-
+
}; //FileOpenDialog
* @param title the title of the dialog
* @param key a list of file types from which the user can select
*/
- static FileSaveDialog *create(Gtk::Window& parentWindow,
+ static FileSaveDialog *create(Gtk::Window& parentWindow,
const Glib::ustring &path,
FileDialogType fileTypes,
const char *title,
- const Glib::ustring &default_key);
+ const Glib::ustring &default_key,
+ const gchar *docTitle);
/**
* Get the file name chosen by the user. Valid after an [OK]
*/
Glib::ustring getFilename ();
-
+
+ /**
+ * Get the document title chosen by the user. Valid after an [OK]
+ */
+ Glib::ustring getDocTitle ();
+
virtual Glib::ustring getCurrentDirectory() = 0;
protected:
* Filename that was given
*/
Glib::ustring myFilename;
-
+
+ /**
+ * Doc Title that was given
+ */
+ Glib::ustring myDocTitle;
+
/**
* List of known file extensions.
*/
std::set<Glib::ustring> knownExtensions;
-
+
void appendExtension(Glib::ustring& path, Inkscape::Extension::Output* outputExtension);
* @param title the title of the dialog
* @param key a list of file types from which the user can select
*/
- static FileExportDialog *create(Gtk::Window& parentWindow,
+ static FileExportDialog *create(Gtk::Window& parentWindow,
const Glib::ustring &path,
FileDialogType fileTypes,
const char *title,
* Return the selected filename, if any. If not, return ""
*/
virtual Glib::ustring getFilename () =0;
-
+
/**
* Return the scope of the export. One of the enumerated types
- * in ScopeType
+ * in ScopeType
*/
virtual ScopeType getScope() = 0;
-
+
/**
* Return left side of the exported region
*/
virtual double getSourceX() = 0;
-
+
/**
* Return the top of the exported region
*/
virtual double getSourceY() = 0;
-
+
/**
* Return the width of the exported region
*/
virtual double getSourceWidth() = 0;
-
+
/**
* Return the height of the exported region
*/
*/
virtual unsigned long getBackground() = 0;
-
+
}; //FileExportDialog