2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1998 The LyX Team.
9 * ======================================================
19 #include "insetcollapsable.h"
20 #include <sigc++/signal_system.h>
27 class InsetFloat : public InsetCollapsable {
30 InsetFloat(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 &) const;
50 string const editMessage() const;
52 bool insetAllowed(Inset::Code) const;
54 void insetButtonRelease(BufferView * bv, int x, int y, int button);
56 string const & type() const;
58 void placement(string const & p);
60 string const & placement() const;
66 bool showInsetDialog(BufferView *) const;
68 SigC::Signal0<void> hideDialog;
73 string floatPlacement_;