]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlCharacter.h
Overhaul the branches code.
[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
16 #include "Dialog.h"
17 #include "character.h"
18
19
20 class LColor_color;
21
22
23 class ControlCharacter : public Dialog::Controller {
24 public:
25         ///
26         ControlCharacter(Dialog &);
27         ///
28         virtual bool initialiseParams(std::string const & data);
29         ///
30         virtual void clearParams();
31         ///
32         virtual void dispatchParams();
33         ///
34         virtual bool isBufferDependent() const { return true; }
35
36         ///
37         void setFamily(LyXFont::FONT_FAMILY);
38         ///
39         void setSeries(LyXFont::FONT_SERIES);
40         ///
41         void setShape(LyXFont::FONT_SHAPE);
42         ///
43         void setSize(LyXFont::FONT_SIZE);
44         ///
45         void setBar(frnt::FONT_STATE);
46         ///
47         void setColor(LColor_color);
48         ///
49         void setLanguage(std::string const &);
50         ///
51         void setToggleAll(bool);
52
53         ///
54         LyXFont::FONT_FAMILY getFamily() const;
55         ///
56         LyXFont::FONT_SERIES getSeries() const;
57         ///
58         LyXFont::FONT_SHAPE getShape() const;
59         ///
60         LyXFont::FONT_SIZE getSize() const;
61         ///
62         frnt::FONT_STATE getBar() const;
63         ///
64         LColor_color getColor() const;
65         ///
66         std::string getLanguage() const;
67         ///
68         bool getToggleAll() const;
69 private:
70         ///
71         boost::scoped_ptr<LyXFont> font_;
72         ///
73         bool toggleall_;
74 };
75
76 #endif // CONTROLCHARACTER_H