* This code is under the GNU General Public Licence version 2 or later.
*/
-#ifdef __GNUG__
-#pragma implementation
-#endif
#include "math_macro.h"
#include "math_support.h"
}
-void MathMacro::metrics(MathMetricsInfo & mi) const
+void MathMacro::metrics(MetricsInfo & mi) const
{
augmentFont(font_, "lyxtex");
mi_ = mi;
}
-void MathMacro::draw(MathPainterInfo & pi, int x, int y) const
+void MathMacro::draw(PainterInfo & pi, int x, int y) const
{
metrics(mi_);
}
-void MathMacro::maplize(MapleStream & os) const
+void MathMacro::maple(MapleStream & os) const
{
updateExpansion();
- ::maplize(expanded_, os);
+ ::maple(expanded_, os);
}
}
-void MathMacro::octavize(OctaveStream & os) const
+void MathMacro::octave(OctaveStream & os) const
{
updateExpansion();
- ::octavize(expanded_, os);
+ ::octave(expanded_, os);
}
expand();
expanded_.substitute(*this);
}
+
+
+void MathMacro::infoize(std::ostream & os) const
+{
+ os << "Macro: " << name();
+}
+
+
+void MathMacro::infoize2(std::ostream & os) const
+{
+ os << "Macro: " << name();
+}