]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormParagraph.h
Angus's FormInset work; Dekel's languages patch; my reworking of Angus's stuff +...
[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  *           @author Jürgen Vigna
29  */
30 class FormParagraph : public FormBaseBD {
31 public:
32         ///
33         FormParagraph(LyXView *, Dialogs *);
34         ///
35         ~FormParagraph();
36
37 private:
38         /// Build the popup
39         virtual void build();
40         /// Apply from popup
41         virtual void apply();
42         /// Update the popup.
43         virtual void update(bool);
44         /// Filter the inputs on callback from xforms
45         virtual bool input(FL_OBJECT * ob, long);
46
47         ///
48         virtual FL_FORM * form() const;
49         
50         ///
51         void general_update();
52         ///
53         void extra_update();
54         ///
55         void general_apply();
56         ///
57         void extra_apply();
58
59         /// Typedefinitions from the fdesign produced Header file
60         FD_form_tabbed_paragraph * build_tabbed_paragraph();
61         ///
62         FD_form_paragraph_general * build_paragraph_general();
63         ///
64         FD_form_paragraph_extra * build_paragraph_extra();
65
66         /// Real GUI implementation.
67         FD_form_tabbed_paragraph  * dialog_;
68         ///
69         FD_form_paragraph_general * general_;
70         ///
71         FD_form_paragraph_extra   * extra_;
72 };
73
74 #endif