X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLaTeX.h;h=99e3a56e26a8c7eb7c105c0552007519c508bfe6;hb=a858be7332e331e0244e4dba7b0931b6072ffd3d;hp=5eea18b5ce38eadd692d96e998830b06ffd57a65;hpb=27de1486ca34aaad446adb798d71a77d6f6304da;p=lyx.git diff --git a/src/LaTeX.h b/src/LaTeX.h index 5eea18b5ce..99e3a56e26 100644 --- a/src/LaTeX.h +++ b/src/LaTeX.h @@ -12,8 +12,8 @@ *====================================================== */ -#ifndef _LATEX_H -#define _LATEX_H +#ifndef LATEX_H +#define LATEX_H #ifdef __GNUG__ #pragma interface @@ -30,8 +30,8 @@ class TeXErrors { public: /// TeXErrors() { - errors = NULL; - next_error = NULL; + errors = 0; + next_error = 0; status = 0; number_of_errors = 0; } @@ -40,12 +40,12 @@ public: /// void scanError(LyXLex &); /// - bool getFirstError(int *line, LString *text); + bool getFirstError(int *line, string *text); /// - bool getNextError(int *line, LString *text); + bool getNextError(int *line, string *text); /// - void insertError(int line, LString const &error_desc, - LString const &error_text); + void insertError(int line, string const &error_desc, + string const &error_text); /// void printErrors(); /// @@ -65,12 +65,12 @@ private: struct Error { /// Error () { - next_error = NULL; + next_error = 0; error_in_line = 0; } /// - Error(int line, LString const &desc, LString const &text) { - next_error = NULL; + Error(int line, string const &desc, string const &text) { + next_error = 0; error_in_line = line; error_desc = desc; error_text = text; @@ -83,9 +83,9 @@ private: /// what line in the TeX file the error occured in int error_in_line; /// The kind of error - LString error_desc; + string error_desc; /// The line/cmd that caused the error. - LString error_text; + string error_text; }; /// Error *errors; @@ -178,7 +178,7 @@ public: cmd = the latex command, file = name of the (temporary) latex file, path = name of the files original path. */ - LaTeX(LString const & cmd, LString const & file, LString const & path); + LaTeX(string const & cmd, string const & file, string const & path); /// runs LaTeX several times int run(TeXErrors &, MiniBuffer *); @@ -195,7 +195,7 @@ protected: the depency file is on the format: */ - LString depfile; + string depfile; /// LaTeX() {} @@ -213,19 +213,19 @@ protected: int scanLogFile(TeXErrors &); /// - bool runMakeIndex(LString const &); + bool runMakeIndex(string const &); /// - bool runBibTeX(LString const &); + bool runBibTeX(string const &); /// - LString cmd; + string cmd; /// - LString file; + string file; /// - LString path; + string path; /// TEX_FILES tex_files;