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 docstring xhtml(odocstream &, OutputParams const &) const;
56 void read(Lexer & lex);
58 void write(std::ostream & os) const;
60 DisplayType display() const { return AlignCenter; }
62 void doDispatch(Cursor & cur, FuncRequest & cmd);
64 bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
66 Inset * clone() const { return new InsetVSpace(*this); }
68 docstring const label() const;
70 bool showInsetDialog(BufferView * bv) const;