]> git.lyx.org Git - lyx.git/blob - src/Chktex.h
fix typo that put too many include paths for most people
[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 #ifdef __GNUG__
20 #pragma interface
21 #endif
22
23 #include "LString.h"
24
25 class LyXLex;
26 class TeXErrors;
27
28 ///
29 class Chktex {
30 public:
31         /**
32           @param cmd the chktex command.
33           @param file name of the (temporary) latex file.
34           @param path name of the files original path.
35         */
36         Chktex(string const & cmd, string const & file,
37                string const & path);
38
39         /** Runs chktex.
40             @return -1 if fail, number of messages otherwise.
41           */
42         int run(TeXErrors &);
43 private:
44         ///
45         int scanLogFile(TeXErrors &);
46
47         ///
48         string cmd;
49
50         ///
51         string file;
52
53         ///
54         string path;
55 };
56
57 #endif