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.
15 #include "GuiDialog.h"
17 #include "FontEnums.h"
27 MathSymbol(char_type uc = '?', unsigned char fc = 0,
28 FontFamily ff = SYMBOL_FAMILY)
29 : unicode(uc), fontcode(fc), fontfamily(ff)
32 unsigned char fontcode;
33 FontFamily fontfamily;
37 class GuiMath : public GuiDialog
40 GuiMath(GuiView & lv, QString const & name, QString const & title);
42 /// Nothing to initialise in this case.
43 bool initialiseParams(std::string const &) { return true; }
45 void dispatchParams() {}
46 bool isBufferDependent() const { return true; }
49 void dispatchFunc(FuncCode action,
50 std::string const & arg = std::string()) const;
52 /// \return the math unicode symbol associated to a TeX name.
53 MathSymbol const & mathSymbol(std::string tex_name) const;
54 /// \return the TeX name associated to a math unicode symbol.
55 std::string const & texName(char_type math_symbol) const;
58 /// TeX-name / Math-symbol map.
59 std::map<std::string, MathSymbol> math_symbols_;
60 /// Math-symbol / TeX-name map.
61 /// This one is for fast search, it contains the same data as
63 std::map<char_type, std::string> tex_names_;
67 } // namespace frontend