]> git.lyx.org Git - lyx.git/blob - src/insets/insetfloat.h
prepare for 1.1.6pre2
[lyx.git] / src / insets / insetfloat.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  * 
5  *           LyX, The Document Processor
6  *
7  *           Copyright 1998 The LyX Team.
8  *
9  * ======================================================
10  */
11
12 #ifndef InsetFloat_H
13 #define InsetFloat_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "insetcollapsable.h"
20
21 class Painter;
22
23 /** The float inset
24   
25 */
26 class InsetFloat : public InsetCollapsable {
27 public:
28         ///
29         InsetFloat(string const &);
30         ///
31         void Write(Buffer const * buf, std::ostream & os) const;
32         ///
33         void Read(Buffer const * buf, LyXLex & lex);
34         ///
35         void Validate(LaTeXFeatures & features) const;
36         ///
37         Inset * Clone(Buffer const &) const;
38         ///
39         Inset::Code LyxCode() const { return Inset::FLOAT_CODE; }
40         ///
41         int Latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
42         ///
43         string const EditMessage() const;
44         ///
45         bool InsertInsetAllowed(Inset * inset) const;
46         ///
47         void InsetButtonRelease(BufferView * bv, int x, int y, int button);
48         ///
49         string const & type() const;
50         ///
51         void wide(bool w);
52         ///
53         bool wide() const;
54 private:
55         ///
56         string floatType;
57         ///
58         string floatPlacement;
59         ///
60         bool wide_;
61 };
62
63 #endif