4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
8 * \author Lars Gullik Bjønnes
10 * Full author contact details are available in file CREDITS
17 #include "insetcollapsable.h"
20 #include <boost/signals/signal0.hpp>
27 class InsetFloat : public InsetCollapsable {
30 InsetFloat(BufferParams const &, string const &);
32 InsetFloat(InsetFloat const &, bool same_id = false);
36 void write(Buffer const * buf, std::ostream & os) const;
38 void read(Buffer const * buf, LyXLex & lex);
40 void validate(LaTeXFeatures & features) const;
42 Inset * clone(Buffer const &, bool same_id = false) const;
44 Inset::Code lyxCode() const { return Inset::FLOAT_CODE; }
46 int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
48 int docbook(Buffer const *, std::ostream &, bool mixcont) const;
50 string const editMessage() const;
52 bool insetAllowed(Inset::Code) const;
53 /** returns true if, when outputing LaTeX, font changes should
54 be closed before generating this inset. This is needed for
55 insets that may contain several paragraphs */
56 bool noFontChange() const { return true; }
58 string const & type() const;
60 void placement(string const & p);
62 string const & placement() const;
64 void wide(bool w, BufferParams const &);
68 void addToToc(toc::TocList &, Buffer const *) const;
70 bool showInsetDialog(BufferView *) const;
72 boost::signal0<void> hideDialog;
77 string floatPlacement_;