]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormTexinfo.h
Herbert's TeX Info extravaganza.
[lyx.git] / src / frontends / xforms / FormTexinfo.h
1 // -*- C++ -*-
2 /**
3  * \file FormTexinfo.h
4  * Copyright 2001 the LyX Team
5  * Read the file COPYING
6  *
7  * \author Herbert Voss <voss@perce.de>
8  */
9
10 #ifndef FORMTEXINFO_H
11 #define FORMTEXINFO_H
12
13 #ifdef __GNUG__
14 #pragma interface
15 #endif
16
17 #include "FormBase.h"
18
19 class ControlTexinfo;
20 struct FD_form_texinfo;
21
22 class FormTexinfo : public FormCB<ControlTexinfo, FormDB<FD_form_texinfo> > {
23 public:
24         ///
25         FormTexinfo(ControlTexinfo &);
26         /// the file extensions
27         enum texFileSuffix {cls, sty, bst};
28
29         /// preemptive handler for feedback messages
30         void feedbackCB(FL_OBJECT *, int);
31
32 private:
33         /// not needed
34         virtual void apply() {}
35         /// Build the dialog.
36         virtual void build();
37         /// not needed
38         virtual void update() {}
39         /// Filter the inputs on callback from xforms
40         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
41         ///
42         void feedback(FL_OBJECT *);
43         ///
44         void updateStyles(texFileSuffix);
45         /// Fdesign generated method
46         FD_form_texinfo * build_texinfo();
47         ///
48         bool warningPosted;
49         ///
50         texFileSuffix activeStyle;
51 };
52
53 #endif // FORMTEXINFO_H