]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QToc.h
Add outlining functionality to the Qt4 TOC dialog.
[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         void moveUp();
39         void moveDown();
40         void moveIn();
41         void moveOut();
42
43 private:
44
45         /// select an entry
46         void select(std::string const & text);
47
48         virtual void apply() {}
49
50         /// update dialog
51         virtual void update_contents();
52
53         /// build dialog
54         virtual void build_dialog();
55
56         /// the toc list
57         lyx::toc::Toc toclist;
58 };
59
60 } // namespace frontend
61 } // namespace lyx
62
63 #endif // QTOC_H