4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Jürgen Spitzmüller
8 * \author Martin Vermeer (with useful hints from Angus Leeming)
10 * Full author contact details are available in file CREDITS.
16 #include "InsetParamsWidget.h"
23 class GuiBox : public InsetParamsWidget, public Ui::BoxUi
28 GuiBox(QWidget * parent = 0);
31 void on_innerBoxCO_activated(int);
32 void on_typeCO_activated(int);
34 void on_widthCB_stateChanged(int state);
35 void on_heightCB_stateChanged(int state);
36 void on_pagebreakCB_stateChanged();
39 /// \name DialogView inherited methods
41 InsetCode insetCode() const { return BOX_CODE; }
42 FuncCode creationCode() const { return LFUN_BOX_INSERT; }
43 void paramsToDialog(Inset const *);
44 docstring dialogToParams() const;
45 bool checkWidgets(bool readonly) const;
48 /// add and remove special lengths
49 void setSpecial(bool ibox);
50 /// only show valid inner box items
51 void setInnerType(bool frameless, QString const & type);
55 QStringList gui_names_;
57 QStringList ids_spec_;
59 QStringList gui_names_spec_;
62 } // namespace frontend