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
15 #include "insetcollapsable.h"
17 #include "lyxlength.h"
19 #include <boost/signals/signal0.hpp>
26 class InsetWrap : public InsetCollapsable {
29 InsetWrap(BufferParams const &, string const &);
31 InsetWrap(InsetWrap const &, bool same_id = false);
35 void write(Buffer const * buf, std::ostream & os) const;
37 void read(Buffer const * buf, LyXLex & lex);
39 void validate(LaTeXFeatures & features) const;
41 Inset * clone(Buffer const &, bool same_id = false) const;
43 Inset::Code lyxCode() const { return Inset::WRAP_CODE; }
45 int latex(Buffer const *, std::ostream &, bool fragile, bool fp) const;
47 int docbook(Buffer const *, std::ostream &, bool mixcont) const;
49 string const editMessage() const;
51 bool insetAllowed(Inset::Code) const;
53 int getMaxWidth(BufferView *, UpdatableInset const *) const;
55 string const & type() const;
57 LyXLength const & pageWidth() const;
59 void pageWidth(LyXLength const &);
61 void placement(string const & p);
63 string const & placement() const;
65 void addToToc(toc::TocList &, Buffer const *) const;
67 bool showInsetDialog(BufferView *) const;
69 boost::signal0<void> hideDialog;
71 int latexTextWidth(BufferView *) const;