]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormBox.h
Introduce LFUN_PRINT.
[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
16 #include "FormDialogView.h"
17
18
19 class ControlBox;
20 struct FD_box;
21
22 /** This class provides an XForms implementation of the Box Dialog.
23  */
24 class FormBox : public FormController<ControlBox, FormView<FD_box> > {
25 public:
26         /// Constructor
27         FormBox(Dialog &);
28 private:
29         ///
30         virtual void apply();
31         /// Build the dialog
32         virtual void build();
33         /// Update dialog before showing it
34         virtual void update();
35         ///
36         virtual ButtonPolicy::SMInput input( FL_OBJECT *, long);
37         ///
38         std::vector<std::string> ids_;
39         ///
40         std::vector<std::string> gui_names_;
41         ///
42         std::vector<std::string> ids_spec_;
43         ///
44         std::vector<std::string> gui_names_spec_;
45         ///
46         enum Specials {
47                 NONE = 1,
48                 HEIGHT,
49                 DEPTH,
50                 TOTALHEIGHT,
51                 WIDTH
52         };
53 };
54
55 #endif // FORMBOX_H