4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
9 * Full author contact details are available in file CREDITS.
36 Spacing() : space(Default), value("1.0") {}
38 Spacing(Spacing::Space sp, double val = 1.0) {
41 Spacing(Spacing::Space sp, std::string const & val) {
45 bool isDefault() const {
46 return space == Default;
49 std::string const getValueAsString() const;
51 double getValue() const;
53 Spacing::Space getSpace() const { return space; }
55 void set(Spacing::Space sp, double val = 1.0);
57 void set(Spacing::Space sp, std::string const & val);
59 void writeFile(std::ostream &, bool para = false) const;
61 std::string const writeEnvirBegin() const;
63 std::string const writeEnvirEnd() const;
70 /// names of line spacing
71 static std::string const spacing_string[];
77 bool operator==(Spacing const & a, Spacing const & b)
79 return a.getSpace() == b.getSpace()
80 && a.getValueAsString() == b.getValueAsString();
85 bool operator!=(Spacing const & a, Spacing const & b)