X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flengthcommon.h;h=ef74e411b7bc1ab7931eab69dfd86ad46feffa81;hb=6a55be9506b112110826cf63bc21786044569f1d;hp=7991f2c573d0a4b543bfd74dc0e8014d113af349;hpb=ff9b02aabae2253d4176bfd0f2d668ab97d7f908;p=lyx.git diff --git a/src/lengthcommon.h b/src/lengthcommon.h index 7991f2c573..ef74e411b7 100644 --- a/src/lengthcommon.h +++ b/src/lengthcommon.h @@ -1,16 +1,37 @@ // -*- 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 LENGHT_COMMON_H -#define LENGHT_COMMON_H +#ifndef LENGTH_COMMON_H +#define LENGTH_COMMON_H -#include "LString.h" #include "lyxlength.h" + +/// the number of units possible extern int const num_units; -// I am not sure if "mu" should be possible to select (Lgb) -extern char const *unit_name[]; +/** + * array of unit names + * + * FIXME: I am not sure if "mu" should be possible to select (Lgb) + */ +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(std::string const & data); -LyXLength::UNIT unitFromString(string const & data); -#endif +#endif // LENGTH_COMMON_H