GuiPrintNomencl.{cpp,h}:
[lyx.git] / src / frontends / qt4 / GuiBox.h
blob813454a4d493598700c3f4e0fc79b5623e7bc5ae
1 // -*- C++ -*-
2 /**
3 * \file GuiBox.h
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.
13 #ifndef GUIBOX_H
14 #define GUIBOX_H
16 #include "GuiDialog.h"
17 #include "ui_BoxUi.h"
18 #include "insets/InsetBox.h"
21 namespace lyx {
22 namespace frontend {
24 class GuiBox : public GuiDialog, public Ui::BoxUi
26 Q_OBJECT
28 public:
29 GuiBox(GuiView & lv);
31 private Q_SLOTS:
32 void change_adaptor();
33 void innerBoxChanged(QString const &);
34 void typeChanged(int);
35 void restoreClicked();
36 void pagebreakClicked();
38 private:
39 /// add and remove special lengths
40 void setSpecial(bool ibox);
41 /// only show valid inner box items
42 void setInnerType(bool frameless, int i);
44 /// Apply changes
45 void applyView();
46 /// update
47 void updateContents();
49 ///
50 bool initialiseParams(std::string const & data);
51 ///
52 void clearParams();
53 ///
54 void dispatchParams();
55 ///
56 bool isBufferDependent() const { return true; }
58 ///
59 QStringList ids_;
60 ///
61 QStringList gui_names_;
62 ///
63 QStringList ids_spec_;
64 ///
65 QStringList gui_names_spec_;
67 ///
68 InsetBoxParams params_;
71 } // namespace frontend
72 } // namespace lyx
74 #endif // GUIBOX_H