-/* 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.
*/
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
#include <config.h>
+
#include "FormBrowser.h"
-#include "form_browser.h"
+#include "forms/form_browser.h"
#include "xformsBC.h"
-FormBrowser::FormBrowser(ControlButtons & c, string const & t)
- : FormDB<FD_form_browser>(c, t)
+
+using std::string;
+
+
+FormBrowser::FormBrowser(Dialog & parent,
+ string const & title, bool allowResize)
+ : FormView<FD_browser>(parent, title, allowResize)
{}
-
+
void FormBrowser::build()
{
- dialog_.reset(build_browser());
+ dialog_.reset(build_browser(this));
// Manage the close button
- bc().setCancel(dialog_->button_close);
+ bcview().setCancel(dialog_->button_close);
}