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 void edit(Cursor & cur, bool front,
36 EntryDirection entry_from = ENTRY_DIRECTION_IGNORE);
38 EDITABLE editable() const { return IS_EDITABLE; }
40 docstring contextMenu(BufferView const & bv, int x, int y) const;
42 static void string2params(std::string const &, VSpace &);
44 static std::string params2string(VSpace const &);
47 void metrics(MetricsInfo & mi, Dimension & dim) const;
49 void draw(PainterInfo & pi, int x, int y) const;
51 int latex(odocstream &, OutputParams const &) const;
53 int plaintext(odocstream &, OutputParams const &) const;
55 int docbook(odocstream &, OutputParams const &) const;
57 void read(Lexer & lex);
59 void write(std::ostream & os) const;
61 DisplayType display() const { return AlignCenter; }
63 void doDispatch(Cursor & cur, FuncRequest & cmd);
65 bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
67 Inset * clone() const { return new InsetVSpace(*this); }
69 docstring const label() const;