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);
41 /// \name InsetParamsWidget inherited methods
43 InsetCode insetCode() const { return TABULAR_CODE; }
44 FuncCode creationCode() const { return LFUN_TABULAR_INSERT; }
45 void paramsToDialog(Inset const *);
46 docstring dialogToParams() const;
50 void setHAlign(std::string & param_str) const;
52 void setVAlign(std::string & param_str) const;
54 void setTableAlignment(std::string & param_str) const;
56 void setWidthAndAlignment();
58 bool funcEnabled(Tabular::Feature f) const;
60 bool firstheader_suppressable_;
62 bool lastfooter_suppressable_;
65 } // namespace frontend
68 #endif // GUITABULAR_H