]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlTexinfo.h
prefs/tabular MVC work
[lyx.git] / src / frontends / controllers / ControlTexinfo.h
1 // -*- C++ -*-
2 /**
3  * \file ControlTexinfo.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Herbert Voss
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef CONTROLTEXINFO_H
13 #define CONTROLTEXINFO_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "ControlDialog_impl.h"
20 #include "LString.h"
21
22 /** A controller for Texinfo dialogs. */
23
24 class ControlTexinfo : public ControlDialogBI {
25 public:
26         /// the file extensions
27         enum texFileSuffix {cls, sty, bst};
28         ///
29         ControlTexinfo(LyXView &, Dialogs &);
30         /// show contents af a file
31         void viewFile(string const filename) const;
32         /// show all classoptions
33         string const getClassOptions(string const & filename) const;
34         /// build new cls bst sty - lists
35         void rescanStyles() const;
36         /// build new bst sty cls lists
37         void runTexhash() const;
38         /// read filecontents
39         string const getContents(texFileSuffix type, bool withPath) const;
40 private:
41         ///
42         virtual void apply() {}
43 };
44
45 #endif // CONTROLTEXINFO_H