]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QToc.h
Lots and lots of little trivial bits.
[lyx.git] / src / frontends / qt2 / QToc.h
1 // -*- C++ -*-
2 /**
3  * \file QToc.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  * \author Kalle Dalheimer
9  *
10  * Full author contact details are available in file CREDITS
11  */
12
13 #ifndef QTOC_H
14 #define QTOC_H
15
16 #ifdef __GNUG__
17 #pragma interface
18 #endif
19
20 #include "Qt2Base.h"
21 #include "toc.h"
22
23 class ControlToc;
24 class QTocDialog;
25
26 class QToc :
27         public Qt2CB<ControlToc, Qt2DB<QTocDialog> >
28 {
29 public:
30         QToc();
31
32         friend class QTocDialog;
33
34 private:
35         /// update the listview
36         void updateToc(int newdepth);
37
38         /// update the float types
39         void updateType();
40
41         /// select an entry
42         void select(string const & text);
43
44         /// set the depth
45         void set_depth(int depth);
46
47         virtual void apply() {};
48
49         /// update dialog
50         virtual void update_contents();
51
52         /// build dialog
53         virtual void build_dialog();
54
55         /// the toc list
56         toc::Toc toclist;
57
58         /// depth of list shown
59         int depth_;
60 };
61
62 #endif // QTOC_H