]> git.lyx.org Git - features.git/blobdiff - src/LaTeX.h
HP-UX compile fix, thai keymap
[features.git] / src / LaTeX.h
index b57a57e6ab6c522bcf90c295cbb86dbbf1585d4a..84fad139a7af6d063ead3ebb5050d0b481263698 100644 (file)
@@ -22,8 +22,9 @@
 #include "LString.h"
 #include "DepTable.h"
 #include <vector>
+#include <set>
 
-#include "support/utility.hpp"
+#include <boost/utility.hpp>
 
 class MiniBuffer;
 
@@ -61,6 +62,34 @@ private:
        Errors errors;
 };
 
+class Aux_Info {
+public:
+       ///
+       Aux_Info() {}
+       ///
+       string aux_file;
+       ///
+       std::set<string> citations;
+       ///
+       std::set<string> databases;
+       ///
+       std::set<string> styles;
+       ///
+       friend
+       bool operator==(Aux_Info const & a, Aux_Info const & o);
+};
+
+
+///
+inline
+bool operator==(Aux_Info const & a, Aux_Info const & o)
+{
+       return a.aux_file == o.aux_file &&
+               a.citations == o.citations &&
+               a.databases == o.databases &&
+               a.styles == o.styles;
+}
+
 
 ///
 class LaTeX : public noncopyable {
@@ -100,6 +129,8 @@ public:
                ///
                TOO_MANY_ERRORS = 4096,
                ///
+               ERROR_RERUN = 8192,
+               ///
                ERRORS = TEX_ERROR + LATEX_ERROR,
                ///
                WARNINGS = TEX_WARNING + LATEX_WARNING + PACKAGE_WARNING
@@ -123,6 +154,10 @@ public:
 
        /// use this for running LaTeX once
        int operator() ();
+
+       ///
+       int scanLogFile(TeXErrors &);
+
 protected:
        /// The dependency file.
        string depfile;
@@ -131,16 +166,23 @@ protected:
        void deplog(DepTable & head);
 
        ///
-       int scanLogFile(TeXErrors &);
+       bool runMakeIndex(string const &);
 
        ///
-       bool runMakeIndex(string const &);
+       std::vector<Aux_Info> const scanAuxFiles(string const &);
+
+       ///
+       Aux_Info const scanAuxFile(string const &);
 
        ///
-       bool scanAux(DepTable &);
+       void scanAuxFile(string const &, Aux_Info &);
        
        ///
-       bool runBibTeX(string const &, DepTable &);
+       void updateBibtexDependencies(DepTable &,
+                                     std::vector<Aux_Info> const &);
+
+       ///
+       bool runBibTeX(std::vector<Aux_Info> const &);
 
        ///
        void deleteFilesOnError() const;