1999-09-27 18:44:28 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
1999-11-15 12:01:38 +00:00
|
|
|
* ======================================================
|
1999-09-27 18:44:28 +00:00
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
1999-10-02 16:21:10 +00:00
|
|
|
* Copyright 1995 Matthias Ettrich
|
|
|
|
* Copyright 1995-1999 The LyX Team.
|
1999-09-27 18:44:28 +00:00
|
|
|
*
|
1999-10-02 16:21:10 +00:00
|
|
|
* This file is Copyright 1997
|
1999-09-27 18:44:28 +00:00
|
|
|
* Asger Alstrup
|
|
|
|
*
|
1999-11-15 12:01:38 +00:00
|
|
|
* ======================================================
|
1999-09-27 18:44:28 +00:00
|
|
|
*/
|
|
|
|
|
1999-10-02 16:21:10 +00:00
|
|
|
#ifndef CHKTEX_H
|
|
|
|
#define CHKTEX_H
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "LString.h"
|
|
|
|
|
|
|
|
class LyXLex;
|
|
|
|
class TeXErrors;
|
|
|
|
|
|
|
|
///
|
|
|
|
class Chktex {
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
cmd = the chktex command, file = name of the (temporary) latex file,
|
|
|
|
path = name of the files original path.
|
|
|
|
*/
|
1999-10-02 16:21:10 +00:00
|
|
|
Chktex(string const & cmd, string const & file,
|
|
|
|
string const & path);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** Runs chktex.
|
|
|
|
Returns -1 if fail, number of messages otherwise.
|
|
|
|
*/
|
|
|
|
int run(TeXErrors &);
|
|
|
|
private:
|
|
|
|
///
|
|
|
|
int scanLogFile(TeXErrors &);
|
|
|
|
|
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string cmd;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string file;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string path;
|
1999-09-27 18:44:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|