2003-09-02 10:29:05 +00:00
|
|
|
/**
|
2003-10-08 11:31:51 +00:00
|
|
|
* \file gtk/FileDialog.C
|
2003-09-02 10:29:05 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Huang Ying
|
|
|
|
*
|
2003-09-02 17:02:32 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2003-09-02 10:29:05 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
2004-11-16 23:18:46 +00:00
|
|
|
// Too hard to make concept checks work with this file
|
2005-01-29 15:09:14 +00:00
|
|
|
#ifdef _GLIBCXX_CONCEPT_CHECKS
|
|
|
|
#undef _GLIBCXX_CONCEPT_CHECKS
|
|
|
|
#endif
|
2004-11-16 23:18:46 +00:00
|
|
|
#ifdef _GLIBCPP_CONCEPT_CHECKS
|
|
|
|
#undef _GLIBCPP_CONCEPT_CHECKS
|
|
|
|
#endif
|
|
|
|
|
2003-09-02 10:29:05 +00:00
|
|
|
#include "FileDialogPrivate.h"
|
|
|
|
|
2003-10-06 15:43:21 +00:00
|
|
|
using std::string;
|
|
|
|
|
2003-09-02 10:29:05 +00:00
|
|
|
|
|
|
|
FileDialog::FileDialog(string const & title,
|
|
|
|
kb_action action,
|
|
|
|
Button b1,
|
|
|
|
Button b2)
|
|
|
|
{
|
|
|
|
private_ = new FileDialog::Private(title, action, b1, b2);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
FileDialog::~FileDialog()
|
|
|
|
{
|
|
|
|
delete private_;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-09-26 18:36:07 +00:00
|
|
|
FileDialog::Result const
|
|
|
|
FileDialog::open(string const & path,
|
|
|
|
lyx::support::FileFilterList const & filters,
|
|
|
|
string const & suggested)
|
2003-09-02 10:29:05 +00:00
|
|
|
{
|
2004-02-23 00:21:04 +00:00
|
|
|
return private_->open(path, filters, suggested);
|
2003-09-02 10:29:05 +00:00
|
|
|
}
|
|
|
|
|
2003-09-09 18:27:24 +00:00
|
|
|
|
2004-09-26 18:36:07 +00:00
|
|
|
FileDialog::Result const
|
|
|
|
FileDialog::opendir(string const & path,
|
|
|
|
string const & suggested)
|
2003-09-02 10:29:05 +00:00
|
|
|
{
|
|
|
|
return private_->opendir(path, suggested);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-09-26 18:36:07 +00:00
|
|
|
FileDialog::Result const
|
|
|
|
FileDialog::save(string const & path,
|
|
|
|
lyx::support::FileFilterList const & filters,
|
|
|
|
string const & suggested)
|
2003-09-02 10:29:05 +00:00
|
|
|
{
|
2004-02-23 00:21:04 +00:00
|
|
|
return private_->save(path, filters, suggested);
|
2003-09-02 10:29:05 +00:00
|
|
|
}
|