]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlToc.h
Overhaul the branches code.
[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
16 #include "ControlCommand.h"
17 #include "toc.h"
18 #include <vector>
19
20 /** A controller for TOC dialogs.
21  */
22 class ControlToc : public ControlCommand {
23 public:
24         ///
25         ControlToc(Dialog &);
26
27         /// Goto this paragraph id
28         void goTo(lyx::toc::TocItem const &);
29
30         /// Return the list of types available
31         std::vector<std::string> const getTypes() const;
32
33         /// Given a type, returns the contents
34         lyx::toc::Toc const getContents(std::string const & type) const;
35 };
36
37 #endif // CONTROLTOC_H