Consider the case where there is not any layout name.
[lyx.git] / src / Chktex.h
blob8af93a465c6d656a41d99b4a0c11fc4cb1da7a7d
1 // -*- C++ -*-
2 /**
3 * \file Chktex.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Asger Alstrup
9 * Full author contact details are available in file CREDITS.
12 #ifndef CHKTEX_H
13 #define CHKTEX_H
15 class LyXLex;
16 class TeXErrors;
18 #include <string>
21 ///
22 class Chktex {
23 public:
24 /**
25 @param cmd the chktex command.
26 @param file name of the (temporary) latex file.
27 @param path name of the files original path.
29 Chktex(std::string const & cmd, std::string const & file,
30 std::string const & path);
32 /** Runs chktex.
33 @return -1 if fail, number of messages otherwise.
35 int run(TeXErrors &);
36 private:
37 ///
38 int scanLogFile(TeXErrors &);
40 ///
41 std::string cmd;
43 ///
44 std::string file;
46 ///
47 std::string path;
50 #endif