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; }
39 void setFamily(LyXFont::FONT_FAMILY);
41 void setSeries(LyXFont::FONT_SERIES);
43 void setShape(LyXFont::FONT_SHAPE);
45 void setSize(LyXFont::FONT_SIZE);
47 void setBar(FONT_STATE);
49 void setColor(LColor_color);
51 void setLanguage(std::string const &);
53 void setToggleAll(bool);
56 LyXFont::FONT_FAMILY getFamily() const;
58 LyXFont::FONT_SERIES getSeries() const;
60 LyXFont::FONT_SHAPE getShape() const;
62 LyXFont::FONT_SIZE getSize() const;
64 FONT_STATE getBar() const;
66 LColor_color getColor() const;
68 std::string getLanguage() const;
70 bool getToggleAll() const;
73 boost::scoped_ptr<LyXFont> font_;
78 } // namespace frontend
81 #endif // CONTROLCHARACTER_H