]> git.lyx.org Git - lyx.git/blobdiff - src/lengthcommon.cpp
A GUI for nomencl settings. Adds the possibility to enter a custom length.
[lyx.git] / src / lengthcommon.cpp
index 191eca85ba0e7ee85df8e1dbee545ab69f953e2d..8fa5c07fd01e48df444e4ba84f9819718e2d6db1 100644 (file)
@@ -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
  *
 
 #include <config.h>
 
-#include "lengthcommon.h"
+#include "support/gettext.h"
+#include "Length.h"
 
-#include "gettext.h"
+#include <string>
 
+using namespace std;
 
 namespace lyx {
 
-using std::string;
-
 // I am not sure if "mu" should be possible to select (Lgb)
 
 // the latex units
@@ -35,8 +35,9 @@ 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"), N_("cm"), N_("in"), N_("ex"), N_("em"), N_("mu"),
-       N_("Text Width %"), N_("Column Width %"), N_("Page Width %"), N_("Line Width %"),
+       N_("cc[[unit of measure]]"), N_("cm"), N_("in"), N_("ex"), N_("em"),
+       N_("mu[[unit of measure]]"), N_("Text Width %"),
+       N_("Column Width %"), N_("Page Width %"), N_("Line Width %"),
        N_("Text Height %"), N_("Page Height %"), "" };
 
 Length::UNIT unitFromString(string const & data)