#include "lyxgluelength.h"
-#include "support/std_string.h"
+
+namespace lyx {
+
class BufferParams;
class BufferView;
public:
/// The different kinds of spaces.
enum vspace_kind {
- NONE, ///< no added vertical space
DEFSKIP,
SMALLSKIP,
MEDSKIP,
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;
// 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;
bool keep_;
};
+
+} // namespace lyx
+
#endif // VSPACE_H