3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Angus Leeming
8 * Full author contact details are available in file CREDITS
14 #include "ControlToc.h"
17 #include "support/lstrings.h" // tostr
24 ControlToc::ControlToc(LyXView & lv, Dialogs & d)
25 : ControlCommand(lv, d, LFUN_TOC_INSERT)
29 void ControlToc::goTo(toc::TocItem const & item) const
35 vector<string> const ControlToc::getTypes() const
37 return toc::getTypes(buffer());
41 toc::Toc const ControlToc::getContents(string const & type) const
45 // This shouldn't be possible...
46 if (!bufferIsAvailable()) {
50 toc::TocList tmp = toc::getTocList(buffer());
51 toc::TocList::iterator it = tmp.find(type);
52 if (it == tmp.end()) {