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
27 InsetVSpace(VSpace const &);
31 VSpace const & space() const { return space_; }
33 InsetCode lyxCode() const { return VSPACE_CODE; }
35 bool hasSettings() const { return true; }
37 docstring contextMenu(BufferView const & bv, int x, int y) const;
39 static void string2params(std::string const &, VSpace &);
41 static std::string params2string(VSpace const &);
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;
54 void read(Lexer & lex);
56 void write(std::ostream & os) const;
58 DisplayType display() const { return AlignCenter; }
60 void doDispatch(Cursor & cur, FuncRequest & cmd);
62 bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
64 Inset * clone() const { return new InsetVSpace(*this); }
66 docstring const label() const;
68 bool showInsetDialog(BufferView * bv) const;