2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1996-2000 the LyX Team.
10 * ====================================================== */
15 #include "insetcommand.h"
17 // Created by Lgb 970527
25 /** Used to insert table of contents
27 class InsetLOF : public InsetCommand {
30 InsetLOF() : InsetCommand("listoffigures") {}
33 InsetLOF(Buffer * b) : InsetCommand("listoffigures"), owner(b) {}
35 Inset * Clone() const { return new InsetLOF(owner); }
37 string getScreenLabel() const;
39 void Edit(BufferView * bv, int, int, unsigned int);
41 EDITABLE Editable() const {
42 return IS_EDITABLE; // Finally!
45 bool display() const { return true; }
47 Inset::Code LyxCode() const { return Inset::LOF_CODE; }