]> git.lyx.org Git - lyx.git/blob - src/insets/insetfloat.h
reformatting and remove using delc
[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         int DocBook(Buffer const *, std::ostream &) const;
44         ///
45         string const EditMessage() const;
46         ///
47         bool InsertInsetAllowed(Inset * inset) const;
48         ///
49         void InsetButtonRelease(BufferView * bv, int x, int y, int button);
50         ///
51         string const & type() const;
52         ///
53         void placement(string const & p);
54         ///
55         string const & placement() const;
56         ///
57         void wide(bool w);
58         ///
59         bool wide() const;
60 private:
61         ///
62         string floatType_;
63         ///
64         string floatPlacement_;
65         ///
66         bool wide_;
67 };
68
69 #endif