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 on_topspaceCO_activated(int index);
37 void on_bottomspaceCO_activated(int index);
38 void on_interlinespaceCO_activated(int index);
39 void on_columnTypeCO_activated(int index);
42 /// \name InsetParamsWidget inherited methods
44 InsetCode insetCode() const { return TABULAR_CODE; }
45 FuncCode creationCode() const { return LFUN_TABULAR_INSERT; }
46 QString dialogTitle() const { return qt_("Tabular Settings"); }
47 void paramsToDialog(Inset const *);
48 docstring dialogToParams() const;
49 bool checkWidgets(bool readonly) const;
53 void enableWidgets() const;
55 void setHAlign(std::string & param_str) const;
57 void setVAlign(std::string & param_str) const;
59 void setTableAlignment(std::string & param_str) const;
61 void setWidthAndAlignment();
63 bool funcEnabled(Tabular::Feature f) const;
65 GuiSetBorder::BorderState borderState(GuiSetBorder::BorderState bs,
68 bool firstheader_suppressable_;
70 bool lastfooter_suppressable_;
73 } // namespace frontend
76 #endif // GUITABULAR_H