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 QString dialogTitle() const { return qt_("Tabular Settings"); }
46 void paramsToDialog(Inset const *);
47 docstring dialogToParams() const;
48 bool checkWidgets(bool readonly) const;
52 void enableWidgets() const;
54 void setHAlign(std::string & param_str) const;
56 void setVAlign(std::string & param_str) const;
58 void setTableAlignment(std::string & param_str) const;
60 void setWidthAndAlignment();
62 bool funcEnabled(Tabular::Feature f) const;
64 bool firstheader_suppressable_;
66 bool lastfooter_suppressable_;
69 } // namespace frontend
72 #endif // GUITABULAR_H