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.
15 #include "InsetCommand.h"
21 /// Used to insert table of contents and similar lists
22 class InsetTOC : public InsetCommand {
25 InsetTOC(Buffer * buf, InsetCommandParams const &);
27 docstring screenLabel() const;
29 InsetCode lyxCode() const { return TOC_CODE; }
31 DisplayType display() const { return AlignCenter; }
33 int plaintext(odocstream &, OutputParams const &) const;
35 int docbook(odocstream &, OutputParams const &) const;
37 docstring xhtml(XHTMLStream & xs, OutputParams const &) const;
39 static ParamInfo const & findInfo(std::string const &);
41 static std::string defaultCommand() { return "tableofcontents"; }
43 static bool isCompatibleCommand(std::string const & cmd)
44 { return cmd == defaultCommand(); }
46 Inset * clone() const { return new InsetTOC(*this); }