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