X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FFormBrowser.C;h=2cdacf7e74072aa440c211f6d26a39dfab93da09;hb=37e82a546392d43f787826b85481a11f2a27af15;hp=7bd18e9ddf43168e958c2860480db58169d3826e;hpb=d4ee9c38b6aa45146f67658352623bcbc3e0ad9b;p=lyx.git diff --git a/src/frontends/xforms/FormBrowser.C b/src/frontends/xforms/FormBrowser.C index 7bd18e9ddf..2cdacf7e74 100644 --- a/src/frontends/xforms/FormBrowser.C +++ b/src/frontends/xforms/FormBrowser.C @@ -1,56 +1,37 @@ -/* FormBrowser.C - * (C) 2001 LyX Team - * John Levon, moz@compsoc.man.ac.uk +/** + * \file FormBrowser.C + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. + * + * \author John Levon + * + * Full author contact details are available in file CREDITS. */ #include -#include FORMS_H_LOCATION +#include "FormBrowser.h" +#include "forms/form_browser.h" +#include "xformsBC.h" -#ifdef __GNUG__ -#pragma implementation -#endif +using std::string; -#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) - : FormBaseBD(lv, d, name) +namespace lyx { +namespace frontend { + +FormBrowser::FormBrowser(Dialog & parent, + string const & title, bool allowResize) + : FormView(parent, title, allowResize) {} void FormBrowser::build() { - dialog_.reset(build_browser()); - - // Workaround dumb xforms sizing bug - minw_ = form()->w; - minh_ = form()->h; + dialog_.reset(build_browser(this)); // Manage the close button - bc().setCancel(dialog_->button_close); - bc().refresh(); + bcview().setCancel(dialog_->button_close); } - -FL_FORM * FormBrowser::form() const -{ - if (dialog_.get()) - return dialog_->form; - return 0; -} - -void FormBrowser::update() -{} - - -bool FormBrowser::input(FL_OBJECT *, long) -{ - update(); - return true; -} +} // namespace frontend +} // namespace lyx