2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Word Processor
7 * Copyright (C) 1995 Matthias Ettrich
8 * 1996-1998 The LyX Team.
10 *======================================================*/
19 #include "insetcommand.h"
22 // Created by Lgb 970527
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() { return new InsetTOC(owner); }
35 string getScreenLabel() const { return _("Table of Contents"); }
36 /// On edit, we open the TOC pop-up
39 unsigned char Editable() const {
43 bool Display() const { return true; }
45 Inset::Code LyxCode() const { return Inset::TOC_CODE; }
47 int Linuxdoc(string &file);
49 int DocBook(string &file);