2003-08-23 00:17:00 +00:00
|
|
|
|
// -*- C++ -*-
|
2002-06-20 20:41:00 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file tex_helpers.h
|
2002-09-05 15:14:23 +00:00
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-06-20 20:41:00 +00:00
|
|
|
|
*
|
2003-09-07 01:45:40 +00:00
|
|
|
|
* \author Herbert Vo<EFBFBD>
|
2002-09-05 14:10:50 +00:00
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* Full author contact details are available in file CREDITS.
|
2002-06-20 20:41:00 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef TEX_HELPERS_H
|
|
|
|
|
#define TEX_HELPERS_H
|
|
|
|
|
|
2003-10-07 06:45:25 +00:00
|
|
|
|
#include <string>
|
2003-06-20 14:03:49 +00:00
|
|
|
|
#include <vector>
|
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
|
namespace lyx {
|
|
|
|
|
namespace frontend {
|
2002-06-21 16:35:29 +00:00
|
|
|
|
|
2006-07-19 16:25:54 +00:00
|
|
|
|
/** Build filelists of all availabe bst/cls/sty-files. Done through
|
|
|
|
|
* kpsewhich and an external script, saved in *Files.lst.
|
|
|
|
|
*/
|
2002-06-20 20:41:00 +00:00
|
|
|
|
void rescanTexStyles();
|
|
|
|
|
|
|
|
|
|
/// rebuild the textree
|
|
|
|
|
void texhash();
|
|
|
|
|
|
2003-06-20 14:03:49 +00:00
|
|
|
|
/** Fill \c contents from one of the three texfiles.
|
|
|
|
|
* Each entry in the file list is returned as a name_with_path
|
|
|
|
|
*/
|
2003-10-06 15:43:21 +00:00
|
|
|
|
void getTexFileList(std::string const & filename, std::vector<std::string> & contents);
|
2002-06-20 20:41:00 +00:00
|
|
|
|
|
|
|
|
|
/// get the options of stylefile
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string const getListOfOptions(std::string const & classname, std::string const & type);
|
2002-06-20 20:41:00 +00:00
|
|
|
|
|
|
|
|
|
/// get a class with full path from the list
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string const getTexFileFromList(std::string const & classname, std::string const & type);
|
2002-06-20 20:41:00 +00:00
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
|
} // namespace frontend
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
2002-06-20 20:41:00 +00:00
|
|
|
|
#endif // TEX_HELPERS_H
|