]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/tex_helpers.h
fix crash due to invalidated iterator
[lyx.git] / src / frontends / controllers / tex_helpers.h
index a2e81392fd1fd8e724188568b1cc9bafd4ae426a..18655617831efd90c1a9df131ae57f897f9704fc 100644 (file)
@@ -1,20 +1,22 @@
+// -*- C++ -*-
 /**
  * \file tex_helpers.h
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Herbert Voss 
+ * \author Herbert Voß
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef TEX_HELPERS_H
 #define TEX_HELPERS_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
+#include <string>
+#include <vector>
 
-#include "LString.h"
+namespace lyx {
+namespace frontend {
 
 // build filelists of all availabe bst/cls/sty-files. done through
 // kpsewhich and an external script, saved in *Files.lst
@@ -23,13 +25,18 @@ void rescanTexStyles();
 /// rebuild the textree
 void texhash();
 
-/// return one of the three texfiles
-string const getTexFileList(string const & filename, bool withFullPath);
+/** Fill \c contents from one of the three texfiles.
+ *  Each entry in the file list is returned as a name_with_path
+ */
+void getTexFileList(std::string const & filename, std::vector<std::string> & contents);
 
 /// get the options of stylefile
-string const getListOfOptions(string const & classname, string const & type);
+std::string const getListOfOptions(std::string const & classname, std::string const & type);
 
 /// get a class with full path from the list
-string const getTexFileFromList(string const & classname, string const & type);
+std::string const getTexFileFromList(std::string const & classname, std::string const & type);
+
+} // namespace frontend
+} // namespace lyx
 
 #endif // TEX_HELPERS_H