]> git.lyx.org Git - lyx.git/blob - src/insets/insetlof.h
Fix small bug in reading \set_color in lyxrc
[lyx.git] / src / insets / insetlof.h
1 // -*- C++ -*-
2 /* This file is part of*
3  * ======================================================
4  *
5  *           LyX, The Document Processor
6  *       
7  *           Copyright 1995 Matthias Ettrich
8  *           Copyright 1996-2000 the LyX Team.
9  * 
10  * ====================================================== */
11
12 #ifndef INSET_LOF_H
13 #define INSET_LOF_H
14
15 #include "insetcommand.h"
16
17 // Created by Lgb 970527
18
19 #ifdef __GNUG__
20 #pragma interface
21 #endif
22
23 class Buffer; 
24
25 /** Used to insert table of contents
26  */
27 class InsetLOF : public InsetCommand {
28 public:
29         ///
30         InsetLOF() : InsetCommand("listoffigures") {}
31         ///
32         explicit
33         InsetLOF(Buffer * b) : InsetCommand("listoffigures"), owner(b) {}
34         ///
35         Inset * Clone() const { return new InsetLOF(owner); }
36         ///
37         string getScreenLabel() const;
38         ///
39         void Edit(BufferView * bv, int, int, unsigned int);
40         ///
41         EDITABLE Editable() const {
42                 return IS_EDITABLE; // Finally!
43         }
44         ///
45         bool display() const { return true; }
46         ///
47         Inset::Code LyxCode() const { return Inset::LOF_CODE; }
48 private:
49         ///
50         Buffer * owner;
51 };
52 #endif