#define GUIMATH_H
#include "GuiDialog.h"
-#include "lfuns.h" // for kb_action
-#include "Font.h"
+#include "FuncCode.h"
+#include "FontEnums.h"
#include <map>
struct MathSymbol {
MathSymbol(char_type uc = '?', unsigned char fc = 0,
- Font::FONT_FAMILY ff = Font::SYMBOL_FAMILY)
+ FontFamily ff = SYMBOL_FAMILY)
: unicode(uc), fontcode(fc), fontfamily(ff)
{}
char_type unicode;
unsigned char fontcode;
- Font::FONT_FAMILY fontfamily;
+ FontFamily fontfamily;
};
class GuiMath : public GuiDialog
{
public:
- GuiMath(LyXView & lv, std::string const & name);
+ GuiMath(GuiView & lv, QString const & name, QString const & title);
/// Nothing to initialise in this case.
bool initialiseParams(std::string const &) { return true; }
bool isBufferDependent() const { return true; }
/// dispatch an LFUN
- void dispatchFunc(kb_action action,
+ void dispatchFunc(FuncCode action,
std::string const & arg = std::string()) const;
/// Insert a math symbol into the doc.
void dispatchInsert(std::string const & name) const;