2001-12-02 23:47:06 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
|
2002-02-26 10:50:48 +00:00
|
|
|
#ifndef LENGTH_COMMON_H
|
|
|
|
#define LENGTH_COMMON_H
|
2001-12-02 23:47:06 +00:00
|
|
|
|
|
|
|
#include "LString.h"
|
|
|
|
#include "lyxlength.h"
|
|
|
|
|
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)
|
|
|
|
*/
|
2002-07-09 16:23:20 +00:00
|
|
|
extern char const * unit_name[];
|
2002-11-17 11:24:08 +00:00
|
|
|
extern char const * unit_name_gui[];
|
|
|
|
extern char const * unit_name_ltx[];
|
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"
|
2001-12-02 23:47:06 +00:00
|
|
|
LyXLength::UNIT unitFromString(string const & data);
|
|
|
|
|
2002-11-17 11:24:08 +00:00
|
|
|
|
2002-02-26 10:50:48 +00:00
|
|
|
#endif // LENGTH_COMMON_H
|