4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
11 * Full author contact details are available in file CREDITS.
14 #ifndef GUICHARACTER_H
15 #define GUICHARACTER_H
17 #include "GuiDialog.h"
18 #include "ui_CharacterUi.h"
51 typedef std::pair<QString, FontFamily> FamilyPair;
52 typedef std::pair<QString, FontFamily> FamilyPair;
53 typedef std::pair<QString, FontSeries> SeriesPair;
54 typedef std::pair<QString, FontShape> ShapePair;
55 typedef std::pair<QString, FontSize> SizePair;
56 typedef std::pair<QString, FontState> BarPair;
57 typedef std::pair<QString, QString> LanguagePair;
59 class GuiCharacter : public GuiDialog, public Ui::CharacterUi
64 GuiCharacter(GuiView & lv);
67 void change_adaptor();
70 /// \name Dialog inherited methods
73 void updateContents();
74 bool initialiseParams(std::string const & data);
76 void dispatchParams();
77 bool isBufferDependent() const { return true; }
78 FuncCode getLfun() const { return LFUN_TEXTSTYLE_UPDATE; }
79 void saveSession(QSettings & settings) const;
80 void restoreSession();
84 void paramsToDialog(Font const & font);
86 QList<FamilyPair> family;
87 QList<SeriesPair> series;
88 QList<ShapePair> shape;
91 QList<ColorCode> color;
92 QList<LanguagePair> language;
101 } // namespace frontend
104 #endif // GUICHARACTER_H