]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormBrowser.h
Bugfixes: checkboxes to radiobuttons (from J�rgen S) and remove a little
[lyx.git] / src / frontends / xforms / FormBrowser.h
index 7749ce822d6d54661ad4b2001b510539376f8434..58be37f7ae04cb332e136c6b79678c38642d35c1 100644 (file)
@@ -1,50 +1,37 @@
 // -*- C++ -*-
 /*
- * FormBrowser.h
+ * \file FormBrowser.h
  *
  * (C) 2001 LyX Team
  * John Levon, moz@compsoc.man.ac.uk
+ * \author Angus Leeming, a.leeming@.ac.uk
  */
 
 #ifndef FORMBROWSER_H
 #define FORMBROWSER_H
 
-#include "FormBase.h"
-
 #ifdef __GNUG__
 #pragma interface
 #endif
 
-class LyXView;
-class Dialogs;
-struct FD_form_browser;
+#include "FormBase.h"
 
 /**
  * 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();
+struct FD_form_browser;
 
-       /// Real GUI implementation.
-       FD_form_browser * dialog_;
+class FormBrowser : public FormDB<FD_form_browser> {
+public:
+       ///
+       FormBrowser(ControlButtons &, string const &, bool allowResize=true);
 
 private:
-       /// Pointer to the actual instantiation of the xforms 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
+#endif // FORMBROWSER_H