]> git.lyx.org Git - lyx.git/blob - src/Toc.h
Avoid full metrics computation with Update:FitCursor
[lyx.git] / src / Toc.h
1 // -*- C++ -*-
2 /**
3  * \file Toc.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Jean-Marc Lasgouttes
8  * \author Angus Leeming
9  * \author Abdelrazak Younes
10  * \author Guillaume Munch
11  *
12  * Full author contact details are available in file CREDITS.
13  */
14
15 #ifndef TOC_H
16 #define TOC_H
17
18 #include <map>
19 #include <memory>
20 #include <vector>
21 #include <string>
22
23
24 namespace lyx {
25
26 // TocItem is defined in TocBackend.h
27 class TocItem;
28
29 typedef std::vector<TocItem> Toc;
30
31 class TocList : public std::map<std::string, std::shared_ptr<Toc>>
32 {
33 private:
34         // TocList should never map to null pointers.
35         // We hide the following methods which create null pointers.
36         using std::map<std::string, std::shared_ptr<Toc>>::operator[];
37 };
38
39
40 } // namespace lyx
41
42 #endif // TOC_H