]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormCharacter.h
remove defaults stuff, let Qt handle no toolbar
[lyx.git] / src / frontends / xforms / FormCharacter.h
1 // -*- C++ -*-
2 /**
3  * \file FormCharacter.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Edwin Leuven
8  * \author Angus Leeming
9  *
10  * Full author contact details are available in file CREDITS
11  */
12
13 #ifndef FORM_CHARACTER_H
14 #define FORM_CHARACTER_H
15
16
17 #include "FormDialogView.h"
18 #include "lyxfont.h"          // for LyXFont enums
19 #include "ControlCharacter.h" // for ControlCharacter enum
20 #include "LColor.h"           // for LColor enum
21 #include "character.h"        // for FONT_STATE enum
22
23 struct FD_character;
24
25 /**
26  * This class provides an XForms implementation of the Character Dialog.
27  * The character dialog allows users to change the character settings
28  * in their documents.
29  */
30 class FormCharacter
31         : public FormController<ControlCharacter, FormView<FD_character> > {
32 public:
33         ///
34         FormCharacter(Dialog &);
35 private:
36
37         /// Apply from dialog
38         virtual void apply();
39
40         /// Build the dialog
41         virtual void build();
42
43         /// Update the dialog.
44         virtual void update();
45
46         /// Filter the inputs on callback from xforms
47         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
48
49         ///
50         std::vector<LyXFont::FONT_FAMILY>  family_;
51         ///
52         std::vector<LyXFont::FONT_SERIES>  series_;
53         ///
54         std::vector<LyXFont::FONT_SHAPE>   shape_;
55         ///
56         std::vector<LyXFont::FONT_SIZE>    size_;
57         ///
58         std::vector<frnt::FONT_STATE>      bar_;
59         ///
60         std::vector<LColor::color>         color_;
61         ///
62         std::vector<string>                lang_;
63 };
64
65 #endif