2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2001 The LyX Team.
10 * ====================================================== */
19 #include "lyxgluelength.h"
30 /// The different kinds of spaces.
50 explicit VSpace(vspace_kind k);
52 explicit VSpace(LyXLength const & l);
54 explicit VSpace(LyXGlueLength const & l);
56 /// Constructor for reading from a .lyx file
57 explicit VSpace(string const & data);
60 vspace_kind kind() const;
62 LyXGlueLength length() const;
64 // a flag that switches between \vspace and \vspace*
67 void setKeep(bool val);
69 bool operator==(VSpace const &) const;
72 /// how it goes into the LyX file
73 string const asLyXCommand() const;
75 string const asLatexCommand(BufferParams const & params) const;
77 int inPixels(BufferView * bv) const;