]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormParagraph.h
Angus's xforms patch -- I don't like some of it but overall we need it...
[lyx.git] / src / frontends / xforms / FormParagraph.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  * 
5  *           LyX, The Document Processor
6  *       
7  *           Copyright (C) 2000 The LyX Team.
8  *
9  *           @author Jürgen Vigna
10  *
11  *======================================================*/
12
13 #ifndef FORM_PARAGRAPH_H
14 #define FORM_PARAGRAPH_H
15
16 #include "FormBase.h"
17
18 #ifdef __GNUG_
19 #pragma interface
20 #endif
21
22
23 struct FD_form_tabbed_paragraph;
24 struct FD_form_paragraph_general;
25 struct FD_form_paragraph_extra;
26
27 /** This class provides an XForms implementation of the FormParagraph Popup.
28  */
29 class FormParagraph : public FormBase {
30 public:
31         ///
32         FormParagraph(LyXView *, Dialogs *);
33         ///
34         ~FormParagraph();
35
36 private:
37         /// Build the popup
38         void build();
39         /// Apply from popup
40         void apply();
41         /// Update the popup.
42         void update();
43         /// Filter the inputs on callback from xforms
44         virtual bool input(FL_OBJECT * ob, long);
45
46         ///
47         virtual FL_FORM * form() const;
48         
49         ///
50         void general_update();
51         ///
52         void extra_update();
53         ///
54         void general_apply();
55         ///
56         void extra_apply();
57
58         /// Typedefinitions from the fdesign produced Header file
59         FD_form_tabbed_paragraph * build_tabbed_paragraph();
60         ///
61         FD_form_paragraph_general * build_paragraph_general();
62         ///
63         FD_form_paragraph_extra * build_paragraph_extra();
64
65         /// Real GUI implementation.
66         FD_form_tabbed_paragraph  * dialog_;
67         ///
68         FD_form_paragraph_general * general_;
69         ///
70         FD_form_paragraph_extra   * extra_;
71 };
72
73 #endif