This commit was manufactured by cvs2svn to create tag
[lyx.git] / src / Chktex.h
blobf45d14d82e8b2edc0f0808228de1ae77d2bdf5d7
1 // -*- C++ -*-
2 /* This file is part of
3 * ======================================================
4 *
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-1999 The LyX Team.
10 * This file is Copyright 1997
11 * Asger Alstrup
13 * ======================================================
16 #ifndef CHKTEX_H
17 #define CHKTEX_H
19 #ifdef __GNUG__
20 #pragma interface
21 #endif
23 #include "LString.h"
25 class LyXLex;
26 class TeXErrors;
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.
35 Chktex(string const & cmd, string const & file,
36 string const & path);
38 /** Runs chktex.
39 Returns -1 if fail, number of messages otherwise.
41 int run(TeXErrors &);
42 private:
43 ///
44 int scanLogFile(TeXErrors &);
46 ///
47 string cmd;
49 ///
50 string file;
52 ///
53 string path;
56 #endif