1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 2001 The LyX Team.
8 * ======================================================
11 * \author Angus Leeming <a.leeming@ic.ac.uk>
21 #include "ControlCommand.h"
22 #include "buffer.h" // Buffer::SingleList
24 /** A controller for TOC dialogs.
26 class ControlToc : public ControlCommand
30 ControlToc(LyXView &, Dialogs &);
32 /// Goto this paragraph id
33 void Goto(int const & id) const;
35 /// Returns a vector of list types in the document
36 std::vector<string> const getTypes() const;
38 /// Given a type, returns the contents
39 Buffer::SingleList const getContents(string const & type) const;
44 /** Given the cmdName of the TOC param, returns the type used
45 by ControlToc::getContents() */
46 string getType(string const & cmdName);
50 #endif // CONTROLTOC_H