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 * ====================================================== */
36 Spacing() : space(Single), value(1.0) {}
38 bool isDefault() const {
39 return space == Default;
42 float getValue() const;
44 Spacing::Space getSpace() const { return space; }
46 void set(Spacing::Space sp, float val = 1.0);
48 void set(Spacing::Space sp, char const * val) ;
50 void writeFile(std::ostream &, bool para = false) const;
52 string writeEnvirBegin() const;
54 string writeEnvirEnd() const;
56 friend bool operator==(Spacing const & a, Spacing const & b) {
57 if (a.space == b.space && a.getValue() == b.getValue())
62 friend bool operator!=(Spacing const & a, Spacing const & b) {
63 if (a.space == b.space && a.getValue() == b.getValue())