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"
18 /** Used to insert table of contents
20 class InsetFloatList : public InsetCommand {
25 InsetFloatList(std::string const & type);
29 virtual std::auto_ptr<InsetBase> clone() const {
30 return std::auto_ptr<InsetBase>(new InsetFloatList(getCmdName()));
33 void metrics(MetricsInfo &, Dimension &) const;
35 void draw(PainterInfo & pi, int x, int y) const;
37 dispatch_result localDispatch(FuncRequest const & cmd);
39 std::string const getScreenLabel(Buffer const &) const;
41 EDITABLE editable() const { return IS_EDITABLE; }
43 InsetOld::Code lyxCode() const;
45 void write(Buffer const &, std::ostream &) const;
47 void read(Buffer const &, LyXLex &);
49 int latex(Buffer const &, std::ostream &,
50 LatexRunParams const &) const;
52 int linuxdoc(Buffer const &, std::ostream &) const { return 0; }
54 int docbook(Buffer const &, std::ostream &, bool) const { return 0; }
56 int ascii(Buffer const &, std::ostream &, int linelen) const;
58 void validate(LaTeXFeatures & features) const;