home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / lyx-0.13.2.tar.gz / lyx-0.13.2.tar / lyx-0.13.2 / src / main.C < prev    next >
C/C++ Source or Header  |  1998-04-23  |  1KB  |  49 lines

  1. /* This file is part of
  2.  * ======================================================
  3.  * 
  4.  *           LyX, The Document Processor
  5.  *      
  6.  *        Copyright (C) 1995 Matthias Ettrich
  7.  *          Copyright (C) 1995-1998 The LyX Team.
  8.  *
  9.  *======================================================*/
  10.  
  11. #include <config.h>
  12. #include FORMS_H_LOCATION
  13. #include "lyx_main.h"
  14. #include "gettext.h"
  15. #include "LString.h"
  16. #include "filetools.h"
  17.  
  18. //     $Id: main.C,v 1.1.1.1 1998/04/23 16:02:53 larsbj Exp $    
  19.  
  20. #if !defined(lint) && !defined(WITH_WARNINGS)
  21. static char vcid[] = "$Id: main.C,v 1.1.1.1 1998/04/23 16:02:53 larsbj Exp $";
  22. #endif /* lint */
  23.  
  24. // I keep these here so that it will be processed as early in
  25. // the compilation process as possible.
  26. #if !defined(FL_REVISION) || (FL_REVISION < 88) \
  27.               || FL_VERSION != 0
  28. #error LyX will not compile with this version of XForms.\
  29.        Please get version 0.88.\
  30.        If you want to try to compile anyway, delete this test in src/main.C.
  31. #endif
  32.  
  33.  
  34. int main(int argc, char *argv[])
  35. {
  36.     // lyx_localedir is used by gettext_init() if we have
  37.     //   i18n support built-in
  38.     LString lyx_localedir = getEnvPath("LYX_LOCALEDIR");
  39.     if (lyx_localedir.empty())
  40.         lyx_localedir = LOCALEDIR;
  41.     
  42.     // initialize for internationalized version *EK*
  43.     locale_init();
  44.     gettext_init();
  45.  
  46.     LyX lyx(&argc,argv);
  47.     return 0; // ok
  48. }
  49.