]> git.lyx.org Git - lyx.git/blob - src/frontends/gtk/FileDialog.C
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / gtk / FileDialog.C
1 /**
2  * \file gtk/FileDialog.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Huang Ying
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 // Too hard to make concept checks work with this file
14 #ifdef _GLIBCPP_CONCEPT_CHECKS
15 #undef _GLIBCPP_CONCEPT_CHECKS
16 #endif
17
18 #include "FileDialogPrivate.h"
19
20 using std::string;
21
22
23 FileDialog::FileDialog(string const & title,
24                        kb_action action,
25                        Button b1,
26                        Button b2)
27 {
28         private_ = new FileDialog::Private(title, action, b1, b2);
29 }
30
31
32 FileDialog::~FileDialog()
33 {
34         delete private_;
35 }
36
37
38 FileDialog::Result const
39 FileDialog::open(string const & path,
40                  lyx::support::FileFilterList const & filters,
41                  string const & suggested)
42 {
43         return private_->open(path, filters, suggested);
44 }
45
46
47 FileDialog::Result const
48 FileDialog::opendir(string const & path,
49                     string const & suggested)
50 {
51         return private_->opendir(path, suggested);
52 }
53
54
55 FileDialog::Result const
56 FileDialog::save(string const & path,
57                  lyx::support::FileFilterList const & filters,
58                  string const & suggested)
59 {
60         return private_->save(path, filters, suggested);
61 }