X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flengthcommon.cpp;h=0fa43359d66766e7078e2818cc78e085498af7a3;hb=1e190a2af27ca99831f51567c16e6b39bf4317c3;hp=e783555733f329e0d1cdf535b13c0e8a964a2e52;hpb=e61bae3dbbc191260e587a59b901959b07d7d594;p=lyx.git diff --git a/src/lengthcommon.cpp b/src/lengthcommon.cpp index e783555733..0fa43359d6 100644 --- a/src/lengthcommon.cpp +++ b/src/lengthcommon.cpp @@ -3,7 +3,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author Lars Gullik Bjønnes + * \author Lars Gullik Bjønnes * \author Matthias Ettrich * \author John Levon * @@ -12,21 +12,21 @@ #include -#include "gettext.h" +#include "support/gettext.h" #include "Length.h" #include -namespace lyx { +using namespace std; -using std::string; +namespace lyx { // I am not sure if "mu" should be possible to select (Lgb) // the latex units char const * const unit_name[] = { - "sp", "pt", "bp", "dd", "mm", "pc", - "cc", "cm", "in", "ex", "em", "mu", + "bp", "cc", "cm", "dd", "em", "ex", "in", "mm", "mu", + "pc", "pt", "sp", "text%", "col%", "page%", "line%", "theight%", "pheight%", "" }; @@ -34,9 +34,10 @@ int const num_units = int(sizeof(unit_name) / sizeof(unit_name[0]) - 1); // the LyX gui units char const * const unit_name_gui[] = { - N_("sp"), N_("pt"), N_("bp"), N_("dd"), N_("mm"), N_("pc"), - N_("cc[[unit of measure]]"), N_("cm"), N_("in"), N_("ex"), N_("em"), N_("mu"), - N_("Text Width %"), N_("Column Width %"), N_("Page Width %"), N_("Line Width %"), + N_("bp"), N_("cc[[unit of measure]]"), N_("cm"), N_("dd"), N_("em"), + N_("ex"), N_("in[[unit of measure]]"), N_("mm"), N_("mu[[unit of measure]]"), N_("pc"), + N_("pt"), N_("sp"), N_("Text Width %"), + N_("Column Width %"), N_("Page Width %"), N_("Line Width %"), N_("Text Height %"), N_("Page Height %"), "" }; Length::UNIT unitFromString(string const & data)