]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlToc.h
Really dull and boring header shit
[lyx.git] / src / frontends / controllers / ControlToc.h
1 // -*- C++ -*-
2 /**
3  * \file ControlToc.h
4  * See the file COPYING.
5  *
6  * \author Angus Leeming
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #ifndef CONTROLTOC_H
12 #define CONTROLTOC_H
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include <vector>
19 #include "ControlCommand.h"
20 #include "toc.h"
21
22 /** A controller for TOC dialogs.
23  */
24 class ControlToc : public ControlCommand
25 {
26 public:
27         ///
28         ControlToc(LyXView &, Dialogs &);
29
30         /// Goto this paragraph id
31         void goTo(toc::TocItem const &) const;
32
33         /// Return the list of types available
34         std::vector<string> const getTypes() const;
35
36         /// Given a type, returns the contents
37         toc::Toc const getContents(string const & type) const;
38 };
39
40 #endif // CONTROLTOC_H