]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormToc.h
fix crash with "save as"
[lyx.git] / src / frontends / xforms / FormToc.h
index 215b0c1a7a828236a85c2ee943f5b27755768f3c..eb8e627af38ce99454298f0f599a96ab58a4cd33 100644 (file)
@@ -1,14 +1,12 @@
-/* This file is part of
- * ====================================================== 
+// -*- C++ -*-
+/**
+ * \file xforms/FormToc.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           LyX, The Document Processor
+ * \author Angus Leeming 
  *
- *           Copyright 2000-2001 The LyX Team.
- *
- * ======================================================
- *
- * \file FormToc.h
- * \author Angus Leeming <a.leeming@ic.ac.uk>
+ * Full author contact details are available in file CREDITS
  */
 
 #ifndef FORMTOC_H
 #endif
 
 #include "FormBase.h"
-#include "buffer.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 FormCB<ControlToc, FormDB<FD_toc> > {
 public:
        ///
-       FormToc(ControlToc &);
-
+       FormToc();
 private:
        /// not needed
        virtual void apply() {}
@@ -46,11 +43,8 @@ private:
        ///
        void updateContents();
 
-       /// Fdesign generated method
-       FD_form_toc * build_toc();
-
        ///
-       Buffer::SingleList toclist_;
+       toc::Toc toc_;
 };
 
 #endif // FORMTOC_H