]> git.lyx.org Git - lyx.git/blob - src/insets/insetfloat.h
Added copy constructor to inset.h and used it in most insets which permit
[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         InsetFloat(InsetFloat const &, bool same_id = false);
32         ///
33         void write(Buffer const * buf, std::ostream & os) const;
34         ///
35         void read(Buffer const * buf, LyXLex & lex);
36         ///
37         void validate(LaTeXFeatures & features) const;
38         ///
39         Inset * clone(Buffer const &, bool same_id = false) const;
40         ///
41         Inset::Code lyxCode() const { return Inset::FLOAT_CODE; }
42         ///
43         int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
44         ///
45         int docBook(Buffer const *, std::ostream &) const;
46         ///
47         string const editMessage() const;
48         ///
49         bool insetAllowed(Inset::Code) const;
50         ///
51         void insetButtonRelease(BufferView * bv, int x, int y, int button);
52         ///
53         string const & type() const;
54         ///
55         void placement(string const & p);
56         ///
57         string const & placement() const;
58         ///
59         void wide(bool w);
60         ///
61         bool wide() const;
62 private:
63         ///
64         string floatType_;
65         ///
66         string floatPlacement_;
67         ///
68         bool wide_;
69 };
70
71 #endif