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 const &, 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(odocstream &, OutputParams const &) const;
76 docstring editMessage() const;
78 bool insetAllowed(InsetCode) const;
80 bool showInsetDialog(BufferView *) const;
82 bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
83 /// Update the counters of this inset and of its contents
84 void updateLabels(ParIterator const &);
86 void doDispatch(Cursor & cur, FuncRequest & cmd);
88 docstring name() const;
90 Inset * clone() const { return new InsetWrap(*this); }
93 InsetWrapParams params_;