using std::auto_ptr;
using std::istream;
using std::istringstream;
-using std::ostringstream;
using std::vector;
///
virtual string const inset2string(Buffer const &) const
{
- ostringstream data;
+ lyx::odocstringstream data;
//data << name() << " active_cell " << inset.getActCell() << '\n';
- data << name() << " active_cell " << 0 << '\n';
+ data << lyx::from_utf8(name()) << " active_cell " << 0 << '\n';
WriteStream ws(data);
inset_.write(ws);
- return data.str();
+ return lyx::to_utf8(data.str());
}
protected:
return false;
cur.idx() += ncols();
}
- cur.pos() = cur.cell().x2pos(cur.x_target() - cur.cell().xo());
+ cur.pos() = cur.cell().x2pos(cur.x_target() - cur.cell().xo(cur.bv()));
return true;
}
int n = 0;
is >> n;
InsetMathGrid grid(1, 1);
- mathed_parse_normal(grid, lyx::cap::getSelection(cur.buffer(), n));
+ // FIXME UNICODE
+ mathed_parse_normal(grid,
+ lyx::to_utf8(lyx::cap::getSelection(cur.buffer(), n)));
if (grid.nargs() == 1) {
// single cell/part of cell
recordUndo(cur);