]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormBox.h
Wrap most of the frontend code up inside namespace lyx::frontend.
[lyx.git] / src / frontends / xforms / FormBox.h
1 // -*- C++ -*-
2 /**
3  * \file FormBox.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Martin Vermeer
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef FORMBOX_H
13 #define FORMBOX_H
14
15 #include "FormDialogView.h"
16
17 namespace lyx {
18 namespace frontend {
19
20 class ControlBox;
21 struct FD_box;
22
23 /** This class provides an XForms implementation of the Box Dialog.
24  */
25 class FormBox : public FormController<ControlBox, FormView<FD_box> > {
26 public:
27         /// Constructor
28         FormBox(Dialog &);
29 private:
30         ///
31         virtual void apply();
32         /// Build the dialog
33         virtual void build();
34         /// Update dialog before showing it
35         virtual void update();
36         ///
37         virtual ButtonPolicy::SMInput input( FL_OBJECT *, long);
38         ///
39         std::vector<std::string> ids_;
40         ///
41         std::vector<std::string> gui_names_;
42         ///
43         std::vector<std::string> ids_spec_;
44         ///
45         std::vector<std::string> gui_names_spec_;
46         ///
47         enum Specials {
48                 NONE = 1,
49                 HEIGHT,
50                 DEPTH,
51                 TOTALHEIGHT,
52                 WIDTH
53         };
54 };
55
56 } // namespace frontend
57 } // namespace lyx
58
59 #endif // FORMBOX_H