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