2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Word Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1996-2001 The LyX Team.
10 * ====================================================== */
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, unsigned int);
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 &) const;