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"
20 #include "lyxlength.h"
22 #include <boost/signals/signal0.hpp>
29 class InsetWrap : public InsetCollapsable {
32 InsetWrap(BufferParams const &, string const &);
34 InsetWrap(InsetWrap const &, bool same_id = false);
38 void write(Buffer const * buf, std::ostream & os) const;
40 void read(Buffer const * buf, LyXLex & lex);
42 void validate(LaTeXFeatures & features) const;
44 Inset * clone(Buffer const &, bool same_id = false) const;
46 Inset::Code lyxCode() const { return Inset::WRAP_CODE; }
48 int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
50 int docbook(Buffer const *, std::ostream &, bool mixcont) const;
52 string const editMessage() const;
54 bool insetAllowed(Inset::Code) const;
56 int getMaxWidth(BufferView *, UpdatableInset const *) const;
58 string const & type() const;
60 LyXLength const & pageWidth() const;
62 void pageWidth(LyXLength const &);
64 void placement(string const & p);
66 string const & placement() const;
68 void addToToc(toc::TocList &, Buffer const *) const;
70 bool showInsetDialog(BufferView *) const;
72 boost::signal0<void> hideDialog;
74 int latexTextWidth(BufferView *) const;