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 {
26 explicit InsetFloatList(Buffer *);
28 InsetFloatList(Buffer *, std::string const & type);
30 /// \name Public functions inherited from Inset class
33 InsetCode lyxCode() const { return FLOAT_LIST_CODE; }
35 RowFlags rowFlags() const { return Display; }
37 void write(std::ostream &) const;
41 void latex(otexstream &, OutputParams const &) const;
43 void docbook(XMLStream &, OutputParams const &) const { return; }
45 int plaintext(odocstringstream & ods, OutputParams const & op,
46 size_t max_length = INT_MAX) const;
48 docstring xhtml(XMLStream &, OutputParams const &) const;
50 void doDispatch(Cursor & cur, FuncRequest & cmd);
52 bool clickable(BufferView const &, int, int) const { return true; }
54 void validate(LaTeXFeatures & features) const;
57 /// \name Static public methods obligated for InsetCommand derived classes
60 static ParamInfo const & findInfo(std::string const &);
62 static std::string defaultCommand() { return "listoftables"; }
64 static bool isCompatibleCommand(std::string const & s);
68 /// \name Private functions inherited from Inset class
71 Inset * clone() const { return new InsetFloatList(*this); }
73 docstring layoutName() const;
76 /// \name Private functions inherited from InsetCommand class
79 docstring screenLabel() const;