]> git.lyx.org Git - lyx.git/blob - src/insets/InsetFloatList.h
progress on buffer-reference-in-insets. beware of instabilities...
[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 screenLabel() const;
31         ///
32         EDITABLE editable() const { return IS_EDITABLE; }
33         ///
34         InsetCode lyxCode() const { return FLOAT_LIST_CODE; }
35         ///
36         DisplayType display() const { return AlignCenter; }
37         ///
38         void write(std::ostream &) const;
39         ///
40         void read(Lexer &);
41         ///
42         int latex(odocstream &, OutputParams const &) const;
43         ///
44         int docbook(odocstream &, OutputParams const &) const { return 0; }
45         ///
46         int plaintext(odocstream &, OutputParams const & runparams) const;
47         ///
48         void validate(LaTeXFeatures & features) const;
49         ///
50         static ParamInfo const & findInfo(std::string const &);
51         ///
52         static std::string defaultCommand() { return "listoftables"; };
53         ///
54         static bool isCompatibleCommand(std::string const & s);
55 private:
56         ///
57         virtual Inset * clone() const
58                 { return new InsetFloatList(to_ascii(getParam("type"))); }
59         ///
60         static ParamInfo param_info_;
61 };
62
63
64 } // namespace lyx
65
66 #endif