mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-26 01:49:22 +00:00
5507c1ad69
(instead of inset.write(stream) functions) prepare fix for proper font sizes in chapter heading etc... git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2899 a592a061-630c-0410-9148-cb99ea01b6c8
32 lines
484 B
C
32 lines
484 B
C
#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);
|
|
}
|
|
|
|
|
|
void MathSplitInset::write(MathWriteInfo & os) const
|
|
{
|
|
if (os.fragile)
|
|
os << "\\protect";
|
|
os << "\\begin{split}";
|
|
MathGridInset::write(os);
|
|
if (os.fragile)
|
|
os << "\\protect";
|
|
os << "\\end{split}\n";
|
|
}
|