]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlTexinfo.h
Add a buffer_path arg to InsetGraphicsMailer's params2string, string2params.
[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 #include "tex_helpers.h"
18
19 /** A controller for Texinfo dialogs. */
20
21 class ControlTexinfo : public Dialog::Controller {
22 public:
23         ///
24         ControlTexinfo(Dialog &);
25         /// Nothing to initialise in this case.
26         virtual bool initialiseParams(string const &) { return true; }
27         ///
28         virtual void clearParams() {}
29         ///
30         virtual void dispatchParams() {}
31         ///
32         virtual bool isBufferDependent() const { return false; }
33
34
35         /// the file extensions
36         enum texFileSuffix {cls, sty, bst};
37         /// show contents af a file
38         void viewFile(string const & filename) const;
39         /// show all classoptions
40         string const getClassOptions(string const & filename) const;
41 private:
42         ///
43         virtual void apply() {}
44 };
45
46
47 /** Fill \c contents from one of the three texfiles.
48  *  Each entry in the file list is returned as a pair<name_with_path, name_only>
49  */
50 void getTexFileList(ControlTexinfo::texFileSuffix type,
51                     std::vector<string> & contents);
52
53 #endif // CONTROLTEXINFO_H