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