]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/tex2lyx.C
Removed all redundant using directives from the source.
[lyx.git] / src / tex2lyx / tex2lyx.C
index ed941fc739c562be580e2b3a64dd007a1ae74a5e..b357b03be8196ec16fe7d2c597c0b3afb4a06ba8 100644 (file)
@@ -1,10 +1,19 @@
-/** The .tex to .lyx converter
-    \author André Pönitz (2003)
+/**
+ * \file tex2lyx.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
  */
 
 // {[(
 
+#include <config.h>
+
 #include "tex2lyx.h"
+#include "context.h"
 
 #include "debug.h"
 #include "lyx_main.h"
 #include <sstream>
 #include <vector>
 
+using std::endl;
 using std::cout;
 using std::cerr;
-using std::endl;
 using std::getline;
-using std::istream;
+
 using std::ifstream;
 using std::istringstream;
-using std::ostream;
 using std::ostringstream;
 using std::stringstream;
 using std::string;
@@ -130,8 +138,9 @@ int main(int argc, char * argv[])
        stringstream ss;
        LyXTextClass textclass = parse_preamble(p, ss);
        active_environments.push_back("document");
-       parse_text(p, ss, FLAG_END, true, textclass);
-       check_end_layout(ss);
+       Context context(true, textclass);
+       parse_text(p, ss, FLAG_END, true, context);
+       context.check_end_layout(ss);
        ss << "\n\\end_document\n";
 
        ss.seekg(0);