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"
23 class ControlCharacter : public Dialog::Controller {
26 ControlCharacter(Dialog &);
28 virtual bool initialiseParams(string const & data);
30 virtual void clearParams();
32 virtual void dispatchParams();
34 virtual bool isBufferDependent() const { return true; }
37 void setFamily(LyXFont::FONT_FAMILY);
39 void setSeries(LyXFont::FONT_SERIES);
41 void setShape(LyXFont::FONT_SHAPE);
43 void setSize(LyXFont::FONT_SIZE);
45 void setBar(frnt::FONT_STATE);
47 void setColor(EnumLColor);
49 void setLanguage(string const &);
51 void setToggleAll(bool);
54 LyXFont::FONT_FAMILY getFamily() const;
56 LyXFont::FONT_SERIES getSeries() const;
58 LyXFont::FONT_SHAPE getShape() const;
60 LyXFont::FONT_SIZE getSize() const;
62 frnt::FONT_STATE getBar() const;
64 EnumLColor getColor() const;
66 string getLanguage() const;
68 bool getToggleAll() const;
71 boost::scoped_ptr<LyXFont> font_;
76 #endif // CONTROLCHARACTER_H