2 * \file ControlTexinfo.C
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
13 #include "ControlTexinfo.h"
14 #include "funcrequest.h"
17 void getTexFileList(ControlTexinfo::texFileSuffix type,
18 std::vector<string> & list)
22 case ControlTexinfo::bst:
23 filename = "bstFiles.lst";
25 case ControlTexinfo::cls:
26 filename = "clsFiles.lst";
28 case ControlTexinfo::sty:
29 filename = "styFiles.lst";
32 getTexFileList(filename, list);
34 // build filelists of all availabe bst/cls/sty-files.
35 // Done through kpsewhich and an external script,
36 // saved in *Files.lst
38 getTexFileList(filename, list);
43 ControlTexinfo::ControlTexinfo(Dialog & parent)
44 : Dialog::Controller(parent)
48 void ControlTexinfo::viewFile(string const & filename) const
50 string const arg = "file " + filename;
51 kernel().dispatch(FuncRequest(LFUN_DIALOG_SHOW, arg));
55 string const ControlTexinfo::getClassOptions(string const & filename) const
57 return getListOfOptions(filename, "cls");