]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlTexinfo.h
dont use pragma impementation and interface anymore
[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 "ControlDialog_impl.h"
17 #include "LString.h"
18
19 /** A controller for Texinfo dialogs. */
20
21 class ControlTexinfo : public ControlDialogBI {
22 public:
23         /// the file extensions
24         enum texFileSuffix {cls, sty, bst};
25         ///
26         ControlTexinfo(LyXView &, Dialogs &);
27         /// show contents af a file
28         void viewFile(string const filename) const;
29         /// show all classoptions
30         string const getClassOptions(string const & filename) const;
31         /// build new cls bst sty - lists
32         void rescanStyles() const;
33         /// build new bst sty cls lists
34         void runTexhash() const;
35         /// read filecontents
36         string const getContents(texFileSuffix type, bool withPath) const;
37 private:
38         ///
39         virtual void apply() {}
40 };
41
42 #endif // CONTROLTEXINFO_H