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"
22 class InsetWrapParams {
25 void write(std::ostream &) const;
34 std::string placement;
44 class InsetWrap : public InsetCaptionable {
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 setCaptionType(std::string const & type);
60 void write(std::ostream & os) const;
62 void read(Lexer & lex);
64 void validate(LaTeXFeatures & features) const;
66 InsetCode lyxCode() const { return WRAP_CODE; }
68 docstring toolTip(BufferView const & bv, int x, int y) const;
70 void latex(otexstream &, OutputParams const &) const;
72 int plaintext(odocstringstream & ods, OutputParams const & op,
73 size_t max_length = INT_MAX) const;
75 int docbook(odocstream &, OutputParams const &) const;
77 docstring xhtml(XHTMLStream &, OutputParams const &) const;
79 bool insetAllowed(InsetCode) const;
81 bool showInsetDialog(BufferView *) const;
83 bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
85 void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false);
87 void doDispatch(Cursor & cur, FuncRequest & cmd);
89 docstring layoutName() const;
91 Inset * clone() const { return new InsetWrap(*this); }
92 /// Is the content of this inset part of the immediate (visible) text sequence?
93 bool isPartOfTextSequence() const { return false; }
96 InsetWrapParams params_;