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, float val = 1.0) {
41 Spacing(Spacing::Space sp, std::string const & val) {
45 bool isDefault() const {
46 return space == Default;
49 float getValue() const;
51 Spacing::Space getSpace() const { return space; }
53 void set(Spacing::Space sp, float val = 1.0);
55 void set(Spacing::Space sp, std::string const & val) ;
57 void writeFile(std::ostream &, bool para = false) const;
59 std::string const writeEnvirBegin() const;
61 std::string const writeEnvirEnd() const;
68 /// names of line spacing
69 static std::string const spacing_string[];
75 bool operator==(Spacing const & a, Spacing const & b)
77 return a.getSpace() == b.getSpace()
78 && a.getValue() == b.getValue();
83 bool operator!=(Spacing const & a, Spacing const & b)