]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QToc.h
This new citation dialog follows a new design similar to lyx-1.3:
[lyx.git] / src / frontends / qt4 / 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  * \author Abdelrazak Younes
10  *
11  * Full author contact details are available in file CREDITS.
12  */
13
14 #ifndef QTOC_H
15 #define QTOC_H
16
17 #include "QDialogView.h"
18 #include "toc.h"
19
20 namespace lyx {
21 namespace frontend {
22
23 class ControlToc;
24 class QTocDialog;
25
26 //template<class W>
27 class QToc :
28         public QController<ControlToc, QView<QTocDialog> >
29 {
30 public:
31         friend class QTocDialog;
32
33         QToc(Dialog &);
34
35         /// return the toc list
36         lyx::toc::Toc & get_toclist() { return toclist;}
37
38 private:
39
40         /// select an entry
41         void select(std::string const & text);
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
55 } // namespace frontend
56 } // namespace lyx
57
58 #endif // QTOC_H