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") {}
31 InsetTOC(Buffer * b) : InsetCommand("tableofcontents"), owner(b) {}
33 Inset * Clone() const { return new InsetTOC(owner); }
35 string getScreenLabel() const { return _("Table of Contents"); }
36 /// On edit, we open the TOC pop-up
37 void Edit(BufferView * bv, int, int, unsigned int);
39 EDITABLE Editable() const {
43 bool display() const { return true; }
45 Inset::Code LyxCode() const { return Inset::TOC_CODE; }
47 int Linuxdoc(ostream &) const;
49 int DocBook(ostream &) const;