4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
8 * \author Kalle Dalheimer
9 * \author Jürgen Spitzmüller
12 * Full author contact details are available in file CREDITS.
18 #include "InsetParamsWidget.h"
19 #include "ui_TabularUi.h"
20 #include "insets/InsetTabular.h"
25 class GuiTabular : public InsetParamsWidget, public Ui::TabularUi
30 GuiTabular(QWidget * parent = 0);
34 void borderSet_clicked();
35 void borderUnset_clicked();
36 void booktabs_toggled(bool const check);
37 void nonbooktabs_toggled(bool const check);
38 void on_topspaceCO_activated(int index);
39 void on_bottomspaceCO_activated(int index);
40 void on_interlinespaceCO_activated(int index);
41 void on_columnTypeCO_activated(int index);
44 /// \name InsetParamsWidget inherited methods
46 InsetCode insetCode() const { return TABULAR_CODE; }
47 FuncCode creationCode() const { return LFUN_TABULAR_INSERT; }
48 QString dialogTitle() const { return qt_("Tabular Settings"); }
49 void paramsToDialog(Inset const *);
50 docstring dialogToParams() const;
51 bool checkWidgets(bool readonly) const;
55 void enableWidgets() const;
57 void setHAlign(std::string & param_str) const;
59 void setVAlign(std::string & param_str) const;
61 void setTableAlignment(std::string & param_str) const;
63 void setWidthAndAlignment();
65 bool funcEnabled(Tabular::Feature f) const;
67 GuiSetBorder::BorderState borderState(GuiSetBorder::BorderState bs,
70 bool firstheader_suppressable_;
72 bool lastfooter_suppressable_;
74 GuiSetBorder::BorderState orig_leftborder_;
76 GuiSetBorder::BorderState orig_rightborder_;
80 docstring decimal_sep_;
83 } // namespace frontend
86 #endif // GUITABULAR_H