-
#include <config.h>
#include "math_exfuncinset.h"
#include "math_mathmlstream.h"
#include "math_streamstr.h"
+using std::auto_ptr;
+
MathExFuncInset::MathExFuncInset(string const & name)
: MathNestInset(1), name_(name)
}
-MathInset * MathExFuncInset::clone() const
+auto_ptr<InsetBase> MathExFuncInset::clone() const
{
- return new MathExFuncInset(*this);
+ return auto_ptr<InsetBase>(new MathExFuncInset(*this));
}
-void MathExFuncInset::metrics(MathMetricsInfo & mi) const
+void MathExFuncInset::metrics(MetricsInfo & mi, Dimension & /*dim*/) const
{
mathed_string_dim(mi.base.font, name_, dim_);
}
-void MathExFuncInset::draw(MathPainterInfo & pi, int x, int y) const
+void MathExFuncInset::draw(PainterInfo & pi, int x, int y) const
{
drawStrBlack(pi, x, y, name_);
}
}
-void MathExFuncInset::maplize(MapleStream & os) const
+void MathExFuncInset::maple(MapleStream & os) const
{
if (name_ == "det")
os << "linalg[det](" << cell(0) << ')';
}
-void MathExFuncInset::maximize(MaximaStream & os) const
+void MathExFuncInset::maxima(MaximaStream & os) const
{
if (name_ == "det")
os << "determinant(" << cell(0) << ')';
}
-void MathExFuncInset::mathematicize(MathematicaStream & os) const
+void MathExFuncInset::mathematica(MathematicaStream & os) const
{
os << asMathematicaName(name_) << '[' << cell(0) << ']';
}
}
-void MathExFuncInset::octavize(OctaveStream & os) const
+void MathExFuncInset::octave(OctaveStream & os) const
{
os << name_ << '(' << cell(0) << ')';
}