]> git.lyx.org Git - lyx.git/blob - src/insets/insetlot.h
Various warnings fixed, added preliminary read of old table format and
[lyx.git] / src / insets / insetlot.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 LyX Team
9  * 
10  * ====================================================== */
11
12 #ifndef INSET_LOT_H
13 #define INSET_LOT_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "insetcommand.h"
20 #include "gettext.h"
21
22 // Created by Lgb 970527
23
24 class Buffer;
25
26 /** Used to insert table of contents
27  */
28 class InsetLOT : public InsetCommand {
29 public:
30         ///
31         InsetLOT() : InsetCommand("listoftables") {}
32         ///
33         explicit
34         InsetLOT(Buffer * b) : InsetCommand("listoftables"), owner(b) {}
35         ///
36         Inset * Clone() const { return new InsetLOT(owner); }
37         ///
38         string getScreenLabel() const;
39         
40         ///
41         EDITABLE Editable() const {
42                 return NOT_EDITABLE; // not yet
43         }
44         ///
45         bool display() const { return true; }
46         ///
47         Inset::Code LyxCode() const { return Inset::LOT_CODE; }
48 private:
49         ///
50         Buffer * owner;
51 };
52
53 #endif