* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
- * Copyright 1995-1999 The LyX Team.
+ * Copyright 1995-2000 The LyX Team.
*
* ====================================================== */
#ifdef HAVE_SSTREAM
#include <sstream>
+using std::istringstream;
#else
#include <strstream>
#endif
Other
};
///
- Spacing()
- {
+ Spacing() {
space = Single;
value = getValue();
}
///
- float getValue() const
- {
+ float getValue() const {
switch(space) {
case Single: return 1.0;
case Onehalf: return 1.25;
return 1.0;
}
///
- Spacing::Space getSpace() const
- {
+ Spacing::Space getSpace() const {
return space;
}
///
- void set(Spacing::Space sp, float val = 1.0)
- {
+ void set(Spacing::Space sp, float val = 1.0) {
space = sp;
if (sp == Other) {
switch(int(val * 1000 + 0.5)) {
}
}
///
- void set(Spacing::Space sp, char const * val)
- {
+ void set(Spacing::Space sp, char const * val) {
float fval;
#ifdef HAVE_SSTREAM
istringstream istr(val);
set(sp, fval);
}
///
- void writeFile(ostream &);
+ void writeFile(ostream &) const;
///
- friend bool operator!=(Spacing const & a, Spacing const & b)
- {
+ friend bool operator!=(Spacing const & a, Spacing const & b) {
if (a.space == b.space && a.getValue() == b.getValue())
return false;
return true;