2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2000 The LyX Team.
10 *======================================================*/
12 * FormTabular Interface Class
18 #include "FormInset.h"
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;
27 /** This class provides an XForms implementation of the FormTabular Dialog.
28 The tabular dialog allows users to set/save their tabular.
30 class FormTabular : public FormInset {
32 /// #FormTabular x(LyXFunc ..., Dialogs ...);#
33 FormTabular(LyXView *, Dialogs *);
38 /// Disconnect signals. Also perform any necessary housekeeping.
39 virtual void disconnect();
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();
50 virtual bool input(FL_OBJECT *, long);
51 /// Pointer to the actual instantiation of the xform's form
52 virtual FL_FORM * form() const;
54 /// Fdesign generated methods
55 FD_form_tabular * build_tabular();
57 FD_form_tabular_options * build_tabular_options();
59 FD_form_column_options * build_column_options();
61 FD_form_cell_options * build_cell_options();
63 FD_form_longtable_options * build_longtable_options();
65 /// Real GUI implementation.
66 FD_form_tabular * dialog_;
68 FD_form_tabular_options * tabular_options_;
70 FD_form_column_options * column_options_;
72 FD_form_cell_options * cell_options_;
74 FD_form_longtable_options * longtable_options_;
76 /// pointer to the inset passed through showInset
77 InsetTabular * inset_;