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] = {
9 "sp", "pt", "bp", "dd", "mm", "pc", "cc", "cm",
10 "in", "ex", "em", "mu",
11 "text%", "col%", "page%", "line%" };
14 LyXLength::UNIT unitFromString(string const & data)
17 while (i < num_units && data != unit_name[i])
19 return static_cast<LyXLength::UNIT>(i);