* Licence details can be found in the file COPYING.
*
* \author Alejandro Aguilar Sierra
- * \author André Pönitz
+ * \author André Pönitz
*
* Full author contact details are available in file CREDITS.
*/
#include <config.h>
#include "InsetMathDecoration.h"
+
#include "MathData.h"
#include "MathParser.h"
#include "MathSupport.h"
#include "MathStream.h"
+#include "MetricsInfo.h"
#include "LaTeXFeatures.h"
-#include "debug.h"
-#include "support/std_ostream.h"
+#include "support/debug.h"
+
+#include <ostream>
namespace lyx {
InsetMathDecoration::InsetMathDecoration(latexkeys const * key)
: InsetMathNest(1), key_(key)
{
-// lyxerr << " creating deco " << key->name << std::endl;
+// lyxerr << " creating deco " << key->name << endl;
}
}
metricsMarkers(dim);
- // Cache the inset dimension.
- setDimCache(mi, dim);
}
void InsetMathDecoration::write(WriteStream & os) const
{
+ MathEnsurer ensurer(os);
if (os.fragile() && protect())
os << "\\protect";
os << '\\' << key_->name << '{' << cell(0) << '}';