]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormTabular.h
More pref work from Angus
[lyx.git] / src / frontends / xforms / FormTabular.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  * 
5  *           LyX, The Document Processor
6  *       
7  *          Copyright 1995 Matthias Ettrich
8  *          Copyright 1995-2000 The LyX Team.
9  *
10  *======================================================*/
11 /* FormTabular.h
12  * FormTabular Interface Class
13  */
14
15 #ifndef FORMTABULAR_H
16 #define FORMTABULAR_H
17
18 #include "FormInset.h"
19
20 class InsetTabular;
21 struct FD_form_tabular;
22 struct FD_form_tabular_options;
23 struct FD_form_column_options;
24 struct FD_form_cell_options;
25 struct FD_form_longtable_options;
26
27 /** This class provides an XForms implementation of the FormTabular Dialog.
28     The tabular dialog allows users to set/save their tabular.
29  */
30 class FormTabular : public FormInset {
31 public:
32         /// #FormTabular x(LyXFunc ..., Dialogs ...);#
33         FormTabular(LyXView *, Dialogs *);
34         ///
35         ~FormTabular();
36
37 private:
38         /// Disconnect signals. Also perform any necessary housekeeping.
39         virtual void disconnect();
40
41         /// Slot launching dialog to an existing inset
42         void showInset(InsetTabular *);
43         /// Slot launching dialog to an existing inset
44         void updateInset(InsetTabular *);
45         /// Update dialog before showing it
46         virtual void update();
47         /// Build the dialog
48         virtual void build();
49         /// Filter the inputs
50         virtual bool input(FL_OBJECT *, long);
51         /// Pointer to the actual instantiation of the xform's form
52         virtual FL_FORM * form() const;
53
54         /// Fdesign generated methods
55         FD_form_tabular * build_tabular();
56         ///
57         FD_form_tabular_options * build_tabular_options();
58         ///
59         FD_form_column_options * build_column_options();
60         ///
61         FD_form_cell_options * build_cell_options();
62         ///
63         FD_form_longtable_options * build_longtable_options();
64
65         /// Real GUI implementation.
66         FD_form_tabular * dialog_;
67         ///
68         FD_form_tabular_options * tabular_options_;
69         ///
70         FD_form_column_options * column_options_;
71         ///
72         FD_form_cell_options * cell_options_;
73         ///
74         FD_form_longtable_options * longtable_options_;
75
76         /// pointer to the inset passed through showInset
77         InsetTabular * inset_;
78         ///
79         int actCell_;
80 };
81
82 #endif