-void MathDelimInset::draw(Painter & pain, int x, int y)
-{
- xo(x);
- yo(y);
- MathParInset::draw(pain, x + dw_ + 2, y - dh_);
-
- if (left_ == '.') {
- pain.line(x + 4, yo() - ascent,
- x + 4, yo() + descent,
- LColor::mathcursor, Painter::line_onoffdash);
- } else
- mathed_draw_deco(pain, x, y - ascent, dw_, Height(), left_);
- x += Width() - dw_ - 2;
- if (right_ == '.') {
- pain.line(x + 4, yo() - ascent,
- x + 4, yo() + descent,
- LColor::mathcursor, Painter::line_onoffdash);
- } else
- mathed_draw_deco(pain, x, y - ascent, dw_, Height(), right_);
-}
-
-
-void MathDelimInset::Metrics()
-{
- MathParInset::Metrics();
-
- int d;
- mathed_char_height(LM_TC_CONST, size(), 'I', d, dh_);
- dh_ /= 2;
- ascent += 2 + dh_;
- descent += 2 - dh_;
- dw_ = Height()/5;
- if (dw_ > 15) dw_ = 15;
- if (dw_ < 6) dw_ = 6;
- width += 2 * dw_ + 4;
+void MathDelimInset::mathmlize(MathMLStream & os) const
+{
+ os << "<fenced open=\"" << left_ << "\" close=\""
+ << right_ << "\">" << cell(0) << "</fenced>";
+}
+
+
+void MathDelimInset::octave(OctaveStream & os) const
+{
+ if (isAbs())
+ os << "det(" << cell(0) << ')';
+ else
+ os << left_ << cell(0) << right_;