2003-09-02 10:29:05 +00:00
|
|
|
/**
|
|
|
|
* \file FileDialog.C
|
|
|
|
* 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>
|
|
|
|
#include <gtkmm.h>
|
|
|
|
|
|
|
|
#include "FileDialogPrivate.h"
|
|
|
|
|
|
|
|
|
|
|
|
FileDialog::FileDialog(string const & title,
|
|
|
|
kb_action action,
|
|
|
|
Button b1,
|
|
|
|
Button b2)
|
|
|
|
{
|
|
|
|
private_ = new FileDialog::Private(title, action, b1, b2);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
FileDialog::~FileDialog()
|
|
|
|
{
|
|
|
|
delete private_;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
FileDialog::Result const FileDialog::open(string const & path,
|
|
|
|
string const & mask,
|
|
|
|
string const & suggested)
|
|
|
|
{
|
|
|
|
return private_->open(path, mask, suggested);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
FileDialog::Result const FileDialog::opendir(string const & path,
|
|
|
|
string const & suggested)
|
|
|
|
{
|
|
|
|
return private_->opendir(path, suggested);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
FileDialog::Result const FileDialog::save(string const & path,
|
|
|
|
string const & mask,
|
|
|
|
string const & suggested)
|
|
|
|
{
|
|
|
|
return private_->save(path, mask, suggested);
|
|
|
|
}
|