2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2001 The LyX Team.
10 * ====================================================== */
36 Spacing() : space(Default), value(1.0) {}
38 Spacing(Spacing::Space sp, float val = 1.0) {
41 Spacing(Spacing::Space sp, 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, string const & val) ;
57 void writeFile(std::ostream &, bool para = false) const;
59 string const writeEnvirBegin() const;
61 string const writeEnvirEnd() const;
68 /// names of line spacing
69 static 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)