]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormToc.h
Introduce LFUN_PRINT.
[lyx.git] / src / frontends / xforms / FormToc.h
index 1e5bfeb1fc292de370dda6d6f6dca11ac4cdf67e..7e55c9e2ab96d43ea86c24712461f71cfd6aac1a 100644 (file)
@@ -1,36 +1,30 @@
 // -*- C++ -*-
-/* This file is part of
- * ====================================================== 
- *
- *           LyX, The Document Processor
- *
- *           Copyright 2000-2001 The LyX Team.
+/**
+ * \file FormToc.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * ======================================================
+ * \author Angus Leeming
  *
- * \file FormToc.h
- * \author Angus Leeming <a.leeming@ic.ac.uk>
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef FORMTOC_H
 #define FORMTOC_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
-#include "FormBase.h"
-#include "buffer.h"
+#include "FormDialogView.h"
+#include "toc.h"
 
 class ControlToc;
-struct FD_form_toc;
+struct FD_toc;
 
 /** This class provides an XForms implementation of the FormToc Dialog.
  */
-class FormToc : public FormCB<ControlToc, FormDB<FD_form_toc> > {
+class FormToc : public FormController<ControlToc, FormView<FD_toc> > {
 public:
        ///
-       FormToc(ControlToc &);
+       FormToc(Dialog &);
 private:
        /// not needed
        virtual void apply() {}
@@ -46,11 +40,8 @@ private:
        ///
        void updateContents();
 
-       /// Fdesign generated method
-       FD_form_toc * build_toc();
-
        ///
-       Buffer::SingleList toclist_;
+       lyx::toc::Toc toc_;
 };
 
 #endif // FORMTOC_H