4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS.
16 #include "ControlCommand.h"
17 #include "TocBackend.h"
24 /** A controller for TOC dialogs.
26 class ControlToc : public ControlCommand {
31 /// Goto this paragraph id
32 void goTo(TocItem const &);
34 /// Return the list of types available
35 std::vector<std::string> const & getTypes() const;
37 /// Return the guiname from a given cmdName of the TOC param
38 std::string const getGuiName(std::string const & type) const;
40 /// Return the first TocItem before the cursor
41 TocIterator const getCurrentTocItem(std::string const & type) const;
43 /// Given a type, returns the contents
44 Toc const & getContents(std::string const & type) const;
46 /// Apply the selected outlining operation
55 /// Test if outlining operation is possible
56 bool canOutline(std::string const & type);
59 } // namespace frontend
62 #endif // CONTROLTOC_H