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
16 #include "ControlDialog_impl.h"
17 #include "character.h"
19 #include <boost/scoped_ptr.hpp>
21 /** A controller for Character dialogs.
23 class ControlCharacter : public ControlDialogBD {
26 ControlCharacter(LyXView &, Dialogs &);
29 void setFamily(LyXFont::FONT_FAMILY);
31 void setSeries(LyXFont::FONT_SERIES);
33 void setShape(LyXFont::FONT_SHAPE);
35 void setSize(LyXFont::FONT_SIZE);
37 void setBar(frnt::FONT_STATE);
39 void setColor(LColor::color);
41 void setLanguage(string const &);
43 void setToggleAll(bool);
46 LyXFont::FONT_FAMILY getFamily() const;
48 LyXFont::FONT_SERIES getSeries() const;
50 LyXFont::FONT_SHAPE getShape() const;
52 LyXFont::FONT_SIZE getSize() const;
54 frnt::FONT_STATE getBar() const;
56 LColor::color getColor() const;
58 string getLanguage() const;
60 bool getToggleAll() const;
62 /// Get changed parameters and Dispatch them to the kernel.
65 /// set the params before show or update.
66 virtual void setParams();
69 boost::scoped_ptr<LyXFont> font_;
74 #endif // CONTROLCHARACTER_H