2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2001 The LyX Team.
9 * ======================================================
12 * \author Angus Leeming <a.leeming@ic.ac.uk>
22 #include "ControlCommand.h"
23 #include "buffer.h" // Buffer::SingleList
25 /** A controller for TOC dialogs.
27 class ControlToc : public ControlCommand
31 ControlToc(LyXView &, Dialogs &);
33 /// Goto this paragraph id
34 void Goto(int const & id) const;
36 /// Returns a vector of list types in the document
37 std::vector<string> const getTypes() const;
39 /// Given a type, returns the contents
40 Buffer::SingleList const getContents(string const & type) const;
45 /** Given the cmdName of the TOC param, returns the type used
46 by ControlToc::getContents() */
47 string const getType(string const & cmdName);
51 #endif // CONTROLTOC_H