]> git.lyx.org Git - lyx.git/blob - src/lengthcommon.h
The Gtk patch.
[lyx.git] / src / lengthcommon.h
1 // -*- C++ -*-
2 /**
3  * \file lengthcommon.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Lars Gullik Bjønnes
8  * \author Matthias Ettrich
9  * \author Jean-Marc Lasgouttes
10  * \author John Levon
11  *
12  * Full author contact details are available in file CREDITS.
13  */
14
15 #ifndef LENGTH_COMMON_H
16 #define LENGTH_COMMON_H
17
18 #include "LString.h"
19 #include "lyxlength.h"
20
21 /// the number of units possible
22 extern int const num_units;
23
24 /**
25  * array of unit names
26  *
27  * FIXME: I am not sure if "mu" should be possible to select (Lgb)
28  */
29 extern char const * unit_name[];
30 extern char const * unit_name_gui[];
31 extern char const * unit_name_ltx[];
32
33 /// return the unit given a string representation such as "cm"
34 LyXLength::UNIT unitFromString(string const & data);
35
36
37 #endif // LENGTH_COMMON_H