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"
20 void getTexFileList(ControlTexinfo::texFileSuffix type,
21 std::vector<string> & list)
25 case ControlTexinfo::bst:
26 filename = "bstFiles.lst";
28 case ControlTexinfo::cls:
29 filename = "clsFiles.lst";
31 case ControlTexinfo::sty:
32 filename = "styFiles.lst";
35 getTexFileList(filename, list);
37 // build filelists of all availabe bst/cls/sty-files.
38 // Done through kpsewhich and an external script,
39 // saved in *Files.lst
41 getTexFileList(filename, list);
46 ControlTexinfo::ControlTexinfo(Dialog & parent)
47 : Dialog::Controller(parent)
51 void ControlTexinfo::viewFile(string const & filename) const
53 string const arg = "file " + filename;
54 kernel().dispatch(FuncRequest(LFUN_DIALOG_SHOW, arg));
58 string const ControlTexinfo::getClassOptions(string const & filename) const
60 return getListOfOptions(filename, "cls");