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