]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlTexinfo.h
Move the Texinfo dialog to the new Dialog scheme.
[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
16 #include "Dialog.h"
17
18 /** A controller for Texinfo dialogs. */
19
20 class ControlTexinfo : public Dialog::Controller {
21 public:
22         ///
23         ControlTexinfo(Dialog &);
24         ///
25         virtual bool initialiseParams(string const &) { return true; }
26         ///
27         virtual void clearParams() {}
28         ///
29         virtual void dispatchParams() {}
30         ///
31         virtual bool isBufferDependent() const { return false; }
32
33
34         /// the file extensions
35         enum texFileSuffix {cls, sty, bst};
36         /// show contents af a file
37         void viewFile(string const filename) const;
38         /// show all classoptions
39         string const getClassOptions(string const & filename) const;
40         /// build new cls bst sty - lists
41         void rescanStyles() const;
42         /// build new bst sty cls lists
43         void runTexhash() const;
44         /// read filecontents
45         string const getContents(texFileSuffix type, bool withPath) const;
46 private:
47         ///
48         virtual void apply() {}
49 };
50
51 #endif // CONTROLTEXINFO_H