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 &);
25 //InsetTOC(InsetCommandParams const &, bool same_id);
29 virtual Inset * clone(Buffer const &) const {
30 return new InsetTOC(params());
33 //virtual Inset * clone(Buffer const &, bool same_id) const {
34 // return new InsetTOC(params(), same_id);
37 dispatch_result localDispatch(FuncRequest const & cmd);
39 string const getScreenLabel(Buffer const *) const;
41 EDITABLE editable() const { return IS_EDITABLE; }
43 bool display() const { return true; }
45 Inset::Code lyxCode() const;
47 int ascii(Buffer const *, std::ostream &, int linelen) const;
49 int linuxdoc(Buffer const *, std::ostream &) const;
51 int docbook(Buffer const *, std::ostream &, bool mixcont) const;