whitespace.
[lyx.git] / src / Chktex.h
blob16481e7d679c555328d1a7161b06830f6b7bccc8
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 #include <string>
18 namespace lyx {
20 class Lexer;
21 class TeXErrors;
24 ///
25 class Chktex {
26 public:
27 /**
28 @param cmd the chktex command.
29 @param file name of the (temporary) latex file.
30 @param path name of the files original path.
32 Chktex(std::string const & cmd, std::string const & file,
33 std::string const & path);
35 /** Runs chktex.
36 @return -1 if fail, number of messages otherwise.
38 int run(TeXErrors &);
39 private:
40 ///
41 int scanLogFile(TeXErrors &);
42 ///
43 std::string cmd;
44 ///
45 std::string file;
46 ///
47 std::string path;
51 } // namespace lyx
53 #endif