]> git.lyx.org Git - lyx.git/blob - src/insets/insetfloatlist.h
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[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
19 namespace lyx {
20
21 /** Used to insert table of contents
22  */
23 class InsetFloatList : public InsetCommand {
24 public:
25         ///
26         InsetFloatList();
27         ///
28         InsetFloatList(std::string const & type);
29         ///
30         docstring const getScreenLabel(Buffer const &) const;
31         ///
32         EDITABLE editable() const { return IS_EDITABLE; }
33         ///
34         InsetBase::Code lyxCode() const;
35         ///
36         bool display() const { return true; }
37         ///
38         void write(Buffer const &, std::ostream &) const;
39         ///
40         void read(Buffer const &, LyXLex &);
41         ///
42         int latex(Buffer const &, odocstream &,
43                   OutputParams const &) const;
44         ///
45         int docbook(Buffer const &, odocstream &,
46                     OutputParams const &) const { return 0; }
47         ///
48         int plaintext(Buffer const &, odocstream &,
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(to_ascii(getParam("type"))));
56         }
57 };
58
59
60 } // namespace lyx
61
62 #endif