2001-02-06 17:41:42 +00:00
|
|
|
/* FormBrowser.C
|
|
|
|
* (C) 2001 LyX Team
|
|
|
|
* John Levon, moz@compsoc.man.ac.uk
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#include FORMS_H_LOCATION
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "gettext.h"
|
|
|
|
#include "FormBrowser.h"
|
|
|
|
#include "form_browser.h"
|
|
|
|
#include "LyXView.h"
|
|
|
|
#include "Dialogs.h"
|
|
|
|
#include "lyxrc.h"
|
|
|
|
#include "buffer.h"
|
|
|
|
|
|
|
|
FormBrowser::FormBrowser(LyXView * lv, Dialogs * d, const string & name)
|
2001-03-15 13:37:04 +00:00
|
|
|
: FormBaseBD(lv, d, name)
|
|
|
|
{}
|
2001-02-06 17:41:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
void FormBrowser::build()
|
|
|
|
{
|
2001-03-15 13:37:04 +00:00
|
|
|
dialog_.reset(build_browser());
|
2001-02-06 17:41:42 +00:00
|
|
|
|
|
|
|
// Manage the close button
|
2001-03-15 13:37:04 +00:00
|
|
|
bc().setCancel(dialog_->button_close);
|
|
|
|
bc().refresh();
|
2001-02-06 17:41:42 +00:00
|
|
|
}
|
|
|
|
|
2001-03-15 13:37:04 +00:00
|
|
|
|
2001-02-06 17:41:42 +00:00
|
|
|
FL_FORM * FormBrowser::form() const
|
|
|
|
{
|
2001-03-15 13:37:04 +00:00
|
|
|
if (dialog_.get())
|
2001-02-06 17:41:42 +00:00
|
|
|
return dialog_->form;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void FormBrowser::update()
|
2001-03-15 13:37:04 +00:00
|
|
|
{}
|
|
|
|
|
2001-02-06 17:41:42 +00:00
|
|
|
|
|
|
|
bool FormBrowser::input(FL_OBJECT *, long)
|
|
|
|
{
|
|
|
|
update();
|
|
|
|
return true;
|
|
|
|
}
|