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