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.
12 #ifndef INSET_VSPACE_H
13 #define INSET_VSPACE_H
21 class InsetVSpace : public Inset
25 InsetVSpace() : Inset(0) {}
27 InsetVSpace(VSpace const &);
29 VSpace const & space() const { return space_; }
31 InsetCode lyxCode() const { return VSPACE_CODE; }
33 bool hasSettings() const { return true; }
35 docstring contextMenu(BufferView const & bv, int x, int y) const;
37 static void string2params(std::string const &, VSpace &);
39 static std::string params2string(VSpace const &);
41 bool clickable(int, int) const { return true; }
44 void metrics(MetricsInfo & mi, Dimension & dim) const;
46 void draw(PainterInfo & pi, int x, int y) const;
48 int latex(odocstream &, OutputParams const &) const;
50 int plaintext(odocstream &, OutputParams const &) const;
52 int docbook(odocstream &, OutputParams const &) const;
53 /// Note that this returns the inset rather than writing it,
54 /// so it will actually be written after the present paragraph.
55 /// The normal case is that this inset will be on a line by
56 /// itself, and in that case the present paragraph will not,
57 /// in fact, appear at all.
58 docstring xhtml(XHTMLStream &, OutputParams const &) const;
60 void read(Lexer & lex);
62 void write(std::ostream & os) const;
64 DisplayType display() const { return AlignCenter; }
66 void doDispatch(Cursor & cur, FuncRequest & cmd);
68 bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
70 Inset * clone() const { return new InsetVSpace(*this); }
72 docstring const label() const;