2005-01-10 19:17:43 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
Rename files in src/support, step one.
src/support/package.h src/support/Package.h Package
src/support/package.C.in src/support/Package.C.in Package
src/support/path.h src/support/Path.h Path
src/support/fs_extras.h src/support/fs_extras.h NOCLASSES
src/support/RandomAccessList.h src/support/RandomAccessList.h RandomAccessList
src/support/lyxmanip.h src/support/lyxmanip.h NOCLASSES
src/support/rename.C src/support/rename.cpp NOCLASSES
src/support/abort.C src/support/abort.cpp NOCLASSES
src/support/lyxlib.h src/support/lyxlib.h NOCLASSES
src/support/ExceptionMessage.h src/support/ExceptionMessage.h ExceptionMessage
src/support/copy.C src/support/copy.cpp NOCLASSES
src/support/limited_stack.h src/support/limited_stack.h limited_stack
src/support/filefilterlist.C src/support/FileFilterList.cpp ['FileFilterList', 'Filter']
src/support/cow_ptr.h src/support/cow_ptr.h cow_ptr
src/support/os_unix.C src/support/os_unix.cpp NOCLASSES
src/support/socktools.h src/support/socktools.h NOCLASSES
src/support/forkedcontr.h src/support/ForkedcallsController.h ForkedcallsController
src/support/os.h src/support/os.h NOCLASSES
src/support/FileMonitor.h src/support/FileMonitor.h FileMonitor
src/support/copied_ptr.h src/support/copied_ptr.h copied_ptr
src/support/translator.h src/support/Translator.h Translator
src/support/filetools.C src/support/filetools.cpp NOCLASSES
src/support/unlink.C src/support/unlink.cpp NOCLASSES
src/support/os_win32.C src/support/os_win32.cpp GetFolderPath
src/support/lstrings.C src/support/lstrings.cpp NOCLASSES
src/support/qstring_helpers.C src/support/qstring_helpers.cpp NOCLASSES
src/support/getcwd.C src/support/getcwd.cpp NOCLASSES
src/support/systemcall.C src/support/Systemcall.cpp Systemcall
src/support/lyxalgo.h src/support/lyxalgo.h NOCLASSES
src/support/filefilterlist.h src/support/FileFilterList.h ['FileFilterList', 'Filter']
src/support/unicode.C src/support/unicode.cpp IconvProcessor
src/support/userinfo.C src/support/userinfo.cpp NOCLASSES
src/support/lyxtime.C src/support/lyxtime.cpp NOCLASSES
src/support/kill.C src/support/kill.cpp NOCLASSES
src/support/docstring.C src/support/docstring.cpp to_local8bit_failure
src/support/os_cygwin.C src/support/os_cygwin.cpp NOCLASSES
src/support/lyxsum.C src/support/lyxsum.cpp NOCLASSES
src/support/environment.C src/support/environment.cpp NOCLASSES
src/support/filetools.h src/support/filetools.h NOCLASSES
src/support/textutils.C src/support/textutils.cpp NOCLASSES
src/support/mkdir.C src/support/mkdir.cpp NOCLASSES
src/support/forkedcall.C src/support/Forkedcall.cpp ['ForkedProcess', 'Forkedcall']
src/support/tempname.C src/support/tempname.cpp NOCLASSES
src/support/os_win32.h src/support/os_win32.h GetFolderPath
src/support/types.h src/support/types.h NOCLASSES
src/support/lstrings.h src/support/lstrings.h NOCLASSES
src/support/forkedcallqueue.C src/support/ForkedCallQueue.cpp ForkedCallQueue
src/support/qstring_helpers.h src/support/qstring_helpers.h NOCLASSES
src/support/convert.C src/support/convert.cpp NOCLASSES
src/support/filename.C src/support/FileName.cpp ['FileName', 'DocFileName']
src/support/tests/convert.C src/support/tests/convert.cpp NOCLASSES
src/support/tests/filetools.C src/support/tests/filetools.cpp NOCLASSES
src/support/tests/lstrings.C src/support/tests/lstrings.cpp NOCLASSES
src/support/tests/boost.C src/support/tests/boost.cpp NOCLASSES
src/support/docstream.C src/support/docstream.cpp ['iconv_codecvt_facet_exception', 'idocfstream', 'odocfstream']
src/support/std_istream.h src/support/std_istream.h NOCLASSES
src/support/systemcall.h src/support/Systemcall.h Systemcall
src/support/chdir.C src/support/chdir.cpp NOCLASSES
src/support/std_ostream.h src/support/std_ostream.h NOCLASSES
src/support/unicode.h src/support/unicode.h IconvProcessor
src/support/path.C src/support/Path.cpp Path
src/support/fs_extras.C src/support/fs_extras.cpp NOCLASSES
src/support/userinfo.h src/support/userinfo.h NOCLASSES
src/support/lyxtime.h src/support/lyxtime.h NOCLASSES
src/support/docstring.h src/support/docstring.h to_local8bit_failure
src/support/debugstream.h src/support/debugstream.h basic_debugstream
src/support/environment.h src/support/environment.h NOCLASSES
src/support/textutils.h src/support/textutils.h NOCLASSES
src/support/forkedcall.h src/support/Forkedcall.h ['ForkedProcess', 'Forkedcall']
src/support/socktools.C src/support/socktools.cpp NOCLASSES
src/support/forkedcallqueue.h src/support/ForkedCallQueue.h ForkedCallQueue
src/support/forkedcontr.C src/support/ForkedcallsController.cpp ForkedcallsController
src/support/os.C src/support/os.cpp NOCLASSES
src/support/convert.h src/support/convert.h NOCLASSES
src/support/filename.h src/support/FileName.h ['FileName', 'DocFileName']
src/support/docstream.h src/support/docstream.h ['iconv_codecvt_facet_exception', 'idocfstream', 'odocfstream']
src/support/FileMonitor.C src/support/FileMonitor.cpp FileMonitor
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18024 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-26 05:12:52 +00:00
|
|
|
* \file Package.h
|
2005-01-10 19:17:43 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Angus Leeming
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*
|
|
|
|
* A store of the paths to the various different directoies used
|
|
|
|
* by LyX. These paths differ markedly from one OS to another,
|
|
|
|
* following the local Windows, MacOS X or Posix conventions.
|
|
|
|
*/
|
2007-11-02 21:04:52 +00:00
|
|
|
|
|
|
|
#ifndef PACKAGE_H
|
|
|
|
#define PACKAGE_H
|
2005-01-10 19:17:43 +00:00
|
|
|
|
Rename files in src/support, step one.
src/support/package.h src/support/Package.h Package
src/support/package.C.in src/support/Package.C.in Package
src/support/path.h src/support/Path.h Path
src/support/fs_extras.h src/support/fs_extras.h NOCLASSES
src/support/RandomAccessList.h src/support/RandomAccessList.h RandomAccessList
src/support/lyxmanip.h src/support/lyxmanip.h NOCLASSES
src/support/rename.C src/support/rename.cpp NOCLASSES
src/support/abort.C src/support/abort.cpp NOCLASSES
src/support/lyxlib.h src/support/lyxlib.h NOCLASSES
src/support/ExceptionMessage.h src/support/ExceptionMessage.h ExceptionMessage
src/support/copy.C src/support/copy.cpp NOCLASSES
src/support/limited_stack.h src/support/limited_stack.h limited_stack
src/support/filefilterlist.C src/support/FileFilterList.cpp ['FileFilterList', 'Filter']
src/support/cow_ptr.h src/support/cow_ptr.h cow_ptr
src/support/os_unix.C src/support/os_unix.cpp NOCLASSES
src/support/socktools.h src/support/socktools.h NOCLASSES
src/support/forkedcontr.h src/support/ForkedcallsController.h ForkedcallsController
src/support/os.h src/support/os.h NOCLASSES
src/support/FileMonitor.h src/support/FileMonitor.h FileMonitor
src/support/copied_ptr.h src/support/copied_ptr.h copied_ptr
src/support/translator.h src/support/Translator.h Translator
src/support/filetools.C src/support/filetools.cpp NOCLASSES
src/support/unlink.C src/support/unlink.cpp NOCLASSES
src/support/os_win32.C src/support/os_win32.cpp GetFolderPath
src/support/lstrings.C src/support/lstrings.cpp NOCLASSES
src/support/qstring_helpers.C src/support/qstring_helpers.cpp NOCLASSES
src/support/getcwd.C src/support/getcwd.cpp NOCLASSES
src/support/systemcall.C src/support/Systemcall.cpp Systemcall
src/support/lyxalgo.h src/support/lyxalgo.h NOCLASSES
src/support/filefilterlist.h src/support/FileFilterList.h ['FileFilterList', 'Filter']
src/support/unicode.C src/support/unicode.cpp IconvProcessor
src/support/userinfo.C src/support/userinfo.cpp NOCLASSES
src/support/lyxtime.C src/support/lyxtime.cpp NOCLASSES
src/support/kill.C src/support/kill.cpp NOCLASSES
src/support/docstring.C src/support/docstring.cpp to_local8bit_failure
src/support/os_cygwin.C src/support/os_cygwin.cpp NOCLASSES
src/support/lyxsum.C src/support/lyxsum.cpp NOCLASSES
src/support/environment.C src/support/environment.cpp NOCLASSES
src/support/filetools.h src/support/filetools.h NOCLASSES
src/support/textutils.C src/support/textutils.cpp NOCLASSES
src/support/mkdir.C src/support/mkdir.cpp NOCLASSES
src/support/forkedcall.C src/support/Forkedcall.cpp ['ForkedProcess', 'Forkedcall']
src/support/tempname.C src/support/tempname.cpp NOCLASSES
src/support/os_win32.h src/support/os_win32.h GetFolderPath
src/support/types.h src/support/types.h NOCLASSES
src/support/lstrings.h src/support/lstrings.h NOCLASSES
src/support/forkedcallqueue.C src/support/ForkedCallQueue.cpp ForkedCallQueue
src/support/qstring_helpers.h src/support/qstring_helpers.h NOCLASSES
src/support/convert.C src/support/convert.cpp NOCLASSES
src/support/filename.C src/support/FileName.cpp ['FileName', 'DocFileName']
src/support/tests/convert.C src/support/tests/convert.cpp NOCLASSES
src/support/tests/filetools.C src/support/tests/filetools.cpp NOCLASSES
src/support/tests/lstrings.C src/support/tests/lstrings.cpp NOCLASSES
src/support/tests/boost.C src/support/tests/boost.cpp NOCLASSES
src/support/docstream.C src/support/docstream.cpp ['iconv_codecvt_facet_exception', 'idocfstream', 'odocfstream']
src/support/std_istream.h src/support/std_istream.h NOCLASSES
src/support/systemcall.h src/support/Systemcall.h Systemcall
src/support/chdir.C src/support/chdir.cpp NOCLASSES
src/support/std_ostream.h src/support/std_ostream.h NOCLASSES
src/support/unicode.h src/support/unicode.h IconvProcessor
src/support/path.C src/support/Path.cpp Path
src/support/fs_extras.C src/support/fs_extras.cpp NOCLASSES
src/support/userinfo.h src/support/userinfo.h NOCLASSES
src/support/lyxtime.h src/support/lyxtime.h NOCLASSES
src/support/docstring.h src/support/docstring.h to_local8bit_failure
src/support/debugstream.h src/support/debugstream.h basic_debugstream
src/support/environment.h src/support/environment.h NOCLASSES
src/support/textutils.h src/support/textutils.h NOCLASSES
src/support/forkedcall.h src/support/Forkedcall.h ['ForkedProcess', 'Forkedcall']
src/support/socktools.C src/support/socktools.cpp NOCLASSES
src/support/forkedcallqueue.h src/support/ForkedCallQueue.h ForkedCallQueue
src/support/forkedcontr.C src/support/ForkedcallsController.cpp ForkedcallsController
src/support/os.C src/support/os.cpp NOCLASSES
src/support/convert.h src/support/convert.h NOCLASSES
src/support/filename.h src/support/FileName.h ['FileName', 'DocFileName']
src/support/docstream.h src/support/docstream.h ['iconv_codecvt_facet_exception', 'idocfstream', 'odocfstream']
src/support/FileMonitor.C src/support/FileMonitor.cpp FileMonitor
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18024 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-26 05:12:52 +00:00
|
|
|
#include "support/FileName.h"
|
2007-04-06 13:09:54 +00:00
|
|
|
|
2005-01-10 19:17:43 +00:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
namespace support {
|
|
|
|
|
|
|
|
class Package;
|
|
|
|
|
2005-01-31 19:57:03 +00:00
|
|
|
/** When run in-place <build-dir>/src/lyx is one level up from
|
|
|
|
* the <build-dir> whilst <build-dir>/src/tex2lyx/tex2lyx is
|
|
|
|
* two levels up.
|
|
|
|
*/
|
|
|
|
enum exe_build_dir_to_top_build_dir {
|
|
|
|
top_build_dir_is_one_level_up,
|
|
|
|
top_build_dir_is_two_levels_up
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2005-01-10 19:17:43 +00:00
|
|
|
/** Initialise package() with the command line data.
|
|
|
|
* This data is exactly as it was passed in the argv[] array.
|
|
|
|
*
|
|
|
|
* @param command_line_arg0 argv[0], the name of the LyX executable
|
|
|
|
* as passed on the command line.
|
|
|
|
*
|
|
|
|
* @param command_line_system_support_dir, the LyX system dir,
|
|
|
|
* as specified on the command line with "-sysdir <path to dir>".
|
|
|
|
*
|
|
|
|
* @param command_line_user_support_dir, the LyX user dir,
|
|
|
|
* as specified on the command line with "-userdir <path to dir>".
|
|
|
|
*/
|
|
|
|
void init_package(std::string const & command_line_arg0,
|
|
|
|
std::string const & command_line_system_support_dir,
|
2005-01-31 19:57:03 +00:00
|
|
|
std::string const & command_line_user_support_dir,
|
|
|
|
exe_build_dir_to_top_build_dir);
|
2005-01-10 19:17:43 +00:00
|
|
|
|
|
|
|
/** Accessor to the global data.
|
|
|
|
* Asserts that init_package() has been called first.
|
|
|
|
*/
|
|
|
|
Package const & package();
|
|
|
|
|
|
|
|
class Package {
|
|
|
|
public:
|
|
|
|
/// Default constructor does not lead to the paths being set.
|
2007-11-02 21:04:52 +00:00
|
|
|
Package() {}
|
2005-01-10 19:17:43 +00:00
|
|
|
|
|
|
|
/** Called by init_package, above.
|
|
|
|
* All paths will be initialized.
|
|
|
|
*/
|
|
|
|
Package(std::string const & command_line_arg0,
|
|
|
|
std::string const & command_line_system_support_dir,
|
2005-01-31 19:57:03 +00:00
|
|
|
std::string const & command_line_user_support_dir,
|
|
|
|
exe_build_dir_to_top_build_dir);
|
2005-01-10 19:17:43 +00:00
|
|
|
|
|
|
|
/** The directory containing the LyX executable.
|
|
|
|
*/
|
2007-11-02 21:04:52 +00:00
|
|
|
FileName const & binary_dir() const { return binary_dir_; }
|
2005-01-10 19:17:43 +00:00
|
|
|
|
|
|
|
/** The top of the LyX source code tree.
|
|
|
|
*/
|
2007-04-06 13:09:54 +00:00
|
|
|
static FileName const & top_srcdir();
|
2005-01-10 19:17:43 +00:00
|
|
|
|
|
|
|
/** The path to the system-level support files
|
|
|
|
* we're actually going to use.
|
|
|
|
*/
|
2007-11-02 21:04:52 +00:00
|
|
|
FileName const & system_support() const { return system_support_dir_; }
|
2005-01-10 19:17:43 +00:00
|
|
|
|
|
|
|
/** The path to the autogenerated support files
|
|
|
|
* when running in-place.
|
|
|
|
*/
|
2007-11-02 21:04:52 +00:00
|
|
|
FileName const & build_support() const { return build_support_dir_; }
|
2005-01-10 19:17:43 +00:00
|
|
|
|
|
|
|
/** The path to the user-level support files.
|
|
|
|
*/
|
2007-11-02 21:04:52 +00:00
|
|
|
FileName const & user_support() const { return user_support_dir_; }
|
2005-01-10 19:17:43 +00:00
|
|
|
|
|
|
|
/** The user_support directory was set explicitly using either
|
|
|
|
* the -userdir command line switch or
|
2007-01-03 18:02:26 +00:00
|
|
|
* the LYX_USERDIR_15x environment variable.
|
2005-01-10 19:17:43 +00:00
|
|
|
*/
|
2007-11-02 21:04:52 +00:00
|
|
|
bool explicit_user_support() const { return explicit_user_support_dir_; }
|
2005-01-10 19:17:43 +00:00
|
|
|
|
|
|
|
/** The path to the locale directory.
|
|
|
|
*/
|
2007-11-02 21:04:52 +00:00
|
|
|
FileName const & locale_dir() const { return locale_dir_; }
|
2005-01-10 19:17:43 +00:00
|
|
|
|
|
|
|
/** The default document directory.
|
|
|
|
* Can be reset by LyXRC.
|
|
|
|
*/
|
2007-11-02 21:04:52 +00:00
|
|
|
FileName & document_dir() const { return document_dir_; }
|
2005-01-10 19:17:43 +00:00
|
|
|
|
2006-12-17 21:52:40 +00:00
|
|
|
/** The path to the system temporary directory.
|
2005-01-10 19:17:43 +00:00
|
|
|
* (Eg /tmp on *nix.)
|
2006-12-17 21:52:40 +00:00
|
|
|
*/
|
2007-11-02 21:04:52 +00:00
|
|
|
FileName const & system_temp_dir() const { return system_temp_dir_; }
|
2006-12-17 21:52:40 +00:00
|
|
|
|
|
|
|
/** The path to the temporary directory used by LyX.
|
|
|
|
* (Eg /tmp/lyx_tmpdir800nBI1z9 on *nix.)
|
2005-01-10 19:17:43 +00:00
|
|
|
* Can be reset by LyXRC.
|
|
|
|
*/
|
2008-06-09 13:05:24 +00:00
|
|
|
//@{
|
|
|
|
FileName const & temp_dir() const { return temp_dir_; }
|
|
|
|
void set_temp_dir(FileName const & temp_dir) const;
|
|
|
|
//@}
|
2005-01-10 19:17:43 +00:00
|
|
|
|
|
|
|
/** Used when setting the user_support directory.
|
Rename files in src/support, step one.
src/support/package.h src/support/Package.h Package
src/support/package.C.in src/support/Package.C.in Package
src/support/path.h src/support/Path.h Path
src/support/fs_extras.h src/support/fs_extras.h NOCLASSES
src/support/RandomAccessList.h src/support/RandomAccessList.h RandomAccessList
src/support/lyxmanip.h src/support/lyxmanip.h NOCLASSES
src/support/rename.C src/support/rename.cpp NOCLASSES
src/support/abort.C src/support/abort.cpp NOCLASSES
src/support/lyxlib.h src/support/lyxlib.h NOCLASSES
src/support/ExceptionMessage.h src/support/ExceptionMessage.h ExceptionMessage
src/support/copy.C src/support/copy.cpp NOCLASSES
src/support/limited_stack.h src/support/limited_stack.h limited_stack
src/support/filefilterlist.C src/support/FileFilterList.cpp ['FileFilterList', 'Filter']
src/support/cow_ptr.h src/support/cow_ptr.h cow_ptr
src/support/os_unix.C src/support/os_unix.cpp NOCLASSES
src/support/socktools.h src/support/socktools.h NOCLASSES
src/support/forkedcontr.h src/support/ForkedcallsController.h ForkedcallsController
src/support/os.h src/support/os.h NOCLASSES
src/support/FileMonitor.h src/support/FileMonitor.h FileMonitor
src/support/copied_ptr.h src/support/copied_ptr.h copied_ptr
src/support/translator.h src/support/Translator.h Translator
src/support/filetools.C src/support/filetools.cpp NOCLASSES
src/support/unlink.C src/support/unlink.cpp NOCLASSES
src/support/os_win32.C src/support/os_win32.cpp GetFolderPath
src/support/lstrings.C src/support/lstrings.cpp NOCLASSES
src/support/qstring_helpers.C src/support/qstring_helpers.cpp NOCLASSES
src/support/getcwd.C src/support/getcwd.cpp NOCLASSES
src/support/systemcall.C src/support/Systemcall.cpp Systemcall
src/support/lyxalgo.h src/support/lyxalgo.h NOCLASSES
src/support/filefilterlist.h src/support/FileFilterList.h ['FileFilterList', 'Filter']
src/support/unicode.C src/support/unicode.cpp IconvProcessor
src/support/userinfo.C src/support/userinfo.cpp NOCLASSES
src/support/lyxtime.C src/support/lyxtime.cpp NOCLASSES
src/support/kill.C src/support/kill.cpp NOCLASSES
src/support/docstring.C src/support/docstring.cpp to_local8bit_failure
src/support/os_cygwin.C src/support/os_cygwin.cpp NOCLASSES
src/support/lyxsum.C src/support/lyxsum.cpp NOCLASSES
src/support/environment.C src/support/environment.cpp NOCLASSES
src/support/filetools.h src/support/filetools.h NOCLASSES
src/support/textutils.C src/support/textutils.cpp NOCLASSES
src/support/mkdir.C src/support/mkdir.cpp NOCLASSES
src/support/forkedcall.C src/support/Forkedcall.cpp ['ForkedProcess', 'Forkedcall']
src/support/tempname.C src/support/tempname.cpp NOCLASSES
src/support/os_win32.h src/support/os_win32.h GetFolderPath
src/support/types.h src/support/types.h NOCLASSES
src/support/lstrings.h src/support/lstrings.h NOCLASSES
src/support/forkedcallqueue.C src/support/ForkedCallQueue.cpp ForkedCallQueue
src/support/qstring_helpers.h src/support/qstring_helpers.h NOCLASSES
src/support/convert.C src/support/convert.cpp NOCLASSES
src/support/filename.C src/support/FileName.cpp ['FileName', 'DocFileName']
src/support/tests/convert.C src/support/tests/convert.cpp NOCLASSES
src/support/tests/filetools.C src/support/tests/filetools.cpp NOCLASSES
src/support/tests/lstrings.C src/support/tests/lstrings.cpp NOCLASSES
src/support/tests/boost.C src/support/tests/boost.cpp NOCLASSES
src/support/docstream.C src/support/docstream.cpp ['iconv_codecvt_facet_exception', 'idocfstream', 'odocfstream']
src/support/std_istream.h src/support/std_istream.h NOCLASSES
src/support/systemcall.h src/support/Systemcall.h Systemcall
src/support/chdir.C src/support/chdir.cpp NOCLASSES
src/support/std_ostream.h src/support/std_ostream.h NOCLASSES
src/support/unicode.h src/support/unicode.h IconvProcessor
src/support/path.C src/support/Path.cpp Path
src/support/fs_extras.C src/support/fs_extras.cpp NOCLASSES
src/support/userinfo.h src/support/userinfo.h NOCLASSES
src/support/lyxtime.h src/support/lyxtime.h NOCLASSES
src/support/docstring.h src/support/docstring.h to_local8bit_failure
src/support/debugstream.h src/support/debugstream.h basic_debugstream
src/support/environment.h src/support/environment.h NOCLASSES
src/support/textutils.h src/support/textutils.h NOCLASSES
src/support/forkedcall.h src/support/Forkedcall.h ['ForkedProcess', 'Forkedcall']
src/support/socktools.C src/support/socktools.cpp NOCLASSES
src/support/forkedcallqueue.h src/support/ForkedCallQueue.h ForkedCallQueue
src/support/forkedcontr.C src/support/ForkedcallsController.cpp ForkedcallsController
src/support/os.C src/support/os.cpp NOCLASSES
src/support/convert.h src/support/convert.h NOCLASSES
src/support/filename.h src/support/FileName.h ['FileName', 'DocFileName']
src/support/docstream.h src/support/docstream.h ['iconv_codecvt_facet_exception', 'idocfstream', 'odocfstream']
src/support/FileMonitor.C src/support/FileMonitor.cpp FileMonitor
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18024 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-26 05:12:52 +00:00
|
|
|
* Used also when expanding "~/" or contracting to "~/". (filetools.cpp)
|
2007-04-26 04:41:58 +00:00
|
|
|
* Used in emergencyWrite (BufferList.cpp) as one possible location
|
2005-01-10 19:17:43 +00:00
|
|
|
* for the dump.
|
2006-04-22 11:58:02 +00:00
|
|
|
* This may be empty (e. g. when run under a CGI environment)
|
2005-01-10 19:17:43 +00:00
|
|
|
*/
|
2007-11-02 21:04:52 +00:00
|
|
|
FileName const & home_dir() const { return home_dir_; }
|
2005-01-10 19:17:43 +00:00
|
|
|
|
2007-04-06 13:09:54 +00:00
|
|
|
/** Command to run the configure script.
|
|
|
|
* Caution: This is "ready-to-run", i.e. in the locale encoding, not
|
|
|
|
* utf8.
|
|
|
|
*/
|
2007-11-02 21:04:52 +00:00
|
|
|
std::string const & configure_command() const { return configure_command_; }
|
2006-04-22 11:58:02 +00:00
|
|
|
|
2005-01-10 19:17:43 +00:00
|
|
|
private:
|
2007-04-06 13:09:54 +00:00
|
|
|
FileName binary_dir_;
|
|
|
|
FileName system_support_dir_;
|
|
|
|
FileName build_support_dir_;
|
|
|
|
FileName user_support_dir_;
|
|
|
|
FileName locale_dir_;
|
|
|
|
mutable FileName document_dir_;
|
|
|
|
mutable FileName temp_dir_;
|
|
|
|
FileName system_temp_dir_;
|
|
|
|
FileName home_dir_;
|
2006-04-22 11:58:02 +00:00
|
|
|
std::string configure_command_;
|
2005-01-10 19:17:43 +00:00
|
|
|
bool explicit_user_support_dir_;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace support
|
|
|
|
} // namespace lyx
|
|
|
|
|
2007-11-02 21:04:52 +00:00
|
|
|
#endif // PACKAGE_H
|