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
17 #include "character.h"
25 class ControlCharacter : public Dialog::Controller {
28 ControlCharacter(Dialog &);
30 virtual bool initialiseParams(std::string const & data);
32 virtual void clearParams();
34 virtual void dispatchParams();
36 virtual bool isBufferDependent() const { return true; }
38 virtual kb_action getLfun() const { return LFUN_FREEFONT_UPDATE; }
41 void setFamily(LyXFont::FONT_FAMILY);
43 void setSeries(LyXFont::FONT_SERIES);
45 void setShape(LyXFont::FONT_SHAPE);
47 void setSize(LyXFont::FONT_SIZE);
49 void setBar(FONT_STATE);
51 void setColor(LColor_color);
53 void setLanguage(std::string const &);
55 void setToggleAll(bool);
58 LyXFont::FONT_FAMILY getFamily() const;
60 LyXFont::FONT_SERIES getSeries() const;
62 LyXFont::FONT_SHAPE getShape() const;
64 LyXFont::FONT_SIZE getSize() const;
66 FONT_STATE getBar() const;
68 LColor_color getColor() const;
70 std::string getLanguage() const;
72 bool getToggleAll() const;
75 boost::scoped_ptr<LyXFont> font_;
80 } // namespace frontend
83 #endif // CONTROLCHARACTER_H