2001-09-05 12:57:13 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "math_splitinset.h"
|
2001-11-08 12:06:56 +00:00
|
|
|
#include "math_mathmlstream.h"
|
2001-09-05 12:57:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
MathSplitInset::MathSplitInset(int n)
|
|
|
|
: MathGridInset(2, n)
|
|
|
|
{
|
|
|
|
setDefaults();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
MathInset * MathSplitInset::clone() const
|
|
|
|
{
|
|
|
|
return new MathSplitInset(*this);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-11-09 08:35:57 +00:00
|
|
|
void MathSplitInset::write(WriteStream & os) const
|
2001-09-05 12:57:13 +00:00
|
|
|
{
|
2001-10-19 11:25:48 +00:00
|
|
|
if (os.fragile)
|
2001-09-05 12:57:13 +00:00
|
|
|
os << "\\protect";
|
|
|
|
os << "\\begin{split}";
|
2001-10-19 11:25:48 +00:00
|
|
|
MathGridInset::write(os);
|
|
|
|
if (os.fragile)
|
2001-09-05 12:57:13 +00:00
|
|
|
os << "\\protect";
|
|
|
|
os << "\\end{split}\n";
|
|
|
|
}
|