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 "GuiDialog.h"
18 #include "insets/InsetBox.h"
26 class GuiBox : public GuiDialog, public Ui::BoxUi, public Controller
34 void change_adaptor();
35 void innerBoxChanged(const QString &);
36 void typeChanged(int);
37 void restoreClicked();
41 void closeEvent(QCloseEvent * e);
44 Controller & controller() { return *this; }
45 /// add and remove special lengths
46 void setSpecial(bool ibox);
47 /// only show valid inner box items
48 void setInnerType(bool frameless, int i);
53 void updateContents();
56 bool initialiseParams(std::string const & data);
60 void dispatchParams();
62 bool isBufferDependent() const { return true; }
65 std::vector<std::string> ids_;
67 std::vector<docstring> gui_names_;
69 std::vector<std::string> ids_spec_;
71 std::vector<docstring> gui_names_spec_;
74 InsetBoxParams params_;
77 } // namespace frontend