]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormToc.h
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / xforms / FormToc.h
index 079d5d986ea7271a0abf1bb16a9c6bf02b28e873..1064ad5aeead774d0838a71de4b019757f24a54c 100644 (file)
@@ -1,31 +1,32 @@
 // -*- C++ -*-
 /**
- * \file xforms/FormToc.h
- * Copyright 2000-2001 the LyX Team
- * Read the file COPYING
+ * \file FormToc.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Angus Leeming, a.leeming@ic.ac.uk
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef FORMTOC_H
 #define FORMTOC_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
+#include "FormDialogView.h"
+#include "toc.h"
 
-#include "FormBase.h"
-#include "buffer.h"
+namespace lyx {
+namespace frontend {
 
 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() {}
@@ -41,11 +42,11 @@ private:
        ///
        void updateContents();
 
-       /// Fdesign generated method
-       FD_form_toc * build_toc();
-
        ///
-       Buffer::SingleList toclist_;
+       toc::Toc toc_;
 };
 
+} // namespace frontend
+} // namespace lyx
+
 #endif // FORMTOC_H