#include "InsetMathMakebox.h"
#include "MathData.h"
-#include "MathMLStream.h"
+#include "MathStream.h"
#include "MathSupport.h"
#include "support/std_ostream.h"
+
+namespace lyx {
+
using std::auto_ptr;
void InsetMathMakebox::metrics(MetricsInfo & mi, Dimension & dim) const
{
- FontSetChanger dummy(mi.base, "textnormal");
+ FontSetChanger dummy(mi.base, from_ascii("textnormal"));
w_ = mathed_char_width(mi.base.font, '[');
InsetMathNest::metrics(mi);
dim = cell(0).dim();
void InsetMathMakebox::draw(PainterInfo & pi, int x, int y) const
{
- FontSetChanger dummy(pi.base, "textnormal");
+ FontSetChanger dummy(pi.base, from_ascii("textnormal"));
drawMarkers(pi, x, y);
- drawStrBlack(pi, x, y, lyx::from_ascii("["));
+ drawStrBlack(pi, x, y, from_ascii("["));
x += w_;
cell(0).draw(pi, x, y);
x += cell(0).width();
- drawStrBlack(pi, x, y, lyx::from_ascii("]"));
+ drawStrBlack(pi, x, y, from_ascii("]"));
x += w_ + 2;
- drawStrBlack(pi, x, y, lyx::from_ascii("["));
+ drawStrBlack(pi, x, y, from_ascii("["));
x += w_;
cell(1).draw(pi, x, y);
x += cell(1).width();
- drawStrBlack(pi, x, y, lyx::from_ascii("]"));
+ drawStrBlack(pi, x, y, from_ascii("]"));
x += w_ + 2;
cell(2).draw(pi, x, y);
}
-void InsetMathMakebox::infoize(std::ostream & os) const
+void InsetMathMakebox::infoize(odocstream & os) const
{
os << "Makebox (width: " << cell(0)
<< " pos: " << cell(1) << ")";
}
+
+
+} // namespace lyx