2001-12-02 23:47:06 +00:00
|
|
|
|
// -*- C++ -*-
|
2003-08-23 00:17:00 +00:00
|
|
|
|
/**
|
|
|
|
|
* \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<EFBFBD>nnes
|
|
|
|
|
* \author Matthias Ettrich
|
|
|
|
|
* \author Jean-Marc Lasgouttes
|
|
|
|
|
* \author John Levon
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
|
*/
|
2001-12-02 23:47:06 +00:00
|
|
|
|
|
2002-02-26 10:50:48 +00:00
|
|
|
|
#ifndef LENGTH_COMMON_H
|
|
|
|
|
#define LENGTH_COMMON_H
|
2001-12-02 23:47:06 +00:00
|
|
|
|
|
2007-04-28 12:58:49 +00:00
|
|
|
|
#include "Length.h"
|
2003-10-06 15:43:21 +00:00
|
|
|
|
|
2001-12-02 23:47:06 +00:00
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
namespace lyx {
|
|
|
|
|
|
|
|
|
|
|
2002-02-26 10:50:48 +00:00
|
|
|
|
/// the number of units possible
|
2001-12-02 23:47:06 +00:00
|
|
|
|
extern int const num_units;
|
|
|
|
|
|
2002-02-26 10:50:48 +00:00
|
|
|
|
/**
|
|
|
|
|
* array of unit names
|
|
|
|
|
*
|
|
|
|
|
* FIXME: I am not sure if "mu" should be possible to select (Lgb)
|
|
|
|
|
*/
|
2004-04-05 14:05:03 +00:00
|
|
|
|
extern char const * const unit_name[];
|
|
|
|
|
extern char const * const unit_name_gui[];
|
2001-12-02 23:47:06 +00:00
|
|
|
|
|
2002-02-26 10:50:48 +00:00
|
|
|
|
/// return the unit given a string representation such as "cm"
|
2007-04-28 12:58:49 +00:00
|
|
|
|
Length::UNIT unitFromString(std::string const & data);
|
2001-12-02 23:47:06 +00:00
|
|
|
|
|
2002-11-17 11:24:08 +00:00
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
2002-02-26 10:50:48 +00:00
|
|
|
|
#endif // LENGTH_COMMON_H
|