* ======================================================
*
* LyX, The Document Processor
- *
+ *
* Copyright 1995 Matthias Ettrich
* Copyright 1995-2001 The LyX Team.
*
#include "Lsstream.h"
-#if 0
-namespace {
-// this is now here and in lyxlenght.h
-
-int const num_units = LyXLength::UNIT_NONE;
-
-// I am not sure if "mu" should be possible to select (Lgb)
-char const * unit_name[num_units] = { "sp", "pt", "bp", "dd",
- "mm", "pc", "cc", "cm",
- "in", "ex", "em", "mu",
- "%", "c%", "p%", "l%" };
-
-}
-#endif
LyXGlueLength::LyXGlueLength(LyXLength const & len)
: len_(len)
buffer << len_.value() << unit_name[len_.unit()]
<< "+-" << plus_.value()
<< unit_name[plus_.unit()];
-
+
else
buffer << len_.value() << unit_name[len_.unit()]
<< '+' << plus_.value()
buffer << len_.value() << unit_name[len_.unit()]
<< '+' << plus_.value()
<< unit_name[plus_.unit()];
-
+
else
if (!minus_.zero())
if (len_.unit() == minus_.unit())
buffer << len_.value() << '-' << minus_.value()
<< unit_name[len_.unit()];
-
+
else
buffer << len_.value() << unit_name[len_.unit()]
<< '-' << minus_.value()
bool operator==(LyXGlueLength const & l1, LyXGlueLength const & l2)
{
return l1.len() == l2.len()
- && l1.plus() == l2.plus()
- && l1.minus() == l2.minus();
+ && l1.plus() == l2.plus()
+ && l1.minus() == l2.minus();
}