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(Buffer const &) const;
39 Inset::Code lyxCode() const { return Inset::FLOAT_CODE; }
41 int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
43 int docBook(Buffer const *, std::ostream &) const;
45 string const editMessage() const;
47 bool insertInsetAllowed(Inset * inset) const;
49 void insetButtonRelease(BufferView * bv, int x, int y, int button);
51 string const & type() const;
53 void placement(string const & p);
55 string const & placement() const;
64 string floatPlacement_;