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