]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormTabular.h
Introduce LFUN_PRINT.
[lyx.git] / src / frontends / xforms / FormTabular.h
1 // -*- C++ -*-
2 /**
3  * \file FormTabular.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Jürgen Vigna
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef FORMTABULAR_H
13 #define FORMTABULAR_H
14
15 #include "FormDialogView.h"
16 #include <boost/scoped_ptr.hpp>
17
18 class InsetTabular;
19 class ControlTabular;
20 struct FD_tabular;
21 struct FD_tabular_options;
22 struct FD_tabular_column;
23 struct FD_tabular_cell;
24 struct FD_tabular_longtable;
25
26 /** This class provides an XForms implementation of the FormTabular Dialog.
27     The tabular dialog allows users to set/save their tabular.
28  */
29 class FormTabular
30         : public FormController<ControlTabular, FormView<FD_tabular> > {
31 public:
32
33         FormTabular(Dialog &);
34
35 private:
36         /** Redraw the form (on receipt of a Signal indicating, for example,
37             that the xforms colours have been re-mapped). */
38         virtual void redraw();
39
40         /// not used
41         virtual void apply() {}
42         /// Update dialog before showing it
43         virtual void update();
44         /// Build the dialog
45         virtual void build();
46         /// Filter the inputs
47         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
48
49         ///
50         virtual int checkLongtableOptions(FL_OBJECT *, std::string &);
51
52         ///
53         boost::scoped_ptr<FD_tabular_options> tabular_options_;
54         ///
55         boost::scoped_ptr<FD_tabular_column> column_options_;
56         ///
57         boost::scoped_ptr<FD_tabular_cell> cell_options_;
58         ///
59         boost::scoped_ptr<FD_tabular_longtable> longtable_options_;
60
61         ///
62         bool closing_;
63
64         ///
65         int actCell_;
66 };
67
68 #endif // FORMTABULAR_H