]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlTexinfo.h
The reducing file dependencies in the frontends patch.
[lyx.git] / src / frontends / controllers / ControlTexinfo.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ====================================================== 
4  *
5  *           LyX, The Document Processor
6  *
7  *           Copyright 2001 The LyX Team.
8  *
9  * ======================================================
10  *
11  * \file ControlTexinfo.h
12  * \author Herbert Voss <voss@perce.de>
13  */
14
15 #ifndef CONTROLTEXINFO_H
16 #define CONTROLTEXINFO_H
17
18 #ifdef __GNUG__
19 #pragma interface
20 #endif
21
22 #include "ControlDialog_impl.h"
23
24 /** A controller for Texinfo dialogs. */
25
26 class ControlTexinfo : public ControlDialogBI {
27 public:
28         /// the file extensions
29         enum texFileSuffix {cls, sty, bst};
30         ///
31         ControlTexinfo(LyXView &, Dialogs &);
32         ///
33         void viewFile(string const filename) const;
34         ///
35         void help() const;
36         ///
37         void rescanStyles() const;
38         ///
39         void runTexhash() const;
40         ///
41         string const getContents(texFileSuffix type, bool withPath) const;
42
43
44 private:
45         ///
46         virtual void apply() {}
47 };
48
49 #endif // CONTROLTEXINFO_H