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
18 #include "MailInset.h"
23 class InsetVSpace : public Inset {
28 InsetVSpace(VSpace const &);
32 VSpace const & space() const { return space_; }
35 void metrics(MetricsInfo & mi, Dimension & dim) const;
37 void draw(PainterInfo & pi, int x, int y) const;
39 int latex(odocstream &, OutputParams const &) const;
41 int plaintext(odocstream &, OutputParams const &) const;
43 int docbook(odocstream &, OutputParams const &) const;
45 void read(Lexer & lex);
47 void write(std::ostream & os) const;
49 DisplayType display() const { return AlignCenter; }
51 void doDispatch(Cursor & cur, FuncRequest & cmd);
53 Inset * clone() const { return new InsetVSpace(*this); }
55 docstring const label() const;
62 class InsetVSpaceMailer : public MailInset {
65 InsetVSpaceMailer(InsetVSpace & inset);
67 virtual Inset & inset() const { return inset_; }
69 virtual std::string const & name() const { return name_; }
71 virtual std::string const inset2string(Buffer const &) const;
73 static void string2params(std::string const &, VSpace &);
75 static std::string const params2string(VSpace const &);
78 static std::string const name_;