4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
15 #include "InsetCollapsable.h"
22 class InsetWrapParams {
25 void write(std::ostream &) const;
34 std::string placement;
44 class InsetWrap : public InsetCollapsable {
47 InsetWrap(Buffer *, std::string const &);
51 InsetWrapParams const & params() const { return params_; }
53 static void string2params(std::string const &, InsetWrapParams &);
55 static std::string params2string(InsetWrapParams const &);
58 void write(std::ostream & os) const;
60 void read(Lexer & lex);
62 void validate(LaTeXFeatures & features) const;
64 InsetCode lyxCode() const { return WRAP_CODE; }
66 docstring toolTip(BufferView const & bv, int x, int y) const;
68 int latex(odocstream &, OutputParams const &) const;
70 int plaintext(odocstream &, OutputParams const &) const;
72 int docbook(odocstream &, OutputParams const &) const;
74 docstring xhtml(XHTMLStream &, OutputParams const &) const;
76 bool insetAllowed(InsetCode) const;
78 bool showInsetDialog(BufferView *) const;
80 bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
81 /// Update the counters of this inset and of its contents
82 void updateBuffer(ParIterator const &, UpdateType);
84 void doDispatch(Cursor & cur, FuncRequest & cmd);
86 docstring name() const;
88 Inset * clone() const { return new InsetWrap(*this); }
91 InsetWrapParams params_;