]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QToc.h
No longer pass Controller & or Dialogs & to the View c-tors.
[lyx.git] / src / frontends / qt2 / QToc.h
1 // -*- C++ -*-
2 /**
3  * \file QToc.h
4  * Copyright 2001 the LyX Team
5  * Read the file COPYING
6  *
7  * \author John Levon
8  * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
9  */
10
11 #ifndef QTOC_H
12 #define QTOC_H
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "ControlToc.h"
19 #include "toc.h"
20
21 #include "Qt2Base.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