]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormTabular.h
Change glob() API to accept a dir parameter.
[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
20 namespace lyx {
21 namespace frontend {
22
23 class ControlTabular;
24 struct FD_tabular;
25 struct FD_tabular_options;
26 struct FD_tabular_column;
27 struct FD_tabular_cell;
28 struct FD_tabular_longtable;
29
30 /** This class provides an XForms implementation of the FormTabular Dialog.
31     The tabular dialog allows users to set/save their tabular.
32  */
33 class FormTabular
34         : public FormController<ControlTabular, FormView<FD_tabular> > {
35 public:
36
37         FormTabular(Dialog &);
38
39 private:
40         /** Redraw the form (on receipt of a Signal indicating, for example,
41             that the xforms colours have been re-mapped). */
42         virtual void redraw();
43
44         /// not used
45         virtual void apply() {}
46         /// Update dialog before showing it
47         virtual void update();
48         /// Build the dialog
49         virtual void build();
50         /// Filter the inputs
51         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
52
53         ///
54         virtual int checkLongtableOptions(FL_OBJECT *, std::string &);
55
56         ///
57         boost::scoped_ptr<FD_tabular_options> tabular_options_;
58         ///
59         boost::scoped_ptr<FD_tabular_column> column_options_;
60         ///
61         boost::scoped_ptr<FD_tabular_cell> cell_options_;
62         ///
63         boost::scoped_ptr<FD_tabular_longtable> longtable_options_;
64
65         ///
66         bool closing_;
67
68         ///
69         int actCell_;
70 };
71
72 } // namespace frontend
73 } // namespace lyx
74
75 #endif // FORMTABULAR_H