]> git.lyx.org Git - lyx.git/blob - src/insets/insetfloat.h
*duck*
[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 #include <boost/signals/signal0.hpp>
22
23 class Painter;
24
25 /** The float inset
26
27 */
28 class InsetFloat : public InsetCollapsable {
29 public:
30         ///
31         InsetFloat(BufferParams const &, string const &);
32         ///
33         InsetFloat(InsetFloat const &, bool same_id = false);
34         ///
35         ~InsetFloat();
36         ///
37         void write(Buffer const * buf, std::ostream & os) const;
38         ///
39         void read(Buffer const * buf, LyXLex & lex);
40         ///
41         void validate(LaTeXFeatures & features) const;
42         ///
43         Inset * clone(Buffer const &, bool same_id = false) const;
44         ///
45         Inset::Code lyxCode() const { return Inset::FLOAT_CODE; }
46         ///
47         int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
48         ///
49         int docbook(Buffer const *, std::ostream &, bool mixcont) const;
50         ///
51         string const editMessage() const;
52         ///
53         bool insetAllowed(Inset::Code) const;
54         ///
55         string const & type() const;
56         ///
57         void placement(string const & p);
58         ///
59         string const & placement() const;
60         ///
61         void wide(bool w);
62         ///
63         bool wide() const;
64         ///
65         bool  showInsetDialog(BufferView *) const;
66         ///
67         boost::signal0<void> hideDialog;
68 private:
69         ///
70         string floatType_;
71         ///
72         string floatPlacement_;
73         ///
74         bool wide_;
75 };
76
77 #endif