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