]> git.lyx.org Git - lyx.git/blob - src/insets/insetfloatlist.h
Enable convertDefault.sh to run even if its executable bit is not set.
[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(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         dispatch_result localDispatch(FuncRequest const & cmd);
38         ///
39         string const getScreenLabel(Buffer const &) const;
40         ///
41         EDITABLE editable() const { return IS_EDITABLE; }
42         ///
43         InsetOld::Code lyxCode() const;
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 &) const { return 0; }
53         ///
54         int docbook(Buffer const &, std::ostream &, bool) const { return 0; }
55         ///
56         int ascii(Buffer const &, std::ostream &, int linelen) const;
57         ///
58         void validate(LaTeXFeatures & features) const;
59 private:
60         ///
61         mutable unsigned int center_indent_;
62 };
63
64 #endif