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
30 ControlCharacter(LyXView &, Dialogs &);
33 void setFamily(LyXFont::FONT_FAMILY);
35 void setSeries(LyXFont::FONT_SERIES);
37 void setShape(LyXFont::FONT_SHAPE);
39 void setSize(LyXFont::FONT_SIZE);
41 void setBar(frnt::FONT_STATE);
43 void setColor(LColor::color);
45 void setLanguage(string const &);
47 void setToggleAll(bool);
50 LyXFont::FONT_FAMILY getFamily() const;
52 LyXFont::FONT_SERIES getSeries() const;
54 LyXFont::FONT_SHAPE getShape() const;
56 LyXFont::FONT_SIZE getSize() const;
58 frnt::FONT_STATE getBar() const;
60 LColor::color getColor() const;
62 string getLanguage() const;
64 bool getToggleAll() const;
66 /// Get changed parameters and Dispatch them to the kernel.
69 /// set the params before show or update.
70 virtual void setParams();
73 boost::scoped_ptr<LyXFont> font_;
78 #endif // CONTROLCHARACTER_H