4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
9 * Full author contact details are available in file CREDITS
16 #include "insetcommand.h"
18 /** Used to insert table of contents
20 class InsetTOC : public InsetCommand {
23 InsetTOC(InsetCommandParams const &);
27 virtual Inset * clone() const {
28 return new InsetTOC(params());
31 dispatch_result localDispatch(FuncRequest const & cmd);
33 string const getScreenLabel(Buffer const *) const;
35 EDITABLE editable() const { return IS_EDITABLE; }
37 bool display() const { return true; }
39 Inset::Code lyxCode() const;
41 int ascii(Buffer const *, std::ostream &, int linelen) const;
43 int linuxdoc(Buffer const *, std::ostream &) const;
45 int docbook(Buffer const *, std::ostream &, bool mixcont) const;