]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormTabularCreate.h
Merging BRANCH_MVC back into HEAD.
[lyx.git] / src / frontends / xforms / FormTabularCreate.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  * 
5  *           LyX, The Document Processor
6  *       
7  *          Copyright 1995 Matthias Ettrich
8  *          Copyright 1995-2000 The LyX Team.
9  *
10  *======================================================*/
11 /* FormTabularCreate.h
12  * FormTabularCreate Interface Class
13  */
14
15 #ifndef FORMTABULARCREATE_H
16 #define FORMTABULARCREATE_H
17
18 #include <boost/smart_ptr.hpp>
19
20 #ifdef __GNUG__
21 #pragma interface
22 #endif
23
24 #include "FormBaseDeprecated.h"
25 #include "xformsBC.h"
26
27 class LyXView;
28 class Dialogs;
29 struct FD_form_tabular_create;
30
31 /** This class provides an XForms implementation of the FormTabularCreate
32     Dialog.
33  */
34 class FormTabularCreate : public FormBaseBD {
35 public:
36         /// #FormTabularCreate x(LyXView ..., Dialogs ...);#
37         FormTabularCreate(LyXView *, Dialogs *);
38
39 private:
40         /// Pointer to the actual instantiation of the ButtonController.
41         virtual xformsBC & bc();
42         /// Connect signals etc.
43         virtual void connect();
44
45         /// Apply from dialog
46         virtual void apply();
47         /// Update dialog before showing it
48         virtual void update();
49         /// Pointer to the actual instantiation of the xforms form
50         virtual FL_FORM * form() const;
51         /// Build the dialog
52         virtual void build();
53
54         ///
55         FD_form_tabular_create * build_tabular_create();
56         
57         /// Real GUI implementation.
58         boost::scoped_ptr<FD_form_tabular_create> dialog_;
59         /// The ButtonController
60         ButtonController<OkApplyCancelReadOnlyPolicy, xformsBC> bc_;
61 };
62
63
64 inline
65 xformsBC & FormTabularCreate::bc()
66 {
67         return bc_;
68 }
69 #endif