// -*- C++ -*-
+/**
+ * \file lengthcommon.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Lars Gullik Bjønnes
+ * \author Matthias Ettrich
+ * \author Jean-Marc Lasgouttes
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS.
+ */
-#ifndef LENGHT_COMMON_H
-#define LENGHT_COMMON_H
+#ifndef LENGTH_COMMON_H
+#define LENGTH_COMMON_H
-#include "LString.h"
-#include "lyxlength.h"
+#include "Length.h"
+
+namespace lyx {
+
+
+/// the number of units possible
extern int const num_units;
-// I am not sure if "mu" should be possible to select (Lgb)
-extern char const *unit_name[];
+/**
+ * array of unit names
+ *
+ * FIXME: I am not sure if "mu" should be possible to select (Lgb)
+ */
+extern char const * const unit_name[];
+extern char const * const unit_name_gui[];
+
+/// return the unit given a string representation such as "cm"
+Length::UNIT unitFromString(std::string const & data);
+
+
-LyXLength::UNIT unitFromString(string const & data);
+} // namespace lyx
-#endif
+#endif // LENGTH_COMMON_H