return lfunMouseMotion(cmd);
case LFUN_MOUSE_RELEASE:
return lfunMouseRelease(cmd);
+ case LFUN_MOUSE_DOUBLE:
+ //lyxerr << "Mouse double\n";
+ return localDispatch(FuncRequest(LFUN_WORDSEL));
default:
break;
}
case LFUN_FRAK: handleFont(bv, cmd.argument, "mathfrak"); break;
case LFUN_ITAL: handleFont(bv, cmd.argument, "mathit"); break;
case LFUN_NOUN: handleFont(bv, cmd.argument, "mathbb"); break;
- case LFUN_DEFAULT: handleFont(bv, cmd.argument, "textnormal"); break;
case LFUN_FREE: handleFont(bv, cmd.argument, "textrm"); break;
+ case LFUN_DEFAULT: handleFont(bv, cmd.argument, "textnormal"); break;
case LFUN_GREEK:
handleFont(bv, cmd.argument, "lyxgreek1");
std::ifstream fs(filename.c_str());
string line;
- while (getline(fs, line)) {
+ while (std::getline(fs, line)) {
int charid = 0;
int fallbackid = 0;
latexkeys tmp;
#include "LColor.h"
#include "frontends/Painter.h"
#include "math_mathmlstream.h"
+#include "LaTeXFeatures.h"
#include "debug.h"
space_ = (space_ + 1) % (nSpace - 2);
}
+void MathSpaceInset::validate(LaTeXFeatures & features) const
+{
+ if (space_ >= 0 && space_< nSpace) {
+ if ((latex_mathspace[space_] == "negmedspace")
+ || (latex_mathspace[space_] == "negthickspace"))
+ features.require("amsmath");
+ }
+}
+
void MathSpaceInset::maplize(MapleStream & os) const
{
///
void normalize(NormalStream &) const;
///
+ void validate(LaTeXFeatures & features) const;
+ ///
void maplize(MapleStream &) const;
///
void mathematicize(MathematicaStream &) const;