-/* This file is part of
- * ======================================================
+/**
+ * \file lyxlength.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * LyX, The Document Processor
+ * \author Matthias Ettrich
+ * \author Lars Gullik Bjønnes
+ * \author Jean-Marc Lasgouttes
+ * \author Angus Leeming
+ * \author John Levon
+ * \author Dekel Tsur
*
- * Copyright 1995 Matthias Ettrich
- * Copyright 1995-2001 The LyX Team.
- *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS.
+ */
#include <config.h>
#include "lengthcommon.h"
#include "lyxrc.h"
-#include "support/lstrings.h"
-
-#include "Lsstream.h"
-#include <cstdlib>
+#include "support/std_sstream.h"
using std::abs;
+using std::ostringstream;
+using std::string;
+
LyXLength::LyXLength()
: val_(0), unit_(LyXLength::UNIT_NONE)
{
ostringstream buffer;
buffer << val_ << unit_name[unit_]; // setw?
- return STRCONV(buffer.str());
+ return buffer.str();
}
buffer << val_ << unit_name[unit_]; // setw?
break;
}
- return STRCONV(buffer.str());
+ return buffer.str();
}