1 /**
2 * Implementation of the file dialog interfaces defined in filedialog.h
3 *
4 * Authors:
5 * Bob Jamison
6 * Other dudes from The Inkscape Organization
7 *
8 * Copyright (C) 2004-2007 Bob Jamison
9 * Copyright (C) 2006 Johan Engelen <johan@shouraizou.nl>
10 * Copyright (C) 2004-2007 The Inkscape Organization
11 *
12 * Released under GNU GPL, read the file 'COPYING' for more information
13 */
15 #include "filedialog.h"
16 #include "filedialogimpl-gtkmm.h"
18 #include "gc-core.h"
19 #include <dialogs/dialog-events.h>
21 namespace Inkscape
22 {
23 namespace UI
24 {
25 namespace Dialog
26 {
28 /*#########################################################################
29 ### F I L E O P E N
30 #########################################################################*/
32 /**
33 * Public factory. Called by file.cpp, among others.
34 */
35 FileOpenDialog *FileOpenDialog::create(Gtk::Window &parentWindow,
36 const Glib::ustring &path,
37 FileDialogType fileTypes,
38 const Glib::ustring &title)
39 {
40 FileOpenDialog *dialog = new FileOpenDialogImplGtk(parentWindow, path, fileTypes, title);
41 return dialog;
42 }
44 //########################################################################
45 //# F I L E S A V E
46 //########################################################################
48 /**
49 * Public factory method. Used in file.cpp
50 */
51 FileSaveDialog *FileSaveDialog::create(Gtk::Window& parentWindow,
52 const Glib::ustring &path,
53 FileDialogType fileTypes,
54 const Glib::ustring &title,
55 const Glib::ustring &default_key)
56 {
57 FileSaveDialog *dialog = new FileSaveDialogImplGtk(parentWindow, path, fileTypes, title, default_key);
58 return dialog;
59 }
61 //########################################################################
62 //# F I L E E X P O R T
63 //########################################################################
65 /**
66 * Public factory method. Used in file.cpp
67 */
68 FileExportDialog *FileExportDialog::create(Gtk::Window& parentWindow,
69 const Glib::ustring &path,
70 FileDialogType fileTypes,
71 const Glib::ustring &title,
72 const Glib::ustring &default_key)
73 {
74 FileExportDialog *dialog = new FileExportDialogImpl(parentWindow, path, fileTypes, title, default_key);
75 return dialog;
76 }
79 //########################################################################
80 //# F I L E E X P O R T T O O C A L
81 //########################################################################
84 /**
85 * Public factory method. Used in file.cpp
86 */
88 FileExportToOCALDialog *FileExportToOCALDialog::create(Gtk::Window& parentWindow,
89 FileDialogType fileTypes,
90 const Glib::ustring &title,
91 const Glib::ustring &default_key)
92 {
93 FileExportToOCALDialog *dialog = new FileExportToOCALDialogImpl(parentWindow, fileTypes, title, default_key);
94 return dialog;
95 }
99 } //namespace Dialog
100 } //namespace UI
101 } //namespace Inkscape
104 /*
105 Local Variables:
106 mode:c++
107 c-file-style:"stroustrup"
108 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
109 indent-tabs-mode:nil
110 fill-column:99
111 End:
112 */
113 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :