2002-06-12 09:47:10 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file main.C
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-03-21 17:27:08 +00:00
|
|
|
|
*
|
2003-04-24 22:18:55 +00:00
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
|
|
|
|
* \author Jean Marc Lasgouttes
|
2003-08-23 00:17:00 +00:00
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS.
|
2002-06-12 09:47:10 +00:00
|
|
|
|
*/
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
|
|
#include <config.h>
|
2000-03-28 02:18:55 +00:00
|
|
|
|
|
2003-11-01 13:03:03 +00:00
|
|
|
|
#include "debug.h"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
#include "lyx_main.h"
|
|
|
|
|
#include "gettext.h"
|
2004-04-13 06:27:29 +00:00
|
|
|
|
|
2001-05-17 15:11:01 +00:00
|
|
|
|
#include "support/os.h"
|
2002-11-08 11:37:42 +00:00
|
|
|
|
|
2005-01-31 10:42:26 +00:00
|
|
|
|
#include <boost/filesystem/path.hpp>
|
|
|
|
|
|
2003-06-11 07:10:07 +00:00
|
|
|
|
#ifdef HAVE_IOS
|
2003-06-10 14:39:45 +00:00
|
|
|
|
#include <ios>
|
2003-06-11 07:10:07 +00:00
|
|
|
|
#endif
|
2003-06-10 14:39:45 +00:00
|
|
|
|
|
2003-09-16 11:03:20 +00:00
|
|
|
|
|
2005-01-31 10:42:26 +00:00
|
|
|
|
namespace fs = boost::filesystem;
|
2003-09-09 22:13:45 +00:00
|
|
|
|
|
2000-03-28 02:18:55 +00:00
|
|
|
|
int main(int argc, char * argv[])
|
|
|
|
|
{
|
2003-06-11 07:10:07 +00:00
|
|
|
|
#ifdef HAVE_IOS
|
|
|
|
|
std::ios_base::sync_with_stdio(false);
|
|
|
|
|
#endif
|
2005-01-31 10:42:26 +00:00
|
|
|
|
fs::path::default_name_check(fs::no_check);
|
|
|
|
|
|
2003-11-01 13:03:03 +00:00
|
|
|
|
// To avoid ordering of global object problems with some
|
|
|
|
|
// stdlibs we do the initialization here, but still as
|
|
|
|
|
// early as possible.
|
2006-10-21 00:16:43 +00:00
|
|
|
|
lyx::lyxerr.rdbuf(std::cerr.rdbuf());
|
2003-06-10 14:39:45 +00:00
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
lyx::support::os::init(argc, argv);
|
2000-06-12 11:27:15 +00:00
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
|
// initialize for internationalized version *EK*
|
2006-10-21 00:16:43 +00:00
|
|
|
|
lyx::locale_init();
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
2006-11-18 17:47:12 +00:00
|
|
|
|
lyx::LyX the_lyx_instance;
|
|
|
|
|
|
|
|
|
|
return the_lyx_instance.exec(argc, argv);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
}
|