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