2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1998 The LyX Team.
9 * ======================================================
19 #include "insetcollapsable.h"
26 class InsetFloat : public InsetCollapsable {
29 InsetFloat(string const &);
31 void Write(Buffer const * buf, std::ostream & os) const;
33 void Read(Buffer const * buf, LyXLex & lex);
35 void Validate(LaTeXFeatures & features) const;
37 Inset * Clone() const;
39 Inset::Code LyxCode() const { return Inset::FLOAT_CODE; }
41 int Latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
43 string const EditMessage() const;
45 bool InsertInsetAllowed(Inset * inset) const;
47 void InsetButtonRelease(BufferView * bv, int x, int y, int button);
49 string const & type() const;
58 string floatPlacement;