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
19 #include "ControlDialog_impl.h"
20 #include "character.h"
22 #include <boost/scoped_ptr.hpp>
24 /** A controller for Character dialogs.
26 class ControlCharacter : public ControlDialogBD {
29 ControlCharacter(LyXView &, Dialogs &);
32 void setFamily(LyXFont::FONT_FAMILY);
34 void setSeries(LyXFont::FONT_SERIES);
36 void setShape(LyXFont::FONT_SHAPE);
38 void setSize(LyXFont::FONT_SIZE);
40 void setBar(frnt::FONT_STATE);
42 void setColor(LColor::color);
44 void setLanguage(string const &);
46 void setToggleAll(bool);
49 LyXFont::FONT_FAMILY getFamily() const;
51 LyXFont::FONT_SERIES getSeries() const;
53 LyXFont::FONT_SHAPE getShape() const;
55 LyXFont::FONT_SIZE getSize() const;
57 frnt::FONT_STATE getBar() const;
59 LColor::color getColor() const;
61 string getLanguage() const;
63 bool getToggleAll() const;
65 /// Get changed parameters and Dispatch them to the kernel.
68 /// set the params before show or update.
69 virtual void setParams();
72 boost::scoped_ptr<LyXFont> font_;
77 #endif // CONTROLCHARACTER_H