#include "math_mathmlstream.h"
#include "math_streamstr.h"
+#include "support/lstrings.h"
+#include "support/std_ostream.h"
+
#include <iterator>
{}
-auto_ptr<InsetBase> MathTabularInset::clone() const
+auto_ptr<InsetBase> MathTabularInset::doClone() const
{
return auto_ptr<InsetBase>(new MathTabularInset(*this));
}
-void MathTabularInset::metrics(MetricsInfo & mi, Dimension & /*dim*/) const
+void MathTabularInset::metrics(MetricsInfo & mi, Dimension & dim) const
{
FontSetChanger dummy(mi.base, "textnormal");
- return MathGridInset::metrics(mi);
+ MathGridInset::metrics(mi, dim);
+ dim.wid += 6;
+ dim_ = dim;
}
void MathTabularInset::draw(PainterInfo & pi, int x, int y) const
{
FontSetChanger dummy(pi.base, "textnormal");
- MathGridInset::draw(pi, x, y);
+ MathGridInset::drawWithMargin(pi, x, y, 4, 2);
}
}
+void MathTabularInset::infoize(std::ostream & os) const
+{
+ string name = name_;
+ name[0] = lyx::support::uppercase(name[0]);
+ os << name << ' ';
+}
+
+
void MathTabularInset::normalize(NormalStream & os) const
{
os << '[' << name_ << ' ';