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
20 #include "insetcollapsable.h"
23 #include <boost/signals/signal0.hpp>
30 class InsetFloat : public InsetCollapsable {
33 InsetFloat(BufferParams const &, string const &);
35 InsetFloat(InsetFloat const &, bool same_id = false);
39 void write(Buffer const * buf, std::ostream & os) const;
41 void read(Buffer const * buf, LyXLex & lex);
43 void validate(LaTeXFeatures & features) const;
45 Inset * clone(Buffer const &, bool same_id = false) const;
47 Inset::Code lyxCode() const { return Inset::FLOAT_CODE; }
49 int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
51 int docbook(Buffer const *, std::ostream &, bool mixcont) const;
53 string const editMessage() const;
55 bool insetAllowed(Inset::Code) const;
56 /** returns true if, when outputing LaTeX, font changes should
57 be closed before generating this inset. This is needed for
58 insets that may contain several paragraphs */
59 bool noFontChange() const { return true; }
61 string const & type() const;
63 void placement(string const & p);
65 string const & placement() const;
67 void wide(bool w, BufferParams const &);
71 void addToToc(toc::TocList &, Buffer const *) const;
73 bool showInsetDialog(BufferView *) const;
75 boost::signal0<void> hideDialog;
80 string floatPlacement_;