}
-void MathGridInset::metrics(MathStyles st) const
+void MathGridInset::metrics(MathMetricsInfo const & st) const
{
// let the cells adjust themselves
MathNestInset::metrics(st);
}
-void MathGridInset::write(std::ostream & os, bool fragile) const
+void MathGridInset::write(MathWriteInfo & os) const
{
for (row_type row = 0; row < nrows(); ++row) {
+ for (col_type col = 0; col < ncols(); ++col)
+ os << cell(index(row, col)) << eocString(col);
+ os << eolString(row);
+ }
+}
+
+
+void MathGridInset::writeNormal(std::ostream & os) const
+{
+ os << "[grid ";
+ for (row_type row = 0; row < nrows(); ++row) {
+ os << "[row ";
for (col_type col = 0; col < ncols(); ++col) {
- cell(index(row, col)).write(os, fragile);
- os << eocString(col);
+ os << "[cell ";
+ cell(index(row, col)).writeNormal(os);
+ os << "]";
}
- os << eolString(row);
+ os << "]";
}
+ os << "]";
}