]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormCharacter.h
Compile fixes for DEC cxx, John's maths and keymap patches.
[lyx.git] / src / frontends / xforms / FormCharacter.h
1 // -*- C++ -*-
2 /** 
3  * \file FormCharacter.h
4  * Copyright 2001 The LyX Team.
5  * See the file COPYING.
6  * 
7  * \author Edwin Leuven, leuven@fee.uva.nl
8  */
9
10 #ifndef FORM_CHARACTER_H
11 #define FORM_CHARACTER_H
12
13 #include <boost/smart_ptr.hpp>
14
15 #ifdef __GNUG_
16 #pragma interface
17 #endif
18
19 #include "FormBaseDeprecated.h"
20
21 class Combox;
22 struct FD_form_character;
23
24 /** 
25  * This class provides an XForms implementation of the FormCharacter Dialog.
26  * The character dialog allows users to change the character settings
27  * in their documents.
28  */
29 class FormCharacter : public FormBaseBD {
30 public:
31         ///
32         FormCharacter(LyXView *, Dialogs *);
33 private:
34         
35         /// Pointer to the actual instantiation of the ButtonController.
36         virtual xformsBC & bc();
37
38         /// Build the popup
39         virtual void build();
40    
41         /// Apply from popup
42         virtual void apply();
43    
44         /// Update the popup.
45         virtual void update();
46    
47         /// Pointer to the actual instantiation of the xform's form
48         virtual FL_FORM * form() const;
49
50         ///
51         FD_form_character * build_character();
52         
53         /// Real GUI implementation.
54         boost::scoped_ptr<FD_form_character> dialog_;
55
56         ///
57         boost::scoped_ptr<Combox> combo_language2_;
58
59         /// The ButtonController
60         ButtonController<NoRepeatedApplyReadOnlyPolicy, xformsBC> bc_;
61 };
62
63
64 inline
65 xformsBC & FormCharacter::bc()
66 {
67         return bc_;
68 }
69 #endif