2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Word Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1996-2000 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 Inset * Clone() const { return new InsetTOC(params()); }
30 string getScreenLabel() const;
32 void Edit(BufferView * bv, int, int, unsigned int);
34 EDITABLE Editable() const { return IS_EDITABLE; }
36 bool display() const { return true; }
38 Inset::Code LyxCode() const;
40 int Linuxdoc(Buffer const *, std::ostream &) const;
42 int DocBook(Buffer const *, std::ostream &) const;