2001-09-05 12:57:13 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "math_splitinset.h"
|
|
|
|
#include "support/LOstream.h"
|
|
|
|
|
|
|
|
|
|
|
|
MathSplitInset::MathSplitInset(int n)
|
|
|
|
: MathGridInset(2, n)
|
|
|
|
{
|
|
|
|
setDefaults();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
MathInset * MathSplitInset::clone() const
|
|
|
|
{
|
|
|
|
return new MathSplitInset(*this);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-10-19 11:25:48 +00:00
|
|
|
void MathSplitInset::write(MathWriteInfo & 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";
|
|
|
|
}
|