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"
20 #include "support/utility.hpp"
22 /** Used to insert table of contents
24 class InsetTOC : public InsetCommand, public noncopyable {
27 InsetTOC(InsetCommandParams const & p) : InsetCommand(p) {}
29 Inset * Clone() const { return new InsetTOC(params()); }
31 string getScreenLabel() const;
33 void Edit(BufferView * bv, int, int, unsigned int);
35 EDITABLE Editable() const { return IS_EDITABLE; }
37 bool display() const { return true; }
39 Inset::Code LyxCode() const;
41 int Linuxdoc(Buffer const *, std::ostream &) const;
43 int DocBook(Buffer const *, std::ostream &) const;