Code

Separated the OCAL import and export dialogs into their own source file - ocaldialogs...
[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 } //namespace Dialog
80 } //namespace UI
81 } //namespace Inkscape
85 /*
86   Local Variables:
87   mode:c++
88   c-file-style:"stroustrup"
89   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
90   indent-tabs-mode:nil
91   fill-column:99
92   End:
93 */
94 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :