]> git.lyx.org Git - lyx.git/blob - src/insets/insetfloatlist.h
Fixed crash when inserting mathed inset inside InsetERT + new devel banner.
[lyx.git] / src / insets / insetfloatlist.h
1 // -*- C++ -*-
2 /* This file is part of*
3  * ======================================================
4  *
5  *           LyX, The Document Word Processor
6  *       
7  *           Copyright 1995 Matthias Ettrich
8  *           Copyright 1996-2001 The LyX Team.
9  * 
10  * ====================================================== */
11
12 #ifndef INSET_FLOATLIST_H
13 #define INSET_FLOATLIST_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "insetbutton.h"
20
21 /** Used to insert table of contents
22  */
23 class InsetFloatList : public InsetButton {
24 public:
25         ///
26         InsetFloatList() {}
27         ///
28         InsetFloatList(string const & type) 
29                 : float_type(type) {}
30         ///
31         Inset * clone(Buffer const &, bool = false) const {
32                 return new InsetFloatList(*this);
33         }
34         ///
35         string const getScreenLabel() const;
36         ///
37         void edit(BufferView * bv, int, int, unsigned int);
38         ///
39         EDITABLE editable() const { return IS_EDITABLE; }
40         ///
41         bool display() const { return true; }
42         ///
43         Inset::Code lyxCode() const;
44         ///
45         void write(Buffer const *, std::ostream &) const;
46         ///
47         void read(Buffer const *, LyXLex &);
48         ///
49         int latex(Buffer const *, std::ostream &, bool, bool) const;
50         ///
51         int linuxdoc(Buffer const *, std::ostream &) const { return 0; }
52         ///
53         int docBook(Buffer const *, std::ostream &) const { return 0; }
54         ///
55         int ascii(Buffer const *, std::ostream &, int linelen) const;
56 private:
57         string float_type;
58 };
59
60 #endif