2 * \file ControlCharacter.h
3 * Copyright 2001 The LyX Team.
4 * See the file COPYING.
6 * \author Angus Leeming, a.leeming@.ac.uk
9 #ifndef CONTROLCHARACTER_H
10 #define CONTROLCHARACTER_H
16 #include "ControlDialogs.h"
20 /** A controller for Character dialogs.
22 class ControlCharacter : public ControlDialog<ControlConnectBD>
42 typedef std::pair<string, LyXFont::FONT_FAMILY> FamilyPair;
44 typedef std::pair<string, LyXFont::FONT_SERIES> SeriesPair;
46 typedef std::pair<string, LyXFont::FONT_SHAPE> ShapePair;
48 typedef std::pair<string, LyXFont::FONT_SIZE> SizePair;
50 typedef std::pair<string, FONT_STATE> BarPair;
52 typedef std::pair<string, LColor::color> ColorPair;
55 ControlCharacter(LyXView &, Dialogs &);
58 void setFamily(LyXFont::FONT_FAMILY);
60 void setSeries(LyXFont::FONT_SERIES);
62 void setShape(LyXFont::FONT_SHAPE);
64 void setSize(LyXFont::FONT_SIZE);
66 void setBar(FONT_STATE);
68 void setColor(LColor::color);
70 void setLanguage(string const &);
72 void setToggleAll(bool);
75 /// Get changed parameters and Dispatch them to the kernel.
77 /// set the params before show or update.
78 virtual void setParams();
80 virtual void clearParams();
88 std::vector<ControlCharacter::FamilyPair> const getFamilyData();
90 std::vector<ControlCharacter::SeriesPair> const getSeriesData();
92 std::vector<ControlCharacter::ShapePair> const getShapeData();
94 std::vector<ControlCharacter::SizePair> const getSizeData();
96 std::vector<ControlCharacter::BarPair> const getBarData();
98 std::vector<ControlCharacter::ColorPair> const getColorData();
100 std::vector<string> const getLanguageData();
102 #endif // CONTROLCHARACTER_H