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 * ====================================================== */
40 Spacing() : space(Default), value(1.0) {}
42 Spacing(Spacing::Space sp, float val = 1.0) {
45 Spacing(Spacing::Space sp, string const & val) {
49 bool isDefault() const {
50 return space == Default;
53 float getValue() const;
55 Spacing::Space getSpace() const { return space; }
57 void set(Spacing::Space sp, float val = 1.0);
59 void set(Spacing::Space sp, string const & val) ;
61 void writeFile(std::ostream &, bool para = false) const;
63 string const writeEnvirBegin() const;
65 string const writeEnvirEnd() const;
76 bool operator==(Spacing const & a, Spacing const & b)
78 return a.getSpace() == b.getSpace()
79 && a.getValue() == b.getValue();
84 bool operator!=(Spacing const & a, Spacing const & b)