Code

88ba32679e24502d4ecadee6d721180b1de7ead6
[inkscape.git] / src / ui / dialog / filedialog.cpp
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 }
97 //#########################################################################
98 //### F I L E    I M P O R T  F R O M  O C A L
99 //#########################################################################
101 /**
102  * Public factory.  Called by file.cpp.
103  */
104 FileImportFromOCALDialog *FileImportFromOCALDialog::create(Gtk::Window &parentWindow,
105                                        const Glib::ustring &path,
106                                        FileDialogType fileTypes,
107                                        const Glib::ustring &title)
109     FileImportFromOCALDialog *dialog = new FileImportFromOCALDialogImplGtk(parentWindow, path, fileTypes, title);
110     return dialog;
114 } //namespace Dialog
115 } //namespace UI
116 } //namespace Inkscape
120 /*
121   Local Variables:
122   mode:c++
123   c-file-style:"stroustrup"
124   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
125   indent-tabs-mode:nil
126   fill-column:99
127   End:
128 */
129 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :