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.
35 Spacing() : space(Default), value(1.0) {}
37 Spacing(Spacing::Space sp, float val = 1.0) {
40 Spacing(Spacing::Space sp, std::string const & val) {
44 bool isDefault() const {
45 return space == Default;
48 float getValue() const;
50 Spacing::Space getSpace() const { return space; }
52 void set(Spacing::Space sp, float val = 1.0);
54 void set(Spacing::Space sp, std::string const & val) ;
56 void writeFile(std::ostream &, bool para = false) const;
58 std::string const writeEnvirBegin() const;
60 std::string const writeEnvirEnd() const;
67 /// names of line spacing
68 static std::string const spacing_string[];
74 bool operator==(Spacing const & a, Spacing const & b)
76 return a.getSpace() == b.getSpace()
77 && a.getValue() == b.getValue();
82 bool operator!=(Spacing const & a, Spacing const & b)