X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fvspace.h;h=b358b40621b486b7e94ca6077c973dd59de7a072;hb=e5a46922e916a06ad1b958d5895cc3cfb4f13d2c;hp=9109e95a644bb1e03226d7bdd0344d4944bf72d6;hpb=4d440a14734cd372156ffae1082f5fdac1da94d7;p=lyx.git diff --git a/src/vspace.h b/src/vspace.h index 9109e95a64..b358b40621 100644 --- a/src/vspace.h +++ b/src/vspace.h @@ -1,10 +1,12 @@ // -*- C++ -*- /** * \file vspace.h - * Copyright 1995-2002 the LyX Team - * Read the file COPYING + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. * * \author Matthias Ettrich + * + * Full author contact details are available in file CREDITS. */ #ifndef VSPACE_H @@ -12,7 +14,9 @@ #include "lyxgluelength.h" -#include "LString.h" + +namespace lyx { + class BufferParams; class BufferView; @@ -23,7 +27,6 @@ class VSpace { public: /// The different kinds of spaces. enum vspace_kind { - NONE, ///< no added vertical space DEFSKIP, SMALLSKIP, MEDSKIP, @@ -41,12 +44,12 @@ public: explicit VSpace(LyXGlueLength const & l); /// Constructor for reading from a .lyx file - explicit VSpace(string const & data); + explicit VSpace(std::string const & data); /// return the type of vertical space vspace_kind kind() const; /// return the length of this space - LyXGlueLength length() const; + LyXGlueLength const & length() const; // a flag that switches between \vspace and \vspace* bool keep() const; @@ -58,9 +61,11 @@ public: // conversion /// how it goes into the LyX file - string const asLyXCommand() const; + std::string const asLyXCommand() const; /// the latex representation - string const asLatexCommand(BufferParams const & params) const; + std::string const asLatexCommand(BufferParams const & params) const; + /// how it is seen in the LyX window + docstring const asGUIName() const; /// the size of the space on-screen int inPixels(BufferView const & bv) const; @@ -73,4 +78,7 @@ private: bool keep_; }; + +} // namespace lyx + #endif // VSPACE_H