]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlCharacter.h
implement getLabelList
[lyx.git] / src / frontends / controllers / ControlCharacter.h
1 /**
2  * \file ControlCharacter.h
3  * Copyright 2001 The LyX Team.
4  * See the file COPYING.
5  *
6  * \author Angus Leeming, a.leeming@.ac.uk
7  */
8
9 #ifndef CONTROLCHARACTER_H
10 #define CONTROLCHARACTER_H
11
12 #ifdef __GNUG__
13 #pragma interface
14 #endif
15
16 #include "ControlDialogs.h"
17 #include "character.h"
18
19 /** A controller for Character dialogs.
20  */
21 class ControlCharacter : public ControlDialog<ControlConnectBD>
22 {
23 public:
24         ///
25         ControlCharacter(LyXView &, Dialogs &);
26
27         ///
28         void setFamily(LyXFont::FONT_FAMILY);
29         ///
30         void setSeries(LyXFont::FONT_SERIES);
31         ///
32         void setShape(LyXFont::FONT_SHAPE);
33         ///
34         void setSize(LyXFont::FONT_SIZE);
35         ///
36         void setBar(character::FONT_STATE);
37         ///
38         void setColor(LColor::color);
39         ///
40         void setLanguage(string const &);
41         ///
42         void setToggleAll(bool);
43
44 private:
45         /// Get changed parameters and Dispatch them to the kernel.
46         virtual void apply();
47         /// set the params before show or update.
48         virtual void setParams();
49         /// clean-up on hide.
50         virtual void clearParams();
51
52         ///
53         LyXFont * font_;
54         ///
55         bool toggleall_;
56 };
57
58 #endif // CONTROLCHARACTER_H