]> git.lyx.org Git - lyx.git/blob - src/insets/InsetFloatList.h
Restore XHTML output for InsetListings.
[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(Buffer *);
27         ///
28         InsetFloatList(Buffer *, std::string const & type);
29         ///
30         docstring screenLabel() const;
31         ///
32         InsetCode lyxCode() const { return FLOAT_LIST_CODE; }
33         ///
34         DisplayType display() const { return AlignCenter; }
35         ///
36         void write(std::ostream &) const;
37         ///
38         void read(Lexer &);
39         ///
40         int latex(odocstream &, OutputParams const &) const;
41         ///
42         int docbook(odocstream &, OutputParams const &) const { return 0; }
43         ///
44         int plaintext(odocstream &, OutputParams const & runparams) const;
45         ///
46         void validate(LaTeXFeatures & features) const;
47         ///
48         static ParamInfo const & findInfo(std::string const &);
49         ///
50         static std::string defaultCommand() { return "listoftables"; };
51         ///
52         static bool isCompatibleCommand(std::string const & s);
53 private:
54         ///
55         Inset * clone() const { return new InsetFloatList(*this); }
56         ///
57         static ParamInfo param_info_;
58 };
59
60
61 } // namespace lyx
62
63 #endif