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
19 #include "insetcommand.h"
21 /** Used to insert table of contents
23 class InsetTOC : public InsetCommand {
26 InsetTOC(InsetCommandParams const & p, bool same_id = false)
27 : InsetCommand(p, same_id) {}
29 virtual Inset * clone(Buffer const &, bool same_id = false) const {
30 return new InsetTOC(params(), same_id);
33 string const getScreenLabel(Buffer const *) const;
35 void edit(BufferView * bv, int, int, mouse_button::state);
37 void edit(BufferView * bv, bool front = true);
39 EDITABLE editable() const { return IS_EDITABLE; }
41 bool display() const { return true; }
43 Inset::Code lyxCode() const;
45 int ascii(Buffer const *, std::ostream &, int linelen) const;
47 int linuxdoc(Buffer const *, std::ostream &) const;
49 int docbook(Buffer const *, std::ostream &, bool mixcont) const;