]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlCharacter.h
Really dull and boring header shit
[lyx.git] / src / frontends / controllers / ControlCharacter.h
1 // -*- C++ -*-
2 /**
3  * \file ControlCharacter.h
4  * See the file COPYING.
5  *
6  * \author Angus Leeming
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #ifndef CONTROLCHARACTER_H
12 #define CONTROLCHARACTER_H
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "ControlDialog_impl.h"
19 #include "character.h"
20
21 #include <boost/scoped_ptr.hpp>
22
23 /** A controller for Character dialogs.
24  */
25 class ControlCharacter : public ControlDialogBD
26 {
27 public:
28         ///
29         ControlCharacter(LyXView &, Dialogs &);
30
31         ///
32         void setFamily(LyXFont::FONT_FAMILY);
33         ///
34         void setSeries(LyXFont::FONT_SERIES);
35         ///
36         void setShape(LyXFont::FONT_SHAPE);
37         ///
38         void setSize(LyXFont::FONT_SIZE);
39         ///
40         void setBar(frnt::FONT_STATE);
41         ///
42         void setColor(LColor::color);
43         ///
44         void setLanguage(string const &);
45         ///
46         void setToggleAll(bool);
47
48         ///
49         LyXFont::FONT_FAMILY getFamily() const;
50         ///
51         LyXFont::FONT_SERIES getSeries() const;
52         ///
53         LyXFont::FONT_SHAPE getShape() const;
54         ///
55         LyXFont::FONT_SIZE getSize() const;
56         ///
57         frnt::FONT_STATE getBar() const;
58         ///
59         LColor::color getColor() const;
60         ///
61         string getLanguage() const;
62         ///
63         bool getToggleAll() const;
64
65         /// Get changed parameters and Dispatch them to the kernel.
66         virtual void apply();
67 private:
68         /// set the params before show or update.
69         virtual void setParams();
70
71         ///
72         boost::scoped_ptr<LyXFont> font_;
73         ///
74         bool toggleall_;
75 };
76
77 #endif // CONTROLCHARACTER_H