]> git.lyx.org Git - lyx.git/blob - src/version.h
Avoid full metrics computation with Update:FitCursor
[lyx.git] / src / version.h
1 // -*- C++ -*-
2 /**
3  * \file version.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Jean-Marc Lasgouttes
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef VERSION_H
13 #define VERSION_H
14
15 //namespace lyx {
16
17 ///About dialog, inset info, export headers
18 extern char const * const lyx_version;
19 //.lyx header. We don't want lyx_version because of VCS conflicts.
20 extern const int lyx_version_major;
21 extern const int lyx_version_minor;
22 ///
23 extern char const * const lyx_git_commit_hash;
24 ///
25 extern char const * const lyx_release_date;
26
27 /// Package identifier (lyx[-<version-suffix>])
28 extern char const * const lyx_package;
29
30 /// This is the version information shown by 'lyx -version'
31 extern char const * const lyx_version_info;
32
33 // Do not remove the comment below, so we get merge conflict in
34 // independent branches. Instead add your own.
35 #define LYX_FORMAT_LYX 620 // spitz: default box frame color
36 #define LYX_FORMAT_TEX2LYX 620
37
38 #if LYX_FORMAT_TEX2LYX != LYX_FORMAT_LYX
39 #ifndef _MSC_VER
40 #warning "tex2lyx produces an out of date file format."
41 #warning "Please update tex2lyx as soon as possible, since it depends implicitly"
42 #warning "on the current file format in some places (this causes bugs like #7780)."
43 #else
44 #pragma message("warning: tex2lyx produces an out of date file format. " \
45         "Please update tex2lyx as soon as possible, since it depends implicitly " \
46         "on the current file format in some places (this causes bugs like #7780).")
47 #endif
48 #endif
49
50 //} // namespace lyx
51
52 #endif