]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QBox.h
Minipage is no more (long live the box inset)
[lyx.git] / src / frontends / qt2 / QBox.h
1 // -*- C++ -*-
2 /**
3  * \file QBox.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Jürgen Spitzmüller
8  * \ author Martin Vermeer
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef QBOX_H
14 #define QBOX_H
15
16
17 #include "QDialogView.h"
18 #include <vector>
19
20
21 class ControlBox;
22 class QBoxDialog;
23
24 ///
25 class QBox
26         : public QController<ControlBox, QView<QBoxDialog> >
27 {
28 public:
29         ///
30         friend class QBoxDialog;
31         ///
32         QBox(Dialog &);
33         /// add and remove special lengths
34         void setSpecial(bool ibox);
35         /// only show valid inner box items
36         void setInnerType(bool frameless, int i);
37 private:
38         /// Apply changes
39         virtual void apply();
40         /// update
41         virtual void update_contents();
42         /// build the dialog
43         virtual void build_dialog();
44         ///
45         std::vector<std::string> ids_;
46         ///
47         std::vector<std::string> gui_names_;
48         ///
49         std::vector<std::string> ids_spec_;
50         ///
51         std::vector<std::string> gui_names_spec_;
52 };
53
54 #endif // QBOX_H