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"
20 class InsetVSpace : public InsetOld {
25 InsetVSpace(VSpace const &);
29 void metrics(MetricsInfo & mi, Dimension & dim) const;
31 void draw(PainterInfo & pi, int x, int y) const;
33 int latex(Buffer const &, std::ostream &,
34 OutputParams const &) const;
36 int plaintext(Buffer const &, std::ostream &,
37 OutputParams const &) const;
39 int linuxdoc(Buffer const &, std::ostream &,
40 OutputParams const &) const;
42 int docbook(Buffer const &, std::ostream &,
43 OutputParams const &) const;
45 void read(Buffer const &, LyXLex & lex);
47 void write(Buffer const & buf, std::ostream & os) const;
49 bool display() const { return true; }
51 VSpace const & space() const { return space_; }
55 virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
58 virtual std::auto_ptr<InsetBase> doClone() const;
60 std::string const label() const;
67 class InsetVSpaceMailer : public MailInset {
70 InsetVSpaceMailer(InsetVSpace & inset);
72 virtual InsetBase & inset() const { return inset_; }
74 virtual std::string const & name() const { return name_; }
76 virtual std::string const inset2string(Buffer const &) const;
78 static void string2params(std::string const &, VSpace &);
80 static std::string const params2string(VSpace const &);
83 static std::string const name_;