// -*- C++ -*-
-/*
- * FormBrowser.h
+/**
+ * \file FormBrowser.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author John Levon
+ * \author Angus Leeming
*
- * (C) 2001 LyX Team
- * John Levon, moz@compsoc.man.ac.uk
+ * Full author contact details are available in file CREDITS.
*/
#ifndef FORMBROWSER_H
#define FORMBROWSER_H
-#include "FormBase.h"
+#include "FormDialogView.h"
-#ifdef __GNUG__
-#pragma interface
-#endif
+namespace lyx {
+namespace frontend {
-class LyXView;
-class Dialogs;
-struct FD_form_browser;
+struct FD_browser;
/**
* This class provides an XForms implementation of a read only
* text browser.
*/
-class FormBrowser : public FormBaseBD {
-public:
- FormBrowser(LyXView *, Dialogs *, const string &);
- ~FormBrowser();
-
-protected:
- /// Update the dialog.
- virtual void update();
-
- /// Real GUI implementation.
- FD_form_browser * dialog_;
+class FormBrowser : public FormView<FD_browser> {
+public:
+ ///
+ FormBrowser(Dialog &, std::string const &, bool allowResize = true);
private:
- /// Pointer to the actual instantiation of the xform's form
- virtual FL_FORM * form() const;
- /// Filter the inputs on callback from xforms
- virtual bool input(FL_OBJECT *, long);
- /// Build the dialog
+ /// Build the dialog.
virtual void build();
-
- /// generated build function
- FD_form_browser * build_browser();
};
-#endif
+} // namespace frontend
+} // namespace lyx
+
+#endif // FORMBROWSER_H