]> git.lyx.org Git - lyx.git/blob - src/support/path_defines.h
* lyxfunctional.h: delete compare_memfun and helper classes
[lyx.git] / src / support / path_defines.h
1 // -*- C++ -*-
2 /**
3  * \file path_defines.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Angus Leeming
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef PATH_DEFINES_H
13 #define PATH_DEFINES_H
14
15 #include <string>
16
17
18 namespace lyx {
19 namespace support {
20
21 std::string const & lyx_localedir();
22
23 /* The absolute path to the top of the lyx build tree.
24  * (Make-time value.)
25  */
26 std::string const & top_srcdir();
27
28 /// The absolute path to the lyx support files we're actually going to use.
29 std::string const & system_lyxdir();
30
31 /// Set the absolute path to the lyx support files (from the command line).
32 void system_lyxdir(std::string const &);
33
34 /// The absolute path to the lyx support files in the build directory
35 std::string const & build_lyxdir();
36
37 /// The absolute path to the user-level lyx support files.
38 std::string const & user_lyxdir();
39
40 /// Set the absolute path to the user-level lyx support files.
41 void user_lyxdir(std::string const &);
42
43 /** \returns true if the user lyx dir existed already and did not need
44  *  to be created afresh.
45  */
46 bool setLyxPaths();
47
48 } // namespace support
49 } // namespace lyx
50
51 #endif // NOT PATH_DEFINES_H