]> git.lyx.org Git - lyx.git/blob - src/insets/insetfloatlist.h
unify API for insets export
[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 /** Used to insert table of contents
19  */
20 class InsetFloatList : public InsetCommand {
21 public:
22         ///
23         InsetFloatList();
24         ///
25         InsetFloatList(std::string const & type);
26         ///
27         ~InsetFloatList();
28         ///
29         virtual std::auto_ptr<InsetBase> clone() const {
30                 return std::auto_ptr<InsetBase>(new InsetFloatList(getCmdName()));
31         }
32         ///
33         void metrics(MetricsInfo &, Dimension &) const;
34         ///
35         void draw(PainterInfo & pi, int x, int y) const;
36         ///
37         std::string const getScreenLabel(Buffer const &) const;
38         ///
39         EDITABLE editable() const { return IS_EDITABLE; }
40         ///
41         InsetOld::Code lyxCode() const;
42         ///
43         bool display() const { return true; }
44         ///
45         void write(Buffer const &, std::ostream &) const;
46         ///
47         void read(Buffer const &, LyXLex &);
48         ///
49         int latex(Buffer const &, std::ostream &,
50                   LatexRunParams const &) const;
51         ///
52         int linuxdoc(Buffer const &, std::ostream &,
53                      LatexRunParams const &) const { return 0; }
54         ///
55         int docbook(Buffer const &, std::ostream &,
56                     LatexRunParams const &) const { return 0; }
57         ///
58         int ascii(Buffer const &, std::ostream &,
59                   LatexRunParams const & runparams) const;
60         ///
61         void validate(LaTeXFeatures & features) const;
62 protected:
63         ///
64         virtual
65         DispatchResult
66         priv_dispatch(FuncRequest const & cmd, idx_type &, pos_type &);
67 };
68
69 #endif