]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/QToc.h
Some string(widget->text()) fixes. Weirdness
[lyx.git] / src / frontends / qt2 / QToc.h
index dda236452fb573313e8e28d412d4d32c6e3ba117..d3a8caf5f612b9f488b92cf7ac0c1c82d602abeb 100644 (file)
@@ -1,11 +1,13 @@
 // -*- C++ -*-
 /**
  * \file QToc.h
- * Copyright 2001 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author John Levon
- * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se> 
+ * \author Kalle Dalheimer
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #ifndef QTOC_H
 #endif
 
 #include "Qt2Base.h"
+#include "toc.h"
 
-#include "ControlToc.h"
 class ControlToc;
 class QTocDialog;
 
-class QToc : 
-       public Qt2CB<ControlToc, Qt2DB<QTocDialog> > 
+class QToc :
+       public Qt2CB<ControlToc, Qt2DB<QTocDialog> >
 {
 public:
-       QToc(ControlToc &);
-
        friend class QTocDialog;
+
+       QToc();
 private:
        /// update the listview
        void updateToc(int newdepth);
@@ -39,20 +39,20 @@ private:
 
        /// select an entry
        void select(string const & text);
+
        /// set the depth
        void set_depth(int depth);
-       virtual void apply() {};
-       /// update dialog 
+
+       virtual void apply() {}
+
+       /// update dialog
        virtual void update_contents();
 
        /// build dialog
        virtual void build_dialog();
 
        /// the toc list
-       Buffer::SingleList toclist;
+       toc::Toc toclist;
 
        /// depth of list shown
        int depth_;