]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QToc.h
Minipage is no more (long live the box inset)
[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
17 #include "QDialogView.h"
18 #include "toc.h"
19
20 class ControlToc;
21 class QTocDialog;
22
23 class QToc :
24         public QController<ControlToc, QView<QTocDialog> >
25 {
26 public:
27         friend class QTocDialog;
28
29         QToc(Dialog &);
30 private:
31         /// update the listview
32         void updateToc(int newdepth);
33
34         /// update the float types
35         void updateType();
36
37         /// select an entry
38         void select(std::string const & text);
39
40         /// set the depth
41         void set_depth(int depth);
42
43         virtual void apply() {}
44
45         /// update dialog
46         virtual void update_contents();
47
48         /// build dialog
49         virtual void build_dialog();
50
51         /// the toc list
52         lyx::toc::Toc toclist;
53
54         /// depth of list shown
55         int depth_;
56 };
57
58 #endif // QTOC_H