MathArrayInset::MathArrayInset(int m, int n)
- : MathGridInset(m, n, "array", LM_OT_MATRIX)
+ : MathGridInset(m, n)
{}
}
-void MathArrayInset::Write(std::ostream & os, bool fragile) const
+void MathArrayInset::write(std::ostream & os, bool fragile) const
{
if (fragile)
os << "\\protect";
os << '[' << char(v_align_) << ']';
os << '{';
- for (int col = 0; col < ncols(); ++col)
- os << colinfo_[col].h_align_;
+ for (unsigned int col = 0; col < ncols(); ++col)
+ os << colinfo_[col].align_;
os << "}\n";
- MathGridInset::Write(os, fragile);
+ MathGridInset::write(os, fragile);
if (fragile)
os << "\\protect";
os << "\\end{array}\n";
}
+
+
+void MathArrayInset::metrics(MathStyles st) const
+{
+ MathGridInset::metrics(st == LM_ST_DISPLAY ? LM_ST_TEXT : st);
+}
+