2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
6 * Copyright 1995 Matthias Ettrich
7 * Copyright 1995-1996 The Lyx Team
9 * This file is Copyright (C) 1996-1999
12 *======================================================
41 void scanError(LyXLex &);
43 bool getFirstError(int *line, string *text);
45 bool getNextError(int *line, string *text);
47 void insertError(int line, string const &error_desc,
48 string const &error_text);
56 int getStatus() { return status; }
72 Error(int line, string const &desc, string const &text) {
83 /// what line in the TeX file the error occured in
87 /// The line/cmd that caused the error.
100 /** All the different files produced by TeX.
102 This is the files mentioned on page 208-9 in Lamports book +
108 /// used for table of contents et.al.
110 /// written by BibTeX
114 /// glossary (not supported by LyX so far)
118 /// written by makeindex
122 /// the LaTeX log file
126 /// table of contents
132 /// list of algorithms
136 /** Return values from scanLogFile() and run() (to come)
138 This enum should be enlarged a bit so that one could
139 get more feedback from the LaTeX run.
149 UNDEF_REF = 4, // Reference '...' on page ... undefined.
151 UNDEF_CIT = 8, // Citation '...' on page ... undefined.
153 RERUN = 16, // Label(s) may have changed. Rerun to get...
163 PACKAGE_WARNING = 512,
169 TOO_MANY_ERRORS = 4096,
171 ERRORS = TEX_ERROR + LATEX_ERROR,
173 WARNINGS = TEX_WARNING + LATEX_WARNING + PACKAGE_WARNING
178 cmd = the latex command, file = name of the (temporary) latex file,
179 path = name of the files original path.
181 LaTeX(string const & cmd, string const & file, string const & path);
183 /// runs LaTeX several times
184 int run(TeXErrors &, MiniBuffer *);
187 int getNumErrors() { return num_errors;}
189 /// use this for running LaTeX once
192 /** The dependency file.
194 We store the file dependencies in this file.
195 the depency file is on the format:
196 <file> <new checksum> <old checksum>
204 LaTeX(LaTeX const &) {}
207 void deplog(DepTable & head);
210 void deptex(DepTable & head);
213 int scanLogFile(TeXErrors &);
216 bool runMakeIndex(string const &);
219 bool runBibTeX(string const &);
235 // used by scanLogFile