3 * \file ControlCharacter.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS.
12 #ifndef CONTROLCHARACTER_H
13 #define CONTROLCHARACTER_H
37 class ControlCharacter : public Controller
41 ControlCharacter(Dialog &);
45 virtual bool initialiseParams(std::string const & data);
47 virtual void clearParams() {}
49 virtual void dispatchParams();
51 virtual bool isBufferDependent() const { return true; }
53 virtual kb_action getLfun() const { return LFUN_FONT_FREE_UPDATE; }
56 void setFamily(Font::FONT_FAMILY);
58 void setSeries(Font::FONT_SERIES);
60 void setShape(Font::FONT_SHAPE);
62 void setSize(Font::FONT_SIZE);
64 void setBar(FONT_STATE);
66 void setColor(Color_color);
68 void setLanguage(std::string const &);
70 void setToggleAll(bool);
73 Font::FONT_FAMILY getFamily() const;
75 Font::FONT_SERIES getSeries() const;
77 Font::FONT_SHAPE getShape() const;
79 Font::FONT_SIZE getSize() const;
81 FONT_STATE getBar() const;
83 Color_color getColor() const;
85 std::string getLanguage() const;
87 bool getToggleAll() const;
93 /// If true the language should be reset.
94 /// If false the language of font_ is used.
98 } // namespace frontend
101 #endif // CONTROLCHARACTER_H