X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flengthcommon.h;h=ef74e411b7bc1ab7931eab69dfd86ad46feffa81;hb=e7ef29fa2d516b8593aa3cccb6548de5686e8a9a;hp=71d72ea9882c36eb66f90da7762b6e1d2d88cd37;hpb=1120aa806c16aac6942760f244a1dbbe30c744be;p=lyx.git diff --git a/src/lengthcommon.h b/src/lengthcommon.h index 71d72ea988..ef74e411b7 100644 --- a/src/lengthcommon.h +++ b/src/lengthcommon.h @@ -1,11 +1,23 @@ // -*- 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 LENGTH_COMMON_H #define LENGTH_COMMON_H -#include "LString.h" #include "lyxlength.h" + /// the number of units possible extern int const num_units; @@ -14,9 +26,12 @@ extern int const num_units; * * FIXME: I am not sure if "mu" should be possible to select (Lgb) */ -extern char const *unit_name[]; +extern char const * const unit_name[]; +extern char const * const unit_name_gui[]; +extern char const * const unit_name_ltx[]; /// return the unit given a string representation such as "cm" -LyXLength::UNIT unitFromString(string const & data); +LyXLength::UNIT unitFromString(std::string const & data); + #endif // LENGTH_COMMON_H