]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormCopyright.h
Compile fixes for DEC cxx, John's maths and keymap patches.
[lyx.git] / src / frontends / xforms / FormCopyright.h
1 // -*- C++ -*-
2 /* FormCopyright.h
3  * FormCopyright Interface Class
4  * This file is part of
5  * ====================================================== 
6  *
7  *           LyX, The Document Processor
8  *
9  *           Copyright 1995 Matthias Ettrich
10  *           Copyright 1995-2000 The LyX Team.
11  *
12  *           This file Copyright 2000
13  *           Allan Rae
14  * ======================================================
15  */
16
17 #ifndef FORMCOPYRIGHT_H
18 #define FORMCOPYRIGHT_H
19
20 #include <boost/smart_ptr.hpp>
21
22 #ifdef __GNUG__
23 #pragma interface
24 #endif
25
26 #include "FormBaseDeprecated.h"
27
28 struct FD_form_copyright;
29
30 /** This class provides an XForms implementation of the FormCopyright Dialog.
31  */
32 class FormCopyright : public FormBaseBI {
33 public:
34         /// #FormCopyright x(LyXFunc ..., Dialogs ...);#
35         FormCopyright(LyXView *, Dialogs *);
36 private:
37         /// Pointer to the actual instantiation of the ButtonController.
38         virtual xformsBC & bc();
39         /// Build the dialog
40         virtual void build();
41         /// Pointer to the actual instantiation of the xforms form
42         virtual FL_FORM * form() const;
43         /// Fdesign generated method
44         FD_form_copyright * build_copyright();
45
46         /// Real GUI implementation.
47         boost::scoped_ptr<FD_form_copyright> dialog_;
48         /// The ButtonController
49         ButtonController<OkCancelPolicy, xformsBC> bc_;
50 };
51
52
53 inline
54 xformsBC & FormCopyright::bc()
55 {
56         return bc_;
57 }
58 #endif
59