2002-08-26 11:27:37 +00:00
|
|
|
#include <config.h>
|
2002-07-08 13:35:26 +00:00
|
|
|
|
|
|
|
#include "math_parinset.h"
|
|
|
|
#include "math_mathmlstream.h"
|
2002-08-23 11:24:55 +00:00
|
|
|
|
2002-08-26 11:27:37 +00:00
|
|
|
#include "support/LOstream.h"
|
2002-08-23 11:24:55 +00:00
|
|
|
|
|
|
|
MathParInset::MathParInset(MathArray const & ar)
|
|
|
|
{
|
|
|
|
cells_[0] = ar;
|
|
|
|
}
|
2002-07-08 13:35:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
void MathParInset::metrics(MathMetricsInfo & mi) const
|
|
|
|
{
|
|
|
|
MathFontSetChanger dummy1(mi.base, "textnormal");
|
|
|
|
MathGridInset::metrics(mi);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void MathParInset::draw(MathPainterInfo & pi, int x, int y) const
|
|
|
|
{
|
|
|
|
MathFontSetChanger dummy1(pi.base, "textnormal");
|
|
|
|
MathGridInset::draw(pi, x, y);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void MathParInset::write(WriteStream & os) const
|
|
|
|
{
|
|
|
|
for (idx_type i = 0; i < nargs(); ++i)
|
|
|
|
os << cell(i) << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void MathParInset::infoize(std::ostream & os) const
|
|
|
|
{
|
|
|
|
os << "Type: Paragraph ";
|
|
|
|
}
|