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) : InsetCommand(p) {}
28 virtual Inset * clone(Buffer const &) const {
29 return new InsetTOC(params());
32 string const getScreenLabel() const;
34 void edit(BufferView * bv, int, int, unsigned int);
36 EDITABLE editable() const { return IS_EDITABLE; }
38 bool display() const { return true; }
40 Inset::Code lyxCode() const;
42 int ascii(Buffer const *, std::ostream &, int linelen) const;
44 int linuxdoc(Buffer const *, std::ostream &) const;
46 int DocBook(Buffer const *, std::ostream &) const;