#include <ostream>
-
namespace lyx {
-InsetMathPhantom::InsetMathPhantom(Kind k)
- : InsetMathNest(1), kind_(k)
+InsetMathPhantom::InsetMathPhantom(Buffer * buf, Kind k)
+ : InsetMathNest(buf, 1), kind_(k)
{}
{
cell(0).metrics(mi, dim);
metricsMarkers(dim);
- // Cache the inset dimension.
- setDimCache(mi, dim);
}
void InsetMathPhantom::write(WriteStream & os) const
{
+ MathEnsurer ensurer(os);
switch (kind_) {
case phantom:
os << "\\phantom{";