Code

Add option to align & distribute dialog to treat the selection as a group (closes...
[inkscape.git] / src / ui / dialog / filedialog.cpp
index 103b624858750712004b3a8ec20b8e9f0e28f80c..b1ea5dfee7d0648850b6948928bd7be3e50e937c 100644 (file)
@@ -3,11 +3,13 @@
  *
  * Authors:
  *   Bob Jamison
+ *   Joel Holdsworth
  *   Other dudes from The Inkscape Organization
  *
  * Copyright (C) 2004-2007 Bob Jamison
  * Copyright (C) 2006 Johan Engelen <johan@shouraizou.nl>
- * Copyright (C) 2004-2007 The Inkscape Organization
+ * Copyright (C) 2007-2008 Joel Holdsworth
+ * Copyright (C) 2004-2008 The Inkscape Organization
  *
  * Released under GNU GPL, read the file 'COPYING' for more information
  */
@@ -86,7 +88,7 @@ FileOpenDialog *FileOpenDialog::create(Gtk::Window &parentWindow,
 #else
     FileOpenDialog *dialog = new FileOpenDialogImplGtk(parentWindow, path, fileTypes, title);
 #endif
-       
+
        return dialog;
 }
 
@@ -102,16 +104,17 @@ Glib::ustring FileOpenDialog::getFilename()
 /**
  * Public factory method.  Used in file.cpp
  */
-FileSaveDialog *FileSaveDialog::create(Gtk::Window& parentWindow, 
+FileSaveDialog *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)
 {
 #ifdef WIN32
-    FileSaveDialog *dialog = new FileSaveDialogImplWin32(parentWindow, path, fileTypes, title, default_key);
+    FileSaveDialog *dialog = new FileSaveDialogImplWin32(parentWindow, path, fileTypes, title, default_key, docTitle);
 #else
-    FileSaveDialog *dialog = new FileSaveDialogImplGtk(parentWindow, path, fileTypes, title, default_key);
+    FileSaveDialog *dialog = new FileSaveDialogImplGtk(parentWindow, path, fileTypes, title, default_key, docTitle);
 #endif
     return dialog;
 }
@@ -121,6 +124,11 @@ Glib::ustring FileSaveDialog::getFilename()
     return myFilename;
 }
 
+Glib::ustring FileSaveDialog::getDocTitle()
+{
+       return myDocTitle;
+}
+
 //void FileSaveDialog::change_path(const Glib::ustring& path)
 //{
 //     myFilename = path;
@@ -160,7 +168,7 @@ void FileSaveDialog::appendExtension(Glib::ustring& path, Inkscape::Extension::O
 /**
  * Public factory method.  Used in file.cpp
  */
- FileExportDialog *FileExportDialog::create(Gtk::Window& parentWindow, 
+ FileExportDialog *FileExportDialog::create(Gtk::Window& parentWindow,
                                                                                   const Glib::ustring &path,
                                            FileDialogType fileTypes,
                                            const char *title,