3 * See the file COPYING.
5 * \author Angus Leeming
7 * Full author contact details are available in file CREDITS
13 #pragma implementation
16 #include "ControlToc.h"
19 #include "support/lstrings.h" // tostr
25 ControlToc::ControlToc(LyXView & lv, Dialogs & d)
26 : ControlCommand(lv, d, LFUN_TOC_INSERT)
30 void ControlToc::goTo(toc::TocItem const & item) const
36 vector<string> const ControlToc::getTypes() const
38 return toc::getTypes(buffer());
42 toc::Toc const ControlToc::getContents(string const & type) const
46 // This shouldn't be possible...
47 if (!bufferIsAvailable()) {
51 toc::TocList tmp = toc::getTocList(buffer());
52 toc::TocList::iterator it = tmp.find(type);
53 if (it == tmp.end()) {