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 "InsetCaptionable.h"
17 #include "support/Length.h"
23 class InsetWrapParams {
26 void write(std::ostream &) const;
35 std::string placement;
45 class InsetWrap : public InsetCaptionable {
48 InsetWrap(Buffer *, std::string const &);
52 InsetWrapParams const & params() const { return params_; }
54 static void string2params(std::string const &, InsetWrapParams &);
56 static std::string params2string(InsetWrapParams const &);
59 void setCaptionType(std::string const & type);
61 void write(std::ostream & os) const;
63 void read(Lexer & lex);
65 void validate(LaTeXFeatures & features) const;
67 InsetCode lyxCode() const { return WRAP_CODE; }
69 docstring toolTip(BufferView const & bv, int x, int y) const;
71 void latex(otexstream &, OutputParams const &) const;
73 int plaintext(odocstringstream & ods, OutputParams const & op,
74 size_t max_length = INT_MAX) const;
76 void docbook(XMLStream &, OutputParams const &) const;
78 docstring xhtml(XMLStream &, OutputParams const &) const;
80 bool insetAllowed(InsetCode) const;
82 bool showInsetDialog(BufferView *) const;
84 bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
86 void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false);
88 void doDispatch(Cursor & cur, FuncRequest & cmd);
90 docstring layoutName() const;
92 Inset * clone() const { return new InsetWrap(*this); }
93 /// Is the content of this inset part of the immediate (visible) text sequence?
94 bool isPartOfTextSequence() const { return false; }
97 InsetWrapParams params_;