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.
39 Spacing() : space(Default), value("1.0") {}
41 Spacing(Spacing::Space sp, double val = 1.0) {
44 Spacing(Spacing::Space sp, std::string const & val) {
48 bool isDefault() const {
49 return space == Default;
52 std::string const getValueAsString() const;
54 double getValue() const;
56 Spacing::Space getSpace() const { return space; }
58 void set(Spacing::Space sp, double val = 1.0);
60 void set(Spacing::Space sp, std::string const & val);
62 void writeFile(std::ostream &, bool para = false) const;
64 std::string const writeEnvirBegin() const;
66 std::string const writeEnvirEnd() const;
73 /// names of line spacing
74 static std::string const spacing_string[];
80 bool operator==(Spacing const & a, Spacing const & b)
82 return a.getSpace() == b.getSpace()
83 && a.getValueAsString() == b.getValueAsString();
88 bool operator!=(Spacing const & a, Spacing const & b)