Initial work on InsetMathBox. This doesn't really work yet, for reasons

given in the FIXME.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31993 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-11-14 21:11:23 +00:00
parent 60cc4f8e7f
commit 70217ba676
2 changed files with 20 additions and 1 deletions

View File

@ -52,6 +52,17 @@ void InsetMathBox::normalize(NormalStream & os) const
}
void InsetMathBox::mathmlize(MathStream & ms) const
{
// FIXME This doesn't actually work yet. We need to be able to signal
// that we are in text mode and then just call ms << cell(0). So we
// need something like ModeSpecifier for MathStream.
ms << MTag("mtext");
ms.os() << cell(0);
ms << ETag("mtext");
}
void InsetMathBox::metrics(MetricsInfo & mi, Dimension & dim) const
{
FontSetChanger dummy(mi.base, "textnormal");

View File

@ -35,6 +35,8 @@ public:
///
void normalize(NormalStream & ns) const;
///
void mathmlize(MathStream & ms) const;
///
void infoize(odocstream & os) const;
///
void validate(LaTeXFeatures & features) const;
@ -64,6 +66,8 @@ public:
/// write normalized content
void normalize(NormalStream & ns) const;
///
//void mathmlize(MathStream & ms) const;
///
void infoize(odocstream & os) const;
private:
///
@ -85,6 +89,8 @@ public:
/// write normalized content
void normalize(NormalStream & ns) const;
///
//void mathmlize(MathStream & ms) const;
///
mode_type currentMode() const { return TEXT_MODE; }
///
void infoize(odocstream & os) const;
@ -109,6 +115,8 @@ public:
void draw(PainterInfo & pi, int x, int y) const;
///
void write(WriteStream & os) const;
///
//void mathmlize(MathStream & ms) const;
/// write normalized content
void normalize(NormalStream & ns) const;
///