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