1999-09-27 18:44:28 +00:00
|
|
|
/* This file is part of
|
1999-11-15 12:01:38 +00:00
|
|
|
* ======================================================
|
1999-09-27 18:44:28 +00:00
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
1999-10-02 16:21:10 +00:00
|
|
|
* Copyright 1995 Matthias Ettrich
|
2000-02-04 09:38:32 +00:00
|
|
|
* Copyright 1995-2000 The LyX Team.
|
1999-09-27 18:44:28 +00:00
|
|
|
*
|
1999-11-15 12:01:38 +00:00
|
|
|
* ====================================================== */
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
#include <config.h>
|
2000-03-28 02:18:55 +00:00
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
#include "lyx_main.h"
|
|
|
|
#include "gettext.h"
|
|
|
|
#include "LString.h"
|
1999-10-02 16:21:10 +00:00
|
|
|
#include "support/filetools.h"
|
2000-09-11 15:30:21 +00:00
|
|
|
#include "frontends/GUIRunTime.h"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
2000-03-28 02:18:55 +00:00
|
|
|
|
|
|
|
int main(int argc, char * argv[])
|
|
|
|
{
|
2000-09-19 11:18:35 +00:00
|
|
|
int const val = GUIRunTime::initApplication(argc, argv);
|
2000-09-11 15:30:21 +00:00
|
|
|
if (val)
|
|
|
|
return val;
|
2000-06-12 11:27:15 +00:00
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
// lyx_localedir is used by gettext_init() is we have
|
|
|
|
// i18n support built-in
|
1999-10-02 16:21:10 +00:00
|
|
|
string lyx_localedir = GetEnvPath("LYX_LOCALEDIR");
|
1999-09-27 18:44:28 +00:00
|
|
|
if (lyx_localedir.empty())
|
|
|
|
lyx_localedir = LOCALEDIR;
|
|
|
|
|
|
|
|
// initialize for internationalized version *EK*
|
2000-09-19 11:18:35 +00:00
|
|
|
locale_init(); // macro
|
|
|
|
gettext_init(); // macro
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
#ifdef __EMX__
|
|
|
|
_wildcard(&argc, &argv);
|
|
|
|
#endif
|
|
|
|
|
1999-11-15 12:01:38 +00:00
|
|
|
LyX lyx(&argc, argv);
|
2000-02-04 09:38:32 +00:00
|
|
|
return 0; // SUCCESS
|
1999-09-27 18:44:28 +00:00
|
|
|
}
|