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 void metrics(MetricsInfo & mi, Dimension & dim) const;
34 Dimension const dimension(BufferView const &) const { return dim_; };
36 void draw(PainterInfo & pi, int x, int y) const;
38 int latex(Buffer const &, odocstream &,
39 OutputParams const &) const;
41 int plaintext(Buffer const &, odocstream &,
42 OutputParams const &) const;
44 int docbook(Buffer const &, odocstream &,
45 OutputParams const &) const;
47 void read(Buffer const &, Lexer & lex);
49 void write(Buffer const & buf, std::ostream & os) const;
51 DisplayType display() const { return AlignCenter; }
53 VSpace const & space() const { return space_; }
57 virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
60 virtual Inset * clone() const;
62 docstring const label() const;
67 mutable Dimension dim_;
71 class InsetVSpaceMailer : public MailInset {
74 InsetVSpaceMailer(InsetVSpace & inset);
76 virtual Inset & inset() const { return inset_; }
78 virtual std::string const & name() const { return name_; }
80 virtual std::string const inset2string(Buffer const &) const;
82 static void string2params(std::string const &, VSpace &);
84 static std::string const params2string(VSpace const &);
87 static std::string const name_;