]> git.lyx.org Git - lyx.git/blob - src/Chktex.h
Alfredo's second patch
[lyx.git] / src / Chktex.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  *
5  *           LyX, The Document Processor
6  *
7  *           Copyright 1995 Matthias Ettrich
8  *           Copyright 1995-2001 The LyX Team.
9  *
10  *           This file is Copyright 1997
11  *           Asger Alstrup
12  *
13  * ======================================================
14  */
15
16 #ifndef CHKTEX_H
17 #define CHKTEX_H
18
19 #include "LString.h"
20
21 class LyXLex;
22 class TeXErrors;
23
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.
31         */
32         Chktex(string const & cmd, string const & file,
33                string const & path);
34
35         /** Runs chktex.
36             @return -1 if fail, number of messages otherwise.
37           */
38         int run(TeXErrors &);
39 private:
40         ///
41         int scanLogFile(TeXErrors &);
42
43         ///
44         string cmd;
45
46         ///
47         string file;
48
49         ///
50         string path;
51 };
52
53 #endif