2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2000 The LyX Team.
10 * ====================================================== */
34 Spacing() : space(Single), value(1.0) {}
36 bool isDefault() const {
37 return space == Default;
40 float getValue() const;
42 Spacing::Space getSpace() const { return space; }
44 void set(Spacing::Space sp, float val = 1.0);
46 void set(Spacing::Space sp, char const * val) ;
48 void writeFile(std::ostream &, bool para = false) const;
50 friend bool operator==(Spacing const & a, Spacing const & b) {
51 if (a.space == b.space && a.getValue() == b.getValue())
56 friend bool operator!=(Spacing const & a, Spacing const & b) {
57 if (a.space == b.space && a.getValue() == b.getValue())