]> git.lyx.org Git - lyx.git/blobdiff - src/ImportNoweb.C
Dekel's patch -- I didn't fix the xforms-0.88 keysyms stuff so it still doesn't finis...
[lyx.git] / src / ImportNoweb.C
index fd8d5f88de48bd2570b673c06909d8305d141ec4..31c30bdd7890cb299200e6a7aeea0f71f604c13e 100644 (file)
@@ -3,7 +3,7 @@
  * 
  *           LyX, The Document Processor        
  *          Copyright 1995 Matthias Ettrich
- *           Copyright 1995-1999 The LyX Team.
+ *           Copyright 1995-2000 The LyX Team.
  *
  *           This file is Copyright 1999
  *           Kayvan A. Sylvan
 #endif
 
 #include <fstream>
-using std::ifstream;
+#include <cstdlib>
 
 #include "ImportNoweb.h"
 #include "lyxrc.h"
 #include "support/syscall.h"
 #include "bufferlist.h"
 
-extern LyXRC * lyxrc;
+using std::ifstream;
+using std::getline;
+
 extern BufferList bufferlist;
 
 /*
@@ -35,7 +37,7 @@ extern BufferList bufferlist;
 Buffer * ImportNoweb::run()
 {
        // run reLyX -n
-       string tmp = lyxrc->relyx_command + " -n -c " +
+       string tmp = lyxrc.relyx_command + " -n -c " +
                                        documentclass() + " -f " + file;
         Systemcalls one;
        Buffer * buf = 0;