]> git.lyx.org Git - features.git/blobdiff - src/LaTeX.h
Added new signals to Buffer, connect/disconnect to them in BufferView, added BufferVi...
[features.git] / src / LaTeX.h
index 7b2cfa6fc28c799aec902afd01e2860e88780ef9..d3a375ae746a1615e4d1a7d7a7c4fdf1ac8fdae6 100644 (file)
 #ifndef LATEX_H
 #define LATEX_H
 
+#include "latexrunparams.h"
 #include "LString.h"
 #include "DepTable.h"
 #include <vector>
 #include <set>
 
 #include <boost/utility.hpp>
-
-class LyXFunc;
+#include <boost/signals/signal1.hpp>
 
 ///
 class TeXErrors {
@@ -124,15 +124,19 @@ public:
                WARNINGS = TEX_WARNING + LATEX_WARNING + PACKAGE_WARNING
        };
 
+       /// This signal emits an informative message
+       boost::signal1<void, string> message;
+
 
        /**
           cmd = the latex command, file = name of the (temporary) latex file,
           path = name of the files original path.
        */
-       LaTeX(string const & cmd, string const & file, string const & path);
+       LaTeX(string const & cmd, LatexRunParams const &,
+             string const & file, string const & path);
 
        /// runs LaTeX several times
-       int run(TeXErrors &, LyXFunc *);
+       int run(TeXErrors &);
 
        ///
        int getNumErrors() { return num_errors;}
@@ -186,6 +190,9 @@ private:
 
        /// The name of the final output file.
        string output_file;
+
+       ///
+       LatexRunParams runparams;
 };
 
 #endif