From 7348a42d8ff08c5137d7ab930ac9fd326fb1d43f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 16 Nov 2001 08:29:11 +0000 Subject: [PATCH] octavize & mathmlize for math macros git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3035 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_macro.C | 16 ++++++++++++++++ src/mathed/math_macro.h | 4 ++++ 2 files changed, 20 insertions(+) diff --git a/src/mathed/math_macro.C b/src/mathed/math_macro.C index 2d511683bf..984da2814d 100644 --- a/src/mathed/math_macro.C +++ b/src/mathed/math_macro.C @@ -202,6 +202,22 @@ void MathMacro::maplize(MapleStream & os) const } +void MathMacro::mathmlize(MathMLStream & os) const +{ + expanded_ = tmplate_->xcell(0); + expanded_.data_.substitute(*this); + ::mathmlize(expanded_.data_, os); +} + + +void MathMacro::octavize(OctaveStream & os) const +{ + expanded_ = tmplate_->xcell(0); + expanded_.data_.substitute(*this); + ::octavize(expanded_.data_, os); +} + + void MathMacro::normalize(NormalStream & os) const { os << "[macro " << name() << " "; diff --git a/src/mathed/math_macro.h b/src/mathed/math_macro.h index bce7f5b0f2..036152a984 100644 --- a/src/mathed/math_macro.h +++ b/src/mathed/math_macro.h @@ -69,6 +69,10 @@ public: /// void maplize(MapleStream &) const; /// + void mathmlize(MathMLStream &) const; + /// + void octavize(OctaveStream &) const; + /// void write(WriteStream & os) const; private: -- 2.39.2