]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlTexinfo.h
fix tooltips in toolbar
[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 #include "LString.h"
24
25 /** A controller for Texinfo dialogs. */
26
27 class ControlTexinfo : public ControlDialogBI {
28 public:
29         /// the file extensions
30         enum texFileSuffix {cls, sty, bst};
31         ///
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;
41         /// read filecontents
42         string const getContents(texFileSuffix type, bool withPath) const;
43
44
45 private:
46         ///
47         virtual void apply() {}
48 };
49
50 #endif // CONTROLTEXINFO_H