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