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
18 /** A controller for Texinfo dialogs. */
20 class ControlTexinfo : public Dialog::Controller {
23 ControlTexinfo(Dialog &);
25 virtual bool initialiseParams(string const &) { return true; }
27 virtual void clearParams() {}
29 virtual void dispatchParams() {}
31 virtual bool isBufferDependent() const { return false; }
34 /// the file extensions
35 enum texFileSuffix {cls, sty, bst};
36 /// show contents af a file
37 void viewFile(string const filename) const;
38 /// show all classoptions
39 string const getClassOptions(string const & filename) const;
40 /// build new cls bst sty - lists
41 void rescanStyles() const;
42 /// build new bst sty cls lists
43 void runTexhash() const;
45 string const getContents(texFileSuffix type, bool withPath) const;
48 virtual void apply() {}
51 #endif // CONTROLTEXINFO_H