3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS
18 #include "insetcollapsable.h"
19 #include "lyxlength.h"
21 #include <boost/signals/signal0.hpp>
28 class InsetWrap : public InsetCollapsable {
31 InsetWrap(BufferParams const &, string const &);
33 InsetWrap(InsetWrap 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::WRAP_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 int getMaxWidth(BufferView *, UpdatableInset const *) const;
57 string const & type() const;
59 LyXLength const & pageWidth() const;
61 void pageWidth(LyXLength const &);
63 void placement(string const & p);
65 string const & placement() const;
67 bool showInsetDialog(BufferView *) const;
69 boost::signal0<void> hideDialog;
71 int latexTextWidth(BufferView *) const;