mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
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:
parent
60cc4f8e7f
commit
70217ba676
@ -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");
|
||||
|
@ -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;
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user