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 {
34 void Write(Buffer const * buf, std::ostream & os) const;
36 void Read(Buffer const * buf, LyXLex & lex);
38 void Validate(LaTeXFeatures & features) const;
40 Inset * Clone() const;
42 Inset::Code LyxCode() const { return Inset::FLOAT_CODE; }
44 int Latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
46 const char * EditMessage() const;
48 bool InsertInset(BufferView *, Inset * inset);
50 bool InsertInsetAllowed(Inset * inset) const;
52 // LyXFont GetDrawFont(BufferView *, LyXParagraph * par, int pos) const;
54 void InsetButtonRelease(BufferView * bv, int x, int y, int button);
59 string floatPlacement;