3 * \file ControlTexinfo.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef CONTROLTEXINFO_H
13 #define CONTROLTEXINFO_H
17 #include "tex_helpers.h"
22 /** A controller for Texinfo dialogs. */
24 class ControlTexinfo : public Dialog::Controller {
27 ControlTexinfo(Dialog &);
28 /// Nothing to initialise in this case.
29 virtual bool initialiseParams(std::string const &) { return true; }
31 virtual void clearParams() {}
33 virtual void dispatchParams() {}
35 virtual bool isBufferDependent() const { return false; }
38 /// the file extensions
39 enum texFileSuffix {cls, sty, bst};
40 /// show contents af a file
41 void viewFile(std::string const & filename) const;
42 /// show all classoptions
43 std::string const getClassOptions(std::string const & filename) const;
46 virtual void apply() {}
50 /** Fill \c contents from one of the three texfiles.
51 * Each entry in the file list is returned as a pair<name_with_path, name_only>
53 void getTexFileList(ControlTexinfo::texFileSuffix type,
54 std::vector<std::string> & contents);
56 } // namespace frontend
59 #endif // CONTROLTEXINFO_H