]> git.lyx.org Git - lyx.git/blob - src/insets/insetfloatlist.h
The speed patch: redraw only rows that have changed
[lyx.git] / src / insets / insetfloatlist.h
1 // -*- C++ -*-
2 /**
3  * \file insetfloatlist.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Lars Gullik Bjønnes
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef INSET_FLOATLIST_H
13 #define INSET_FLOATLIST_H
14
15
16 #include "insetcommand.h"
17
18 /** Used to insert table of contents
19  */
20 class InsetFloatList : public InsetCommand {
21 public:
22         ///
23         InsetFloatList();
24         ///
25         InsetFloatList(std::string const & type);
26         ///
27         std::string const getScreenLabel(Buffer const &) const;
28         ///
29         EDITABLE editable() const { return IS_EDITABLE; }
30         ///
31         InsetBase::Code lyxCode() const;
32         ///
33         bool display() const { return true; }
34         ///
35         void write(Buffer const &, std::ostream &) const;
36         ///
37         void read(Buffer const &, LyXLex &);
38         ///
39         int latex(Buffer const &, std::ostream &,
40                   OutputParams const &) const;
41         ///
42         int linuxdoc(Buffer const &, std::ostream &,
43                      OutputParams const &) const { return 0; }
44         ///
45         int docbook(Buffer const &, std::ostream &,
46                     OutputParams const &) const { return 0; }
47         ///
48         int plaintext(Buffer const &, std::ostream &,
49                   OutputParams const & runparams) const;
50         ///
51         void validate(LaTeXFeatures & features) const;
52 private:
53         virtual std::auto_ptr<InsetBase> doClone() const
54         {
55                 return std::auto_ptr<InsetBase>(new InsetFloatList(getCmdName()));
56         }
57 };
58
59 #endif