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 InsetFloat(InsetFloat const &, bool same_id = false);
33 void write(Buffer const * buf, std::ostream & os) const;
35 void read(Buffer const * buf, LyXLex & lex);
37 void validate(LaTeXFeatures & features) const;
39 Inset * clone(Buffer const &, bool same_id = false) const;
41 Inset::Code lyxCode() const { return Inset::FLOAT_CODE; }
43 int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
45 int docBook(Buffer const *, std::ostream &) const;
47 string const editMessage() const;
49 bool insetAllowed(Inset::Code) const;
51 void insetButtonRelease(BufferView * bv, int x, int y, int button);
53 string const & type() const;
55 void placement(string const & p);
57 string const & placement() const;
66 string floatPlacement_;