]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormCopyright.h
More pref work from Angus
[lyx.git] / src / frontends / xforms / FormCopyright.h
index ee99a2c619a52c766036a369f9d184d2856ab76d..8a0cf83aef066c55cc52ad0ebe29d53ff7b32982 100644 (file)
 #ifndef FORMCOPYRIGHT_H
 #define FORMCOPYRIGHT_H
 
-#include "DialogBase.h"
-#include "form_copyright.h"
+#include "FormBase.h"
 
-class Dialogs;
-// same arguement as in Dialogs.h s/LyX/UI/
-class LyXView;
+#ifdef __GNUG__
+#pragma interface
+#endif
+
+struct FD_form_copyright;
 
 /** This class provides an XForms implementation of the FormCopyright Dialog.
  */
-class FormCopyright : public DialogBase {
+class FormCopyright : public FormBaseBI {
 public:
-       /**@name Constructors and Destructors */
-       //@{
        /// #FormCopyright x(LyXFunc ..., Dialogs ...);#
        FormCopyright(LyXView *, Dialogs *);
        ///
        ~FormCopyright();
-       //@}
-
-       /**@name Real per-instance Callback Methods */
-       //@{
-       static  int WMHideCB(FL_FORM *, void *);
-       static void OKCB(FL_OBJECT *, long);
-       //@}
 
 private:
-       FormCopyright() {}
-       FormCopyright(FormCopyright &) : DialogBase() {}
-       
-       /**@name Slot Methods */
-       //@{
-       /// Create the dialog if necessary, update it and display it.
-       void show();
-       /// Hide the dialog.
-       void hide();
-       /// Not used but we've got to implement it.
-       void update() {}
-       //@}
-
        /// Build the dialog
-       void build();
-       ///
+       virtual void build();
+       /// Pointer to the actual instantiation of the xform's form
+       virtual FL_FORM * form() const;
+       /// Fdesign generated method
        FD_form_copyright * build_copyright();
-       /// Explicitly free the dialog.
-       void free();
 
-       /**@name Private Data */
-       //@{
        /// Real GUI implementation.
        FD_form_copyright * dialog_;
-       /** Which LyXFunc do we use?
-           We could modify Dialogs to have a visible LyXFunc* instead and
-           save a couple of bytes per dialog.
-       */
-       LyXView * lv_;
-       /** Which Dialogs do we belong to?
-           Used so we can get at the signals we have to connect to.
-       */
-       Dialogs * d_;
-       /// Hide connection.
-       Connection h_;
-       //@}
 };
 
 #endif
 
-