]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormCharacter.h
Finish the task of removing all cruft from the header files.
[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 #include "FormDialogView.h"
17 #include "ControlCharacter.h" // for ControlCharacter enum
18
19 struct FD_character;
20
21 /**
22  * This class provides an XForms implementation of the Character Dialog.
23  * The character dialog allows users to change the character settings
24  * in their documents.
25  */
26 class FormCharacter
27         : public FormController<ControlCharacter, FormView<FD_character> > {
28 public:
29         ///
30         FormCharacter(Dialog &);
31 private:
32
33         /// Apply from dialog
34         virtual void apply();
35
36         /// Build the dialog
37         virtual void build();
38
39         /// Update the dialog.
40         virtual void update();
41
42         /// Filter the inputs on callback from xforms
43         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
44
45         ///
46         std::vector<LyXFont::FONT_FAMILY>  family_;
47         ///
48         std::vector<LyXFont::FONT_SERIES>  series_;
49         ///
50         std::vector<LyXFont::FONT_SHAPE>   shape_;
51         ///
52         std::vector<LyXFont::FONT_SIZE>    size_;
53         ///
54         std::vector<frnt::FONT_STATE>      bar_;
55         ///
56         std::vector<LColor::color>         color_;
57         ///
58         std::vector<string>                lang_;
59 };
60
61 #endif