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"
24 /** Used to insert table of contents
26 class InsetTOC : public InsetCommand {
29 InsetTOC() : InsetCommand("tableofcontents") {}
32 InsetTOC(Buffer * b) : InsetCommand("tableofcontents"), owner(b) {}
34 Inset * Clone() const { return new InsetTOC(owner); }
36 string getScreenLabel() const;
37 /// On edit, we open the TOC pop-up
38 void Edit(BufferView * bv, int, int, unsigned int);
40 EDITABLE Editable() const {
44 bool display() const { return true; }
46 Inset::Code LyxCode() const { return Inset::TOC_CODE; }
48 int Linuxdoc(std::ostream &) const;
50 int DocBook(std::ostream &) const;