]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormTabularCreate.h
Compile fixes for DEC cxx, John's maths and keymap patches.
[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
26 struct FD_form_tabular_create;
27
28 /** This class provides an XForms implementation of the FormTabularCreate
29     Dialog.
30  */
31 class FormTabularCreate : public FormBaseBD {
32 public:
33         /// #FormTabularCreate x(LyXView ..., Dialogs ...);#
34         FormTabularCreate(LyXView *, Dialogs *);
35
36 private:
37         /// Pointer to the actual instantiation of the ButtonController.
38         virtual xformsBC & bc();
39         /// Connect signals etc.
40         virtual void connect();
41
42         /// Apply from dialog
43         virtual void apply();
44         /// Update dialog before showing it
45         virtual void update();
46         /// Pointer to the actual instantiation of the xforms form
47         virtual FL_FORM * form() const;
48         /// Build the dialog
49         virtual void build();
50
51         ///
52         FD_form_tabular_create * build_tabular_create();
53         
54         /// Real GUI implementation.
55         boost::scoped_ptr<FD_form_tabular_create> dialog_;
56         /// The ButtonController
57         ButtonController<OkApplyCancelReadOnlyPolicy, xformsBC> bc_;
58 };
59
60
61 inline
62 xformsBC & FormTabularCreate::bc()
63 {
64         return bc_;
65 }
66 #endif