X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FChktex.h;h=16481e7d679c555328d1a7161b06830f6b7bccc8;hb=6780a3040958c937d6441c32f333c5ee55f64e3c;hp=5fde42666c018948a3adb1450ff4e9a169c4193b;hpb=27de1486ca34aaad446adb798d71a77d6f6304da;p=lyx.git diff --git a/src/Chktex.h b/src/Chktex.h index 5fde42666c..16481e7d67 100644 --- a/src/Chktex.h +++ b/src/Chktex.h @@ -1,56 +1,53 @@ // -*- C++ -*- -/* This file is part of - * ====================================================== - * - * LyX, The Document Processor +/** + * \file Chktex.h + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. * - * Copyright (C) 1995 Matthias Ettrich - * Copyright (C) 1995-1998 The LyX Team. + * \author Asger Alstrup * - * This file is Copyright (C) 1997 - * Asger Alstrup - * - *====================================================== + * Full author contact details are available in file CREDITS. */ -#ifndef _CHKTEX_H -#define _CHKTEX_H +#ifndef CHKTEX_H +#define CHKTEX_H + +#include -#ifdef __GNUG__ -#pragma interface -#endif -#include "LString.h" +namespace lyx { -class LyXLex; +class Lexer; class TeXErrors; + /// class Chktex { public: /** - cmd = the chktex command, file = name of the (temporary) latex file, - path = name of the files original path. - */ - Chktex(LString const & cmd, LString const & file, - LString const & path); - + @param cmd the chktex command. + @param file name of the (temporary) latex file. + @param path name of the files original path. + */ + Chktex(std::string const & cmd, std::string const & file, + std::string const & path); + /** Runs chktex. - Returns -1 if fail, number of messages otherwise. + @return -1 if fail, number of messages otherwise. */ int run(TeXErrors &); private: /// int scanLogFile(TeXErrors &); - /// - LString cmd; - + std::string cmd; /// - LString file; - + std::string file; /// - LString path; + std::string path; }; + +} // namespace lyx + #endif