]> git.lyx.org Git - lyx.git/blob - src/insets/insetlof.h
Some more changes for updating text-insets.
[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 #include "gettext.h"
17
18 // Created by Lgb 970527
19
20 #ifdef __GNUG__
21 #pragma interface
22 #endif
23
24 class Buffer; 
25
26 /** Used to insert table of contents
27  */
28 class InsetLOF : public InsetCommand {
29 public:
30         ///
31         InsetLOF() : InsetCommand("listoffigures") {}
32         ///
33         explicit
34         InsetLOF(Buffer * b) : InsetCommand("listoffigures"), owner(b) {}
35         ///
36         Inset * Clone() const { return new InsetLOF(owner); }
37         ///
38         string getScreenLabel() const;
39         ///
40         void Edit(BufferView * bv, int, int, unsigned int);
41         ///
42         EDITABLE Editable() const {
43                 return IS_EDITABLE; // Finally!
44         }
45         ///
46         bool display() const { return true; }
47         ///
48         Inset::Code LyxCode() const { return Inset::LOF_CODE; }
49 private:
50         ///
51         Buffer * owner;
52 };
53 #endif