2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1998 The LyX Team.
9 * ======================================================
19 #include "insetcollapsable.h"
21 #include <boost/signals/signal0.hpp>
28 class InsetFloat : public InsetCollapsable {
31 InsetFloat(BufferParams const &, string const &);
33 InsetFloat(InsetFloat const &, bool same_id = false);
37 void write(Buffer const * buf, std::ostream & os) const;
39 void read(Buffer const * buf, LyXLex & lex);
41 void validate(LaTeXFeatures & features) const;
43 Inset * clone(Buffer const &, bool same_id = false) const;
45 Inset::Code lyxCode() const { return Inset::FLOAT_CODE; }
47 int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
49 int docbook(Buffer const *, std::ostream &, bool mixcont) const;
51 string const editMessage() const;
53 bool insetAllowed(Inset::Code) const;
55 string const & type() const;
57 void placement(string const & p);
59 string const & placement() const;
65 bool showInsetDialog(BufferView *) const;
67 boost::signal0<void> hideDialog;
72 string floatPlacement_;