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, string const & val) ;
54 void writeFile(std::ostream &, bool para = false) const;
56 string const writeEnvirBegin() const;
58 string const writeEnvirEnd() const;
69 bool operator==(Spacing const & a, Spacing const & b)
71 return a.getSpace() == b.getSpace()
72 && a.getValue() == b.getValue();
77 bool operator!=(Spacing const & a, Spacing const & b)