3 #include "lengthcommon.h"
5 int const num_units = LyXLength::UNIT_NONE;
7 // I am not sure if "mu" should be possible to select (Lgb)
8 char const * unit_name[num_units] = { "sp", "pt", "bp", "dd",
9 "mm", "pc", "cc", "cm",
10 "in", "ex", "em", "mu",
11 "t%", "c%", "p%", "l%" };
14 LyXLength::UNIT unitFromString(string const & data)
17 while (i < num_units && data != unit_name[i])
19 return static_cast<LyXLength::UNIT>(i);