]> git.lyx.org Git - lyx.git/blob - src/Chktex.h
white-space changes, removed definitions.h several enum changes because of this,...
[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-1999 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           cmd = the chktex command, file = name of the (temporary) latex file,
33           path = name of the files original path.
34           */
35         Chktex(string const & cmd, string const & file,
36                string const & path);
37         
38         /** Runs chktex.
39           Returns -1 if fail, number of messages otherwise.
40           */
41         int run(TeXErrors &);
42 private:
43         ///
44         int scanLogFile(TeXErrors &);
45
46         ///
47         string cmd;
48
49         ///
50         string file;
51         
52         ///
53         string path;
54 };
55
56 #endif