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