3 * \file InsetFloatList.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
9 * Full author contact details are available in file CREDITS.
12 #ifndef INSET_FLOATLIST_H
13 #define INSET_FLOATLIST_H
16 #include "InsetCommand.h"
21 /** Used to insert table of contents
23 class InsetFloatList : public InsetCommand {
28 InsetFloatList(std::string const & type);
30 docstring const getScreenLabel(Buffer const &) const;
32 EDITABLE editable() const { return IS_EDITABLE; }
34 InsetCode lyxCode() const { return FLOAT_LIST_CODE; }
36 DisplayType display() const { return AlignCenter; }
38 void write(Buffer const &, std::ostream &) const;
40 void read(Buffer const &, Lexer &);
42 int latex(Buffer const &, odocstream &,
43 OutputParams const &) const;
45 int docbook(Buffer const &, odocstream &,
46 OutputParams const &) const { return 0; }
48 int plaintext(Buffer const &, odocstream &,
49 OutputParams const & runparams) const;
51 void validate(LaTeXFeatures & features) const;
53 static CommandInfo const * findInfo(std::string const & cmdName = "");
55 static std::string defaultCommand() { return "listoftables"; };
57 static bool isCompatibleCommand(std::string const & s);
59 virtual Inset * clone() const
61 return new InsetFloatList(to_ascii(getParam("type")));