]> git.lyx.org Git - lyx.git/blobdiff - src/ImportLaTeX.C
Dekel's patch -- I didn't fix the xforms-0.88 keysyms stuff so it still doesn't finis...
[lyx.git] / src / ImportLaTeX.C
index 0a38e96c3ce75164881d4f77960e9b52548f67b1..acafd3b822ff046f03786dd6738c297783bd792b 100644 (file)
@@ -1,14 +1,14 @@
 /* This file is part of
- * ======================================================
+ * ====================================================== 
  * 
  *           LyX, The Document Processor        
  *          Copyright 1995 Matthias Ettrich
- *           Copyright 1995-1999 The LyX Team.
+ *           Copyright 1995-2000 The LyX Team.
  *
  *           This file is Copyright 1998
  *           Asger Alstrup
  *
- *======================================================
+ * ====================================================== 
  */
 
 #include <config.h>
@@ -23,7 +23,6 @@
 #include "support/filetools.h"
 #include "bufferlist.h"
 
-extern LyXRC * lyxrc;
 extern BufferList bufferlist;
 
 /*
@@ -39,12 +38,12 @@ ImportLaTeX::ImportLaTeX(string const & file)
 Buffer * ImportLaTeX::run()
 {
        // run reLyX
-       string tmp = lyxrc->relyx_command + " -f " + file;
+       string tmp = lyxrc.relyx_command + " -f " + file;
         Systemcalls one;
        Buffer * buf = 0;
-       int result= one.startscript(Systemcalls::System, tmp);
-       if (result==0) {
-               string filename = ChangeExtension(file, ".lyx", false);
+       int result = one.startscript(Systemcalls::System, tmp);
+       if (result == 0) {
+               string filename = ChangeExtension(file, ".lyx");
                // File was generated without problems. Load it.
                buf = bufferlist.loadLyXFile(filename);
        }