2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2001 The LyX Team.
9 * ======================================================
11 * \file ControlTexinfo.h
12 * \author Herbert Voss <voss@perce.de>
15 #ifndef CONTROLTEXINFO_H
16 #define CONTROLTEXINFO_H
22 #include "ControlDialog_impl.h"
25 /** A controller for Texinfo dialogs. */
27 class ControlTexinfo : public ControlDialogBI {
29 /// the file extensions
30 enum texFileSuffix {cls, sty, bst};
32 ControlTexinfo(LyXView &, Dialogs &);
33 /// show contents af a file
34 void viewFile(string const filename) const;
35 /// show all classoptions
36 string const getClassOptions(string const & filename) const;
37 /// build new cls bst sty - lists
38 void rescanStyles() const;
39 /// build new bst sty cls lists
40 void runTexhash() const;
42 string const getContents(texFileSuffix type, bool withPath) const;
47 virtual void apply() {}
50 #endif // CONTROLTEXINFO_H