]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlength.C
more cursor dispatch
[lyx.git] / src / lyxlength.C
index c38e7a33729300a0e59ae5ecafa17f3faedb16a1..e94b90e0d6bd138900da25f8b04e596bd89e79ec 100644 (file)
@@ -1,12 +1,17 @@
-/* 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)
@@ -49,7 +54,7 @@ string const LyXLength::asString() const
 {
        ostringstream buffer;
        buffer << val_ << unit_name[unit_]; // setw?
-       return STRCONV(buffer.str());
+       return buffer.str();
 }
 
 
@@ -85,7 +90,7 @@ string const LyXLength::asLatexString() const
            buffer << val_ << unit_name[unit_]; // setw?
            break;
        }
-       return STRCONV(buffer.str());
+       return buffer.str();
 }