]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormCredits.h
Compile fixes for DEC cxx, John's maths and keymap patches.
[lyx.git] / src / frontends / xforms / FormCredits.h
1 /**
2  * \file FormCredits.h
3  * Copyright 2001 The LyX Team.
4  * See the file COPYING.
5  *
6  * \author Edwin Leuven, leuven@fee.uva.nl
7  */
8
9 #ifndef FORMCREDITS_H
10 #define FORMCREDITS_H
11
12 #include <boost/smart_ptr.hpp>
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "FormBaseDeprecated.h"
19
20 struct FD_form_credits;
21
22 /** This class provides an XForms implementation of the FormCredits Dialog.
23  */
24 class FormCredits : public FormBaseBI {
25 public:
26         /// #FormCopyright x(LyXFunc ..., Dialogs ...);#
27         FormCredits(LyXView *, Dialogs *);
28
29 private:
30         /// Pointer to the actual instantiation of the ButtonController.
31         virtual xformsBC & bc();
32         /// Build the dialog
33         virtual void build();
34         /// Pointer to the actual instantiation of the xforms form
35         virtual FL_FORM * form() const;
36         /// Fdesign generated method
37         FD_form_credits * build_credits();
38
39         /// Real GUI implementation.
40         boost::scoped_ptr<FD_form_credits> dialog_;
41         /// The ButtonController
42         ButtonController<OkCancelPolicy, xformsBC> bc_;
43 };
44
45
46 inline
47 xformsBC & FormCredits::bc()
48 {
49         return bc_;
50 }
51 #endif
52