Martin's space patch.

Add a std:: to getline.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5324 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-09-20 12:36:36 +00:00
parent c9f80528e4
commit de3cf8c89c
4 changed files with 17 additions and 2 deletions

View File

@ -391,6 +391,9 @@ Inset::RESULT InsetFormulaBase::localDispatch(FuncRequest const & cmd)
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;
}
@ -591,8 +594,8 @@ Inset::RESULT InsetFormulaBase::localDispatch(FuncRequest const & cmd)
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");

View File

@ -94,7 +94,7 @@ void initSymbols()
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;

View File

@ -7,6 +7,7 @@
#include "LColor.h"
#include "frontends/Painter.h"
#include "math_mathmlstream.h"
#include "LaTeXFeatures.h"
#include "debug.h"
@ -85,6 +86,15 @@ void MathSpaceInset::incSpace()
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
{

View File

@ -31,6 +31,8 @@ public:
///
void normalize(NormalStream &) const;
///
void validate(LaTeXFeatures & features) const;
///
void maplize(MapleStream &) const;
///
void mathematicize(MathematicaStream &) const;