]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/tex2lyx.h
Now tex2lyx is able to set the encoding from what it reads in the preamble.
[lyx.git] / src / tex2lyx / tex2lyx.h
index 16b84abfe89eff350b4a9bbd4d5f2d29a8219fc7..4850eeea8826ccc09402eba68efdcc9b9a3e6fba 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author André Pönitz
+ * \author André Pönitz
  * \author Jean-Marc Lasgouttes
  *
  * Full author contact details are available in file CREDITS.
@@ -28,12 +28,16 @@ namespace support { class FileName; }
 
 class Context;
 
+/// A trivial subclass, just to give us a public default constructor
+class TeX2LyXDocClass : public DocumentClass
+{};
+
 /// in preamble.cpp
-TextClass const parse_preamble(Parser & p, std::ostream & os, std::string const & forceclass);
+void parse_preamble(Parser & p, std::ostream & os, 
+       std::string const & forceclass, TeX2LyXDocClass & tc);
 
 /// used packages with options
 extern std::map<std::string, std::vector<std::string> > used_packages;
-extern Layout_ptr captionlayout;
 
 /// in text.cpp
 std::string translate_len(std::string const &);