]> git.lyx.org Git - lyx.git/blob - src/lengthcommon.h
start using FileName::exists()
[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 "Length.h"
19
20
21 namespace lyx {
22
23
24 /// the number of units possible
25 extern int const num_units;
26
27 /**
28  * array of unit names
29  *
30  * FIXME: I am not sure if "mu" should be possible to select (Lgb)
31  */
32 extern char const * const unit_name[];
33 extern char const * const unit_name_gui[];
34
35 /// return the unit given a string representation such as "cm"
36 Length::UNIT unitFromString(std::string const & data);
37
38
39
40 } // namespace lyx
41
42 #endif // LENGTH_COMMON_H