3 * \file ControlCharacter.h
4 * Copyright 2001 The LyX Team.
5 * See the file COPYING.
7 * \author Angus Leeming, a.leeming@.ac.uk
10 #ifndef CONTROLCHARACTER_H
11 #define CONTROLCHARACTER_H
13 #include <boost/smart_ptr.hpp>
19 #include "ControlDialogs.h"
20 #include "character.h"
22 /** A controller for Character dialogs.
24 class ControlCharacter : public ControlDialog<ControlConnectBD>
28 ControlCharacter(LyXView &, Dialogs &);
31 void setFamily(LyXFont::FONT_FAMILY);
33 void setSeries(LyXFont::FONT_SERIES);
35 void setShape(LyXFont::FONT_SHAPE);
37 void setSize(LyXFont::FONT_SIZE);
39 void setBar(character::FONT_STATE);
41 void setColor(LColor::color);
43 void setLanguage(string const &);
45 void setToggleAll(bool);
48 LyXFont::FONT_FAMILY getFamily() const;
50 LyXFont::FONT_SERIES getSeries() const;
52 LyXFont::FONT_SHAPE getShape() const;
54 LyXFont::FONT_SIZE getSize() const;
56 character::FONT_STATE getBar() const;
58 LColor::color getColor() const;
60 string getLanguage() const;
62 bool getToggleAll() const;
65 /// Get changed parameters and Dispatch them to the kernel.
67 /// set the params before show or update.
68 virtual void setParams();
71 boost::scoped_ptr<LyXFont> font_;
76 #endif // CONTROLCHARACTER_H