]> git.lyx.org Git - lyx.git/blob - src/support/path_defines.h
db97e81e70610069114eee56adead8277f550e5f
[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 "support/std_string.h"
16
17 namespace lyx {
18 namespace support {
19
20 string const & lyx_localedir();
21
22 /// The absolute path to the lyx support files we're actually going to use.
23 string const & system_lyxdir();
24
25 /// Set the absolute path to the lyx support files (from the command line).
26 void system_lyxdir(string const &);
27
28 /// The absolute path to the lyx support files in the build directory
29 string const & build_lyxdir();
30
31 /// The absolute path to the user-level lyx support files.
32 string const & user_lyxdir();
33
34 /// Set the absolute path to the user-level lyx support files.
35 void user_lyxdir(string const &);
36
37 /** \returns true if the user lyx dir existed already and did not need
38  *  to be created afresh.
39  */
40 bool setLyxPaths();
41
42 } // namespace support
43 } // namespace lyx
44
45 #endif // NOT PATH_DEFINES_H