]> git.lyx.org Git - lyx.git/blob - src/frontends/gtk/GTabular.h
Extracted from r14281
[lyx.git] / src / frontends / gtk / GTabular.h
1 // -*- C++ -*-
2 /**
3  * \file GTabular.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Spray
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GTABULAR_H
13 #define GTABULAR_H
14
15 #include "GViewBase.h"
16
17 #include "GtkLengthEntry.h"
18
19 #include "lyxlength.h"
20
21 #include <boost/scoped_ptr.hpp>
22 #include <vector>
23
24 namespace lyx {
25 namespace frontend {
26
27 class ControlTabular;
28
29 /** This class provides a GTK+ implementation of the Tabular Dialog.
30  */
31 class GTabular
32         : public GViewCB<ControlTabular, GViewGladeB> {
33 public:
34         ///
35         GTabular(Dialog &);
36 private:
37
38         /// Set the Params variable for the Controller.
39         virtual void apply();
40         /// Build the dialog.
41         virtual void doBuild();
42         /// Update dialog before/whilst showing it.
43         virtual void update();
44         void onInput();
45         void allBorders(bool borders);
46         void updateSensitivity();
47         void updateSpecialRowsSensitivity();
48         void updateHorzAlignCombo(bool extraoption);
49
50         bool updating_;
51
52         // **** Current cell coords ****
53         Gtk::SpinButton *cellrowspin_;
54         Gtk::SpinButton *cellcolspin_;
55
56         // **** Table tab ****
57         Gtk::ComboBoxText *horzaligncombo_;
58         Gtk::ComboBox *vertaligncombo_;
59         Gtk::CheckButton *specifywidthcheck_;
60         GtkLengthEntry *widthlength_;
61         Gtk::Entry *latexargsentry_;
62
63         Gtk::CheckButton *rotatetablecheck_;
64
65         // **** This Cell tab ****
66         Gtk::CheckButton *upperbordercheck_;
67         Gtk::CheckButton *lowerbordercheck_;
68         Gtk::CheckButton *leftbordercheck_;
69         Gtk::CheckButton *rightbordercheck_;
70         Gtk::CheckButton *rotatecellcheck_;
71         Gtk::CheckButton *multicolcheck_;
72
73         // **** Longtable tab ****
74         Gtk::CheckButton *longtablecheck_;
75         Gtk::CheckButton *pagebreakcheck_;
76         
77         Gtk::Table *specialrowstable_;
78
79         Gtk::CheckButton *headeroncheck_;
80         Gtk::CheckButton *footeroncheck_;
81         Gtk::CheckButton *firstheaderoncheck_;
82         Gtk::CheckButton *lastfooteroncheck_;
83         Gtk::CheckButton *firstheaderemptycheck_;
84         Gtk::CheckButton *lastfooteremptycheck_;
85         Gtk::CheckButton *headerupperborderdoublecheck_;
86         Gtk::CheckButton *footerupperborderdoublecheck_;
87         Gtk::CheckButton *firstheaderupperborderdoublecheck_;
88         Gtk::CheckButton *lastfooterupperborderdoublecheck_;
89         Gtk::CheckButton *headerlowerborderdoublecheck_;
90         Gtk::CheckButton *footerlowerborderdoublecheck_;
91         Gtk::CheckButton *firstheaderlowerborderdoublecheck_;
92         Gtk::CheckButton *lastfooterlowerborderdoublecheck_;
93         
94
95 };
96
97 } // namespace frontend
98 } // namespace lyx
99
100 #endif  // GTABULAR_H